@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.660Z") @Stability(value=Stable) public interface CfnDistributionProps 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.lightsail.*;
CfnDistributionProps cfnDistributionProps = CfnDistributionProps.builder()
.bundleId("bundleId")
.defaultCacheBehavior(CacheBehaviorProperty.builder()
.behavior("behavior")
.build())
.distributionName("distributionName")
.origin(InputOriginProperty.builder()
.name("name")
.protocolPolicy("protocolPolicy")
.regionName("regionName")
.build())
// the properties below are optional
.cacheBehaviors(List.of(CacheBehaviorPerPathProperty.builder()
.behavior("behavior")
.path("path")
.build()))
.cacheBehaviorSettings(CacheSettingsProperty.builder()
.allowedHttpMethods("allowedHttpMethods")
.cachedHttpMethods("cachedHttpMethods")
.defaultTtl(123)
.forwardedCookies(CookieObjectProperty.builder()
.cookiesAllowList(List.of("cookiesAllowList"))
.option("option")
.build())
.forwardedHeaders(HeaderObjectProperty.builder()
.headersAllowList(List.of("headersAllowList"))
.option("option")
.build())
.forwardedQueryStrings(QueryStringObjectProperty.builder()
.option(false)
.queryStringsAllowList(List.of("queryStringsAllowList"))
.build())
.maximumTtl(123)
.minimumTtl(123)
.build())
.certificateName("certificateName")
.ipAddressType("ipAddressType")
.isEnabled(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDistributionProps.Builder
A builder for
CfnDistributionProps |
static class |
CfnDistributionProps.Jsii$Proxy
An implementation for
CfnDistributionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnDistributionProps.Builder |
builder() |
String |
getBundleId()
The ID of the bundle applied to the distribution.
|
default Object |
getCacheBehaviors()
An array of objects that describe the per-path cache behavior of the distribution.
|
default Object |
getCacheBehaviorSettings()
An object that describes the cache behavior settings of the distribution.
|
default String |
getCertificateName()
The name of the SSL/TLS certificate attached to the distribution.
|
Object |
getDefaultCacheBehavior()
An object that describes the default cache behavior of the distribution.
|
String |
getDistributionName()
The name of the distribution.
|
default String |
getIpAddressType()
The IP address type of the distribution.
|
default Object |
getIsEnabled()
A Boolean value indicating whether the distribution is enabled.
|
Object |
getOrigin()
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
|
default List<CfnTag> |
getTags()
An array of key-value pairs to apply to this resource.
|
@Stability(value=Stable) @NotNull String getBundleId()
@Stability(value=Stable) @NotNull Object getDefaultCacheBehavior()
@Stability(value=Stable) @NotNull String getDistributionName()
@Stability(value=Stable) @NotNull Object getOrigin()
The distribution pulls, caches, and serves content from the origin.
@Stability(value=Stable) @Nullable default Object getCacheBehaviors()
@Stability(value=Stable) @Nullable default Object getCacheBehaviorSettings()
@Stability(value=Stable) @Nullable default String getCertificateName()
@Stability(value=Stable) @Nullable default String getIpAddressType()
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
@Stability(value=Stable) @Nullable default Object getIsEnabled()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
@Stability(value=Stable) static CfnDistributionProps.Builder builder()
CfnDistributionProps.Builder of CfnDistributionPropsCopyright © 2022. All rights reserved.