Package com.pulumi.aws.lightsail
Class DistributionArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.lightsail.DistributionArgs.Builder
-
- Enclosing class:
- DistributionArgs
public static final class DistributionArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(DistributionArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DistributionArgs defaults)
-
-
Method Detail
-
bundleId
public DistributionArgs.Builder bundleId(com.pulumi.core.Output<java.lang.String> bundleId)
- Parameters:
bundleId- Bundle ID to use for the distribution.- Returns:
- builder
-
bundleId
public DistributionArgs.Builder bundleId(java.lang.String bundleId)
- Parameters:
bundleId- Bundle ID to use for the distribution.- Returns:
- builder
-
cacheBehaviorSettings
public DistributionArgs.Builder cacheBehaviorSettings(@Nullable com.pulumi.core.Output<DistributionCacheBehaviorSettingsArgs> cacheBehaviorSettings)
- Parameters:
cacheBehaviorSettings- Cache behavior settings of the distribution. See below.- Returns:
- builder
-
cacheBehaviorSettings
public DistributionArgs.Builder cacheBehaviorSettings(DistributionCacheBehaviorSettingsArgs cacheBehaviorSettings)
- Parameters:
cacheBehaviorSettings- Cache behavior settings of the distribution. See below.- Returns:
- builder
-
cacheBehaviors
public DistributionArgs.Builder cacheBehaviors(@Nullable com.pulumi.core.Output<java.util.List<DistributionCacheBehaviorArgs>> cacheBehaviors)
- Parameters:
cacheBehaviors- Per-path cache behavior of the distribution. See below.- Returns:
- builder
-
cacheBehaviors
public DistributionArgs.Builder cacheBehaviors(java.util.List<DistributionCacheBehaviorArgs> cacheBehaviors)
- Parameters:
cacheBehaviors- Per-path cache behavior of the distribution. See below.- Returns:
- builder
-
cacheBehaviors
public DistributionArgs.Builder cacheBehaviors(DistributionCacheBehaviorArgs... cacheBehaviors)
- Parameters:
cacheBehaviors- Per-path cache behavior of the distribution. See below.- Returns:
- builder
-
certificateName
public DistributionArgs.Builder certificateName(@Nullable com.pulumi.core.Output<java.lang.String> certificateName)
- Parameters:
certificateName- Name of the SSL/TLS certificate attached to the distribution.- Returns:
- builder
-
certificateName
public DistributionArgs.Builder certificateName(java.lang.String certificateName)
- Parameters:
certificateName- Name of the SSL/TLS certificate attached to the distribution.- Returns:
- builder
-
defaultCacheBehavior
public DistributionArgs.Builder defaultCacheBehavior(com.pulumi.core.Output<DistributionDefaultCacheBehaviorArgs> defaultCacheBehavior)
- Parameters:
defaultCacheBehavior- Default cache behavior of the distribution. See below.- Returns:
- builder
-
defaultCacheBehavior
public DistributionArgs.Builder defaultCacheBehavior(DistributionDefaultCacheBehaviorArgs defaultCacheBehavior)
- Parameters:
defaultCacheBehavior- Default cache behavior of the distribution. See below.- Returns:
- builder
-
ipAddressType
public DistributionArgs.Builder ipAddressType(@Nullable com.pulumi.core.Output<java.lang.String> ipAddressType)
- Parameters:
ipAddressType- IP address type of the distribution. Valid values: `dualstack`, `ipv4`. Default: `dualstack`.- Returns:
- builder
-
ipAddressType
public DistributionArgs.Builder ipAddressType(java.lang.String ipAddressType)
- Parameters:
ipAddressType- IP address type of the distribution. Valid values: `dualstack`, `ipv4`. Default: `dualstack`.- Returns:
- builder
-
isEnabled
public DistributionArgs.Builder isEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> isEnabled)
- Parameters:
isEnabled- Whether the distribution is enabled. Default: `true`.- Returns:
- builder
-
isEnabled
public DistributionArgs.Builder isEnabled(java.lang.Boolean isEnabled)
- Parameters:
isEnabled- Whether the distribution is enabled. Default: `true`.- Returns:
- builder
-
name
public DistributionArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Name of the distribution.- Returns:
- builder
-
name
public DistributionArgs.Builder name(java.lang.String name)
- Parameters:
name- Name of the distribution.- Returns:
- builder
-
origin
public DistributionArgs.Builder origin(com.pulumi.core.Output<DistributionOriginArgs> origin)
- Parameters:
origin- Origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. See below. The following arguments are optional:- Returns:
- builder
-
origin
public DistributionArgs.Builder origin(DistributionOriginArgs origin)
- Parameters:
origin- Origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. See below. The following arguments are optional:- Returns:
- builder
-
region
public DistributionArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public DistributionArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
tags
public DistributionArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Map of tags for the Lightsail Distribution. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public DistributionArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags for the Lightsail Distribution. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
build
public DistributionArgs build()
-
-