aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationListenerAttributes

interface ApplicationListenerAttributes

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.ApplicationListenerAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#ApplicationListenerAttributes
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerAttributes
Pythonaws_cdk.aws_elasticloadbalancingv2.ApplicationListenerAttributes
TypeScript (source)aws-cdk-lib » aws_elasticloadbalancingv2 » ApplicationListenerAttributes

Properties to reference an existing listener.

Example

// 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

NameTypeDescription
listenerArnstringARN of the listener.
securityGroupISecurityGroupSecurity group of the load balancer this listener is associated with.
defaultPort?numberThe default port on which this listener is listening.

listenerArn

Type: string

ARN of the listener.


securityGroup

Type: ISecurityGroup

Security group of the load balancer this listener is associated with.


defaultPort?

Type: number (optional)

The default port on which this listener is listening.