@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.058Z") @Stability(value=Stable) 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()
ARN of the load balancer.
|
default String |
getLoadBalancerCanonicalHostedZoneId()
The canonical hosted zone ID of this load balancer.
|
default String |
getLoadBalancerDnsName()
The DNS name of this load balancer.
|
default Boolean |
getSecurityGroupAllowsAllOutbound()
Whether the security group allows all outbound traffic or not.
|
String |
getSecurityGroupId()
ID of the load balancer's security group.
|
default IVpc |
getVpc()
The VPC this load balancer has been created in, if available.
|
@Stability(value=Stable) @NotNull String getLoadBalancerArn()
@Stability(value=Stable) @NotNull String getSecurityGroupId()
@Stability(value=Stable) @Nullable default String getLoadBalancerCanonicalHostedZoneId()
Default: - When not provided, LB cannot be used as Route53 Alias target.
@Stability(value=Stable) @Nullable default String getLoadBalancerDnsName()
Default: - When not provided, LB cannot be used as Route53 Alias target.
@Stability(value=Stable) @Nullable default Boolean getSecurityGroupAllowsAllOutbound()
Unless set to false, no egress rules will be added to the security group.
Default: true
@Stability(value=Stable) @Nullable default IVpc getVpc()
Default: - If the Load Balancer was imported and a VPC was not specified, the VPC is not available.
@Stability(value=Stable) static ApplicationLoadBalancerAttributes.Builder builder()
Copyright © 2022. All rights reserved.