Skip to content
v2.273.0

ApplicationListenerAttributes Struct ​

Properties to reference an existing listener.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';

declare const securityGroup: ec2.SecurityGroup;
const applicationListenerAttributes: elbv2.ApplicationListenerAttributes = {
  listenerArn: 'listenerArn',
  securityGroup: securityGroup,

  // the properties below are optional
  defaultPort: 123,
};

Properties ​

defaultPortnumberdefault_portint | floatdefaultPortNumberDefaultPortdoubleDefaultPort*float64#
The default port on which this listener is listening.
listenerArnstringlistener_arnstrlistenerArnStringListenerArnstringListenerArn*stringrequired#
ARN of the listener.
securityGroupISecurityGroupsecurity_groupISecurityGroupsecurityGroupISecurityGroupSecurityGroupISecurityGroupSecurityGroupISecurityGrouprequired#
Security group of the load balancer this listener is associated with.