@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.491Z") @Stability(value=Experimental) public interface ApplicationLoadBalancerAttributes extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApplicationLoadBalancerAttributes.Builder
A builder for
ApplicationLoadBalancerAttributes |
static class |
ApplicationLoadBalancerAttributes.Jsii$Proxy
An implementation for
ApplicationLoadBalancerAttributes |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationLoadBalancerAttributes.Builder |
builder() |
String |
getLoadBalancerArn()
(experimental) ARN of the load balancer.
|
default String |
getLoadBalancerCanonicalHostedZoneId()
(experimental) The canonical hosted zone ID of this load balancer.
|
default String |
getLoadBalancerDnsName()
(experimental) The DNS name of this load balancer.
|
default Boolean |
getSecurityGroupAllowsAllOutbound()
(experimental) Whether the security group allows all outbound traffic or not.
|
String |
getSecurityGroupId()
(experimental) ID of the load balancer's security group.
|
default IVpc |
getVpc()
(experimental) The VPC this load balancer has been created in, if available.
|
@Stability(value=Experimental) @NotNull String getLoadBalancerArn()
@Stability(value=Experimental) @NotNull String getSecurityGroupId()
@Stability(value=Experimental) @Nullable default String getLoadBalancerCanonicalHostedZoneId()
Default: - When not provided, LB cannot be used as Route53 Alias target.
@Stability(value=Experimental) @Nullable default String getLoadBalancerDnsName()
Default: - When not provided, LB cannot be used as Route53 Alias target.
@Stability(value=Experimental) @Nullable default Boolean getSecurityGroupAllowsAllOutbound()
Unless set to false, no egress rules will be added to the security group.
Default: true
@Stability(value=Experimental) @Nullable default IVpc getVpc()
Default: - If the Load Balancer was imported and a VPC was not specified, the VPC is not available.
@Stability(value=Experimental) static ApplicationLoadBalancerAttributes.Builder builder()
Copyright © 2022. All rights reserved.