Interface IApplicationListenerAttributes
Properties to reference an existing listener.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IApplicationListenerAttributes
Syntax (vb)
Public Interface IApplicationListenerAttributes
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
SecurityGroup securityGroup;
var applicationListenerAttributes = new ApplicationListenerAttributes {
ListenerArn = "listenerArn",
// the properties below are optional
DefaultPort = 123,
SecurityGroup = securityGroup,
SecurityGroupAllowsAllOutbound = false,
SecurityGroupId = "securityGroupId"
};
Synopsis
Properties
| DefaultPort | The default port on which this listener is listening. |
| ListenerArn | ARN of the listener. |
| SecurityGroup | Security group of the load balancer this listener is associated with. |
| SecurityGroupAllowsAllOutbound | (deprecated) Whether the imported security group allows all outbound traffic or not when imported using |
| SecurityGroupId | (deprecated) Security group ID of the load balancer this listener is associated with. |
Properties
DefaultPort
The default port on which this listener is listening.
virtual Nullable<double> DefaultPort { get; }
Property Value
System.Nullable<System.Double>
ListenerArn
ARN of the listener.
string ListenerArn { get; }
Property Value
System.String
SecurityGroup
Security group of the load balancer this listener is associated with.
virtual ISecurityGroup SecurityGroup { get; }
Property Value
SecurityGroupAllowsAllOutbound
(deprecated) Whether the imported security group allows all outbound traffic or not when imported using securityGroupId.
virtual Nullable<bool> SecurityGroupAllowsAllOutbound { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Unless set to false, no egress rules will be added to the security group.
Default: true
Stability: Deprecated
SecurityGroupId
(deprecated) Security group ID of the load balancer this listener is associated with.
virtual string SecurityGroupId { get; }
Property Value
System.String
Remarks
Stability: Deprecated