Class ApplicationLoadBalancerAttributes
Properties to reference an existing load balancer.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class ApplicationLoadBalancerAttributes : Object, IApplicationLoadBalancerAttributes
Syntax (vb)
Public Class ApplicationLoadBalancerAttributes
Inherits Object
Implements IApplicationLoadBalancerAttributes
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;
Vpc vpc;
var applicationLoadBalancerAttributes = new ApplicationLoadBalancerAttributes {
LoadBalancerArn = "loadBalancerArn",
SecurityGroupId = "securityGroupId",
// the properties below are optional
LoadBalancerCanonicalHostedZoneId = "loadBalancerCanonicalHostedZoneId",
LoadBalancerDnsName = "loadBalancerDnsName",
SecurityGroupAllowsAllOutbound = false,
Vpc = vpc
};
Synopsis
Constructors
ApplicationLoadBalancerAttributes() |
Properties
LoadBalancerArn | ARN of the load balancer. |
LoadBalancerCanonicalHostedZoneId | The canonical hosted zone ID of this load balancer. |
LoadBalancerDnsName | The DNS name of this load balancer. |
SecurityGroupAllowsAllOutbound | Whether the security group allows all outbound traffic or not. |
SecurityGroupId | ID of the load balancer's security group. |
Vpc | The VPC this load balancer has been created in, if available. |
Constructors
ApplicationLoadBalancerAttributes()
public ApplicationLoadBalancerAttributes()
Properties
LoadBalancerArn
ARN of the load balancer.
public string LoadBalancerArn { get; set; }
Property Value
System.String
LoadBalancerCanonicalHostedZoneId
The canonical hosted zone ID of this load balancer.
public string LoadBalancerCanonicalHostedZoneId { get; set; }
Property Value
System.String
Remarks
Default: - When not provided, LB cannot be used as Route53 Alias target.
LoadBalancerDnsName
The DNS name of this load balancer.
public string LoadBalancerDnsName { get; set; }
Property Value
System.String
Remarks
Default: - When not provided, LB cannot be used as Route53 Alias target.
SecurityGroupAllowsAllOutbound
Whether the security group allows all outbound traffic or not.
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
SecurityGroupId
ID of the load balancer's security group.
public string SecurityGroupId { get; set; }
Property Value
System.String
Vpc
The VPC this load balancer has been created in, if available.
public IVpc Vpc { get; set; }
Property Value
Remarks
Default: - If the Load Balancer was imported and a VPC was not specified, the VPC is not available.