@Stability(value=Stable) public static final class CfnDistribution.Builder extends Object implements software.amazon.jsii.Builder<CfnDistribution>
CfnDistribution.| Modifier and Type | Method and Description |
|---|---|
CfnDistribution |
build() |
CfnDistribution.Builder |
bundleId(String bundleId)
The ID of the bundle applied to the distribution.
|
CfnDistribution.Builder |
cacheBehaviors(IResolvable cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
CfnDistribution.Builder |
cacheBehaviors(List<? extends Object> cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
CfnDistribution.Builder |
cacheBehaviorSettings(CfnDistribution.CacheSettingsProperty cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
|
CfnDistribution.Builder |
cacheBehaviorSettings(IResolvable cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
|
CfnDistribution.Builder |
certificateName(String certificateName)
The name of the SSL/TLS certificate attached to the distribution.
|
static CfnDistribution.Builder |
create(software.constructs.Construct scope,
String id) |
CfnDistribution.Builder |
defaultCacheBehavior(CfnDistribution.CacheBehaviorProperty defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
|
CfnDistribution.Builder |
defaultCacheBehavior(IResolvable defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
|
CfnDistribution.Builder |
distributionName(String distributionName)
The name of the distribution.
|
CfnDistribution.Builder |
ipAddressType(String ipAddressType)
The IP address type of the distribution.
|
CfnDistribution.Builder |
isEnabled(Boolean isEnabled)
A Boolean value indicating whether the distribution is enabled.
|
CfnDistribution.Builder |
isEnabled(IResolvable isEnabled)
A Boolean value indicating whether the distribution is enabled.
|
CfnDistribution.Builder |
origin(CfnDistribution.InputOriginProperty origin)
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
|
CfnDistribution.Builder |
origin(IResolvable origin)
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
|
CfnDistribution.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs to apply to this resource.
|
@Stability(value=Stable) public static CfnDistribution.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnDistribution.CacheBehaviorPerPathProperty.Builder.@Stability(value=Stable) public CfnDistribution.Builder bundleId(String bundleId)
bundleId - The ID of the bundle applied to the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder defaultCacheBehavior(CfnDistribution.CacheBehaviorProperty defaultCacheBehavior)
defaultCacheBehavior - An object that describes the default cache behavior of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder defaultCacheBehavior(IResolvable defaultCacheBehavior)
defaultCacheBehavior - An object that describes the default cache behavior of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder distributionName(String distributionName)
distributionName - The name of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder origin(CfnDistribution.InputOriginProperty origin)
The distribution pulls, caches, and serves content from the origin.
origin - An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder origin(IResolvable origin)
The distribution pulls, caches, and serves content from the origin.
origin - An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder cacheBehaviors(IResolvable cacheBehaviors)
cacheBehaviors - An array of objects that describe the per-path cache behavior of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder cacheBehaviors(List<? extends Object> cacheBehaviors)
cacheBehaviors - An array of objects that describe the per-path cache behavior of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder cacheBehaviorSettings(CfnDistribution.CacheSettingsProperty cacheBehaviorSettings)
cacheBehaviorSettings - An object that describes the cache behavior settings of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder cacheBehaviorSettings(IResolvable cacheBehaviorSettings)
cacheBehaviorSettings - An object that describes the cache behavior settings of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder certificateName(String certificateName)
certificateName - The name of the SSL/TLS certificate attached to the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder ipAddressType(String ipAddressType)
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
ipAddressType - The IP address type of the distribution. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder isEnabled(Boolean isEnabled)
isEnabled - A Boolean value indicating whether the distribution is enabled. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder isEnabled(IResolvable isEnabled)
isEnabled - A Boolean value indicating whether the distribution is enabled. This parameter is required.this@Stability(value=Stable) public CfnDistribution.Builder tags(List<? extends CfnTag> tags)
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
tags - An array of key-value pairs to apply to this resource. This parameter is required.this@Stability(value=Stable) public CfnDistribution build()
build in interface software.amazon.jsii.Builder<CfnDistribution>Copyright © 2022. All rights reserved.