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 Details

    • create

      @Stability(Stable) public static CfnDistribution.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDistribution.Builder.
    • bundleId

      @Stability(Stable) public CfnDistribution.Builder bundleId(String 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

      @Stability(Stable) public CfnDistribution.Builder distributionName(String distributionName)
      The name of the distribution.

      Parameters:
      distributionName - The name of the distribution. This parameter is required.
      Returns:
      this
    • origin

      @Stability(Stable) public CfnDistribution.Builder origin(IResolvable 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

      @Stability(Stable) public CfnDistribution.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
    • 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

      @Stability(Stable) public CfnDistribution.Builder certificateName(String 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

      @Stability(Stable) public CfnDistribution.Builder ipAddressType(String ipAddressType)
      The IP address type of the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      Parameters:
      ipAddressType - The IP address type of the distribution. This parameter is required.
      Returns:
      this
    • isEnabled

      @Stability(Stable) public CfnDistribution.Builder isEnabled(Boolean 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

      @Stability(Stable) public CfnDistribution.Builder isEnabled(IResolvable 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

      @Stability(Stable) public CfnDistribution.Builder tags(List<? extends CfnTag> 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 of Tags 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

      @Stability(Stable) public CfnDistribution build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDistribution>
      Returns:
      a newly built instance of CfnDistribution.