@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.787Z") @Stability(value=Stable) public interface ApplicationLoadBalancerProps 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.*;
import software.amazon.awscdk.services.certificatemanager.*;
import software.amazon.awscdk.services.ecs.patterns.*;
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
import software.amazon.awscdk.services.route53.*;
Certificate certificate;
HostedZone hostedZone;
ApplicationLoadBalancerProps applicationLoadBalancerProps = ApplicationLoadBalancerProps.builder()
.listeners(List.of(ApplicationListenerProps.builder()
.name("name")
// the properties below are optional
.certificate(certificate)
.port(123)
.protocol(ApplicationProtocol.HTTP)
.sslPolicy(SslPolicy.RECOMMENDED_TLS)
.build()))
.name("name")
// the properties below are optional
.domainName("domainName")
.domainZone(hostedZone)
.idleTimeout(Duration.minutes(30))
.publicLoadBalancer(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApplicationLoadBalancerProps.Builder
A builder for
ApplicationLoadBalancerProps |
static class |
ApplicationLoadBalancerProps.Jsii$Proxy
An implementation for
ApplicationLoadBalancerProps |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationLoadBalancerProps.Builder |
builder() |
default String |
getDomainName()
The domain name for the service, e.g.
|
default IHostedZone |
getDomainZone()
The Route53 hosted zone for the domain, e.g.
|
default Duration |
getIdleTimeout()
The load balancer idle timeout, in seconds.
|
List<ApplicationListenerProps> |
getListeners()
Listeners (at least one listener) attached to this load balancer.
|
String |
getName()
Name of the load balancer.
|
default Boolean |
getPublicLoadBalancer()
Determines whether the Load Balancer will be internet-facing.
|
@Stability(value=Stable) @NotNull List<ApplicationListenerProps> getListeners()
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @Nullable default String getDomainName()
Default: - No domain name.
@Stability(value=Stable) @Nullable default IHostedZone getDomainZone()
Default: - No Route53 hosted domain zone.
@Stability(value=Stable) @Nullable default Duration getIdleTimeout()
Default: - CloudFormation sets idle timeout to 60 seconds
@Stability(value=Stable) @Nullable default Boolean getPublicLoadBalancer()
Default: true
@Stability(value=Stable) static ApplicationLoadBalancerProps.Builder builder()
Copyright © 2022. All rights reserved.