interface ApplicationLoadBalancerAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElasticLoadBalancingV2.ApplicationLoadBalancerAttributes |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#ApplicationLoadBalancerAttributes |
![]() | software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancerAttributes |
![]() | aws_cdk.aws_elasticloadbalancingv2.ApplicationLoadBalancerAttributes |
![]() | aws-cdk-lib » aws_elasticloadbalancingv2 » ApplicationLoadBalancerAttributes |
Properties to reference an existing load balancer.
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 vpc: ec2.Vpc;
const applicationLoadBalancerAttributes: elbv2.ApplicationLoadBalancerAttributes = {
loadBalancerArn: 'loadBalancerArn',
securityGroupId: 'securityGroupId',
// the properties below are optional
loadBalancerCanonicalHostedZoneId: 'loadBalancerCanonicalHostedZoneId',
loadBalancerDnsName: 'loadBalancerDnsName',
securityGroupAllowsAllOutbound: false,
vpc: vpc,
};
Properties
Name | Type | Description |
---|---|---|
load | string | ARN of the load balancer. |
security | string | ID of the load balancer's security group. |
load | string | The canonical hosted zone ID of this load balancer. |
load | string | The DNS name of this load balancer. |
security | boolean | Whether the security group allows all outbound traffic or not. |
vpc? | IVpc | The VPC this load balancer has been created in, if available. |
loadBalancerArn
Type:
string
ARN of the load balancer.
securityGroupId
Type:
string
ID of the load balancer's security group.
loadBalancerCanonicalHostedZoneId?
Type:
string
(optional, default: When not provided, LB cannot be used as Route53 Alias target.)
The canonical hosted zone ID of this load balancer.
loadBalancerDnsName?
Type:
string
(optional, default: When not provided, LB cannot be used as Route53 Alias target.)
The DNS name of this load balancer.
securityGroupAllowsAllOutbound?
Type:
boolean
(optional, default: true)
Whether the security group allows all outbound traffic or not.
Unless set to false
, no egress rules will be added to the security group.
vpc?
Type:
IVpc
(optional, default: If the Load Balancer was imported and a VPC was not specified,
the VPC is not available.)
The VPC this load balancer has been created in, if available.