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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
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
-
distributionName
The name of the distribution.- Parameters:
distributionName
- The name of the distribution. This parameter is required.- Returns:
this
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution>
- Returns:
- a newly built instance of
CfnDistribution
.
-