Class CfnDistribution.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDistribution.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution>
- Enclosing class:
CfnDistribution
@Stability(Stable)
public static final class CfnDistribution.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution>
A fluent builder for
CfnDistribution
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The ID of the bundle applied to the distribution.cacheBehaviors
(List<? extends Object> cacheBehaviors) An array of objects that describe the per-path cache behavior of the distribution.cacheBehaviors
(IResolvable cacheBehaviors) An array of objects that describe the per-path cache behavior of the distribution.cacheBehaviorSettings
(IResolvable cacheBehaviorSettings) An object that describes the cache behavior settings of the distribution.cacheBehaviorSettings
(CfnDistribution.CacheSettingsProperty cacheBehaviorSettings) An object that describes the cache behavior settings of the distribution.certificateName
(String certificateName) The name of the SSL/TLS certificate attached to the distribution.static CfnDistribution.Builder
defaultCacheBehavior
(IResolvable defaultCacheBehavior) An object that describes the default cache behavior of the distribution.defaultCacheBehavior
(CfnDistribution.CacheBehaviorProperty defaultCacheBehavior) An object that describes the default cache behavior of the distribution.distributionName
(String distributionName) The name of the distribution.ipAddressType
(String ipAddressType) The IP address type of the distribution.A Boolean value indicating whether the distribution is enabled.isEnabled
(IResolvable isEnabled) A Boolean value indicating whether the distribution is enabled.origin
(IResolvable origin) An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnDistribution.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDistribution.Builder
.
-
bundleId
The ID of the bundle applied to the distribution.- Parameters:
bundleId
- The ID of the bundle applied to the distribution. This parameter is required.- Returns:
this
- See Also:
-
defaultCacheBehavior
@Stability(Stable) public CfnDistribution.Builder defaultCacheBehavior(IResolvable defaultCacheBehavior) An object that describes the default cache behavior of the distribution.- Parameters:
defaultCacheBehavior
- An object that describes the default cache behavior of the distribution. This parameter is required.- Returns:
this
- See Also:
-
defaultCacheBehavior
@Stability(Stable) public CfnDistribution.Builder defaultCacheBehavior(CfnDistribution.CacheBehaviorProperty defaultCacheBehavior) An object that describes the default cache behavior of the distribution.- Parameters:
defaultCacheBehavior
- An object that describes the default cache behavior of the distribution. This parameter is required.- Returns:
this
- See Also:
-
distributionName
The name of the distribution.- Parameters:
distributionName
- The name of the distribution. This parameter is required.- Returns:
this
- See Also:
-
origin
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.The distribution pulls, caches, and serves content from the origin.
- Parameters:
origin
- An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. This parameter is required.- Returns:
this
- See Also:
-
origin
@Stability(Stable) public 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.The distribution pulls, caches, and serves content from the origin.
- Parameters:
origin
- An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. This parameter is required.- Returns:
this
- See Also:
-
cacheBehaviors
An array of objects that describe the per-path cache behavior of the distribution.- Parameters:
cacheBehaviors
- An array of objects that describe the per-path cache behavior of the distribution. This parameter is required.- Returns:
this
- See Also:
-
cacheBehaviors
@Stability(Stable) public CfnDistribution.Builder cacheBehaviors(List<? extends Object> cacheBehaviors) An array of objects that describe the per-path cache behavior of the distribution.- Parameters:
cacheBehaviors
- An array of objects that describe the per-path cache behavior of the distribution. This parameter is required.- Returns:
this
- See Also:
-
cacheBehaviorSettings
@Stability(Stable) public CfnDistribution.Builder cacheBehaviorSettings(IResolvable cacheBehaviorSettings) An object that describes the cache behavior settings of the distribution.- Parameters:
cacheBehaviorSettings
- An object that describes the cache behavior settings of the distribution. This parameter is required.- Returns:
this
- See Also:
-
cacheBehaviorSettings
@Stability(Stable) public CfnDistribution.Builder cacheBehaviorSettings(CfnDistribution.CacheSettingsProperty cacheBehaviorSettings) An object that describes the cache behavior settings of the distribution.- Parameters:
cacheBehaviorSettings
- An object that describes the cache behavior settings of the distribution. This parameter is required.- Returns:
this
- See Also:
-
certificateName
The name of the SSL/TLS certificate attached to the distribution.- Parameters:
certificateName
- The name of the SSL/TLS certificate attached to the distribution. This parameter is required.- Returns:
this
- See Also:
-
ipAddressType
The IP address type of the distribution.The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Parameters:
ipAddressType
- The IP address type of the distribution. This parameter is required.- Returns:
this
- See Also:
-
isEnabled
A Boolean value indicating whether the distribution is enabled.- Parameters:
isEnabled
- A Boolean value indicating whether the distribution is enabled. This parameter is required.- Returns:
this
- See Also:
-
isEnabled
A Boolean value indicating whether the distribution is enabled.- Parameters:
isEnabled
- A Boolean value indicating whether the distribution is enabled. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag in the AWS CloudFormation User Guide .
The
Value
ofTags
is optional for Lightsail resources.- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution>
- Returns:
- a newly built instance of
CfnDistribution
.
-