Interface ApplicationLoadBalancerAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApplicationLoadBalancerAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:15.184Z")
@Stability(Stable)
public interface ApplicationLoadBalancerAttributes
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ec2.*; import software.amazon.awscdk.services.elasticloadbalancingv2.*; Vpc vpc; ApplicationLoadBalancerAttributes applicationLoadBalancerAttributes = ApplicationLoadBalancerAttributes.builder() .loadBalancerArn("loadBalancerArn") .securityGroupId("securityGroupId") // the properties below are optional .loadBalancerCanonicalHostedZoneId("loadBalancerCanonicalHostedZoneId") .loadBalancerDnsName("loadBalancerDnsName") .securityGroupAllowsAllOutbound(false) .vpc(vpc) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forApplicationLoadBalancerAttributes
static final class
An implementation forApplicationLoadBalancerAttributes
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
ARN of the load balancer.default String
The canonical hosted zone ID of this load balancer.default String
The DNS name of this load balancer.default Boolean
Whether the security group allows all outbound traffic or not.ID of the load balancer's security group.default IVpc
getVpc()
The VPC this load balancer has been created in, if available.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLoadBalancerArn
ARN of the load balancer. -
getSecurityGroupId
ID of the load balancer's security group. -
getLoadBalancerCanonicalHostedZoneId
The canonical hosted zone ID of this load balancer.Default: - When not provided, LB cannot be used as Route53 Alias target.
-
getLoadBalancerDnsName
The DNS name of this load balancer.Default: - When not provided, LB cannot be used as Route53 Alias target.
-
getSecurityGroupAllowsAllOutbound
Whether the security group allows all outbound traffic or not.Unless set to
false
, no egress rules will be added to the security group.Default: true
-
getVpc
The VPC this load balancer has been created in, if available.Default: - If the Load Balancer was imported and a VPC was not specified, the VPC is not available.
-
builder
-