ApplicationListenerAttributes

class aws_cdk.aws_elasticloadbalancingv2.ApplicationListenerAttributes(*, listener_arn, default_port=None, security_group=None, security_group_allows_all_outbound=None, security_group_id=None)

Bases: object

Properties to reference an existing listener.

Parameters:
  • listener_arn (str) – ARN of the listener.

  • default_port (Union[int, float, None]) – The default port on which this listener is listening.

  • security_group (Optional[ISecurityGroup]) – Security group of the load balancer this listener is associated with.

  • security_group_allows_all_outbound (Optional[bool]) – (deprecated) Whether the imported security group allows all outbound traffic or not when imported using securityGroupId. Unless set to false, no egress rules will be added to the security group. Default: true

  • security_group_id (Optional[str]) – (deprecated) Security group ID of the load balancer this listener is associated with.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_elasticloadbalancingv2 as elbv2

# security_group: ec2.SecurityGroup

application_listener_attributes = elbv2.ApplicationListenerAttributes(
    listener_arn="listenerArn",

    # the properties below are optional
    default_port=123,
    security_group=security_group,
    security_group_allows_all_outbound=False,
    security_group_id="securityGroupId"
)

Attributes

default_port

The default port on which this listener is listening.

listener_arn

ARN of the listener.

security_group

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

security_group_allows_all_outbound

(deprecated) Whether the imported security group allows all outbound traffic or not when imported using securityGroupId.

Unless set to false, no egress rules will be added to the security group.

Default:

true

Deprecated:

use securityGroup instead

Stability:

deprecated

security_group_id

(deprecated) Security group ID of the load balancer this listener is associated with.

Deprecated:

use securityGroup instead

Stability:

deprecated