Class CfnDistributionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnDistributionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin>
- Enclosing class:
CfnDistributionPropsMixin
@Stability(Stable)
public static final class CfnDistributionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin>
A fluent builder for
CfnDistributionPropsMixin.-
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(CfnDistributionPropsMixin.CacheSettingsProperty cacheBehaviorSettings) An object that describes the cache behavior settings of the distribution.cacheBehaviorSettings(IResolvable 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.create()create(CfnPropertyMixinOptions options) defaultCacheBehavior(CfnDistributionPropsMixin.CacheBehaviorProperty defaultCacheBehavior) An object that describes the default cache behavior of the distribution.defaultCacheBehavior(IResolvable 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.An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.origin(IResolvable origin) 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 CfnDistributionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnDistributionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnDistributionPropsMixin.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:
-
cacheBehaviors
@Stability(Stable) public CfnDistributionPropsMixin.Builder cacheBehaviors(IResolvable 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 CfnDistributionPropsMixin.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 CfnDistributionPropsMixin.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 CfnDistributionPropsMixin.Builder cacheBehaviorSettings(CfnDistributionPropsMixin.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:
-
defaultCacheBehavior
@Stability(Stable) public CfnDistributionPropsMixin.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 CfnDistributionPropsMixin.Builder defaultCacheBehavior(CfnDistributionPropsMixin.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
@Stability(Stable) public CfnDistributionPropsMixin.Builder distributionName(String distributionName) The name of the distribution.- Parameters:
distributionName- The name of the distribution. This parameter is required.- Returns:
this- See Also:
-
ipAddressType
The IP address type of the distribution.The possible values are
ipv4for IPv4 only, anddualstackfor 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:
-
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 CfnDistributionPropsMixin.Builder origin(CfnDistributionPropsMixin.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:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin>- Returns:
- a newly built instance of
CfnDistributionPropsMixin.
-