Class ApplicationListenerAttributes
Properties to reference an existing listener.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class ApplicationListenerAttributes : Object, IApplicationListenerAttributes
Syntax (vb)
Public Class ApplicationListenerAttributes
Inherits Object
Implements 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
Constructors
ApplicationListenerAttributes() |
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. |
Constructors
ApplicationListenerAttributes()
public ApplicationListenerAttributes()
Properties
DefaultPort
The default port on which this listener is listening.
public Nullable<double> DefaultPort { get; set; }
Property Value
System.Nullable<System.Double>
ListenerArn
ARN of the listener.
public string ListenerArn { get; set; }
Property Value
System.String
SecurityGroup
Security group of the load balancer this listener is associated with.
public ISecurityGroup SecurityGroup { get; set; }
Property Value
SecurityGroupAllowsAllOutbound
(deprecated) Whether the imported security group allows all outbound traffic or not when imported using securityGroupId
.
public Nullable<bool> SecurityGroupAllowsAllOutbound { get; set; }
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.
public string SecurityGroupId { get; set; }
Property Value
System.String
Remarks
Stability: Deprecated