Class DistributionArgs.Builder

  • Enclosing class:
    DistributionArgs

    public static final class DistributionArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • aliases

        public DistributionArgs.Builder aliases​(@Nullable
                                                com.pulumi.core.Output<java.util.List<java.lang.String>> aliases)
        Parameters:
        aliases - Extra CNAMEs (alternate domain names), if any, for this distribution.
        Returns:
        builder
      • aliases

        public DistributionArgs.Builder aliases​(java.util.List<java.lang.String> aliases)
        Parameters:
        aliases - Extra CNAMEs (alternate domain names), if any, for this distribution.
        Returns:
        builder
      • aliases

        public DistributionArgs.Builder aliases​(java.lang.String... aliases)
        Parameters:
        aliases - Extra CNAMEs (alternate domain names), if any, for this distribution.
        Returns:
        builder
      • anycastIpListId

        public DistributionArgs.Builder anycastIpListId​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> anycastIpListId)
        Parameters:
        anycastIpListId - ID of the Anycast static IP list that is associated with the distribution.
        Returns:
        builder
      • anycastIpListId

        public DistributionArgs.Builder anycastIpListId​(java.lang.String anycastIpListId)
        Parameters:
        anycastIpListId - ID of the Anycast static IP list that is associated with the distribution.
        Returns:
        builder
      • cacheTagConfig

        public DistributionArgs.Builder cacheTagConfig​(@Nullable
                                                       com.pulumi.core.Output<DistributionCacheTagConfigArgs> cacheTagConfig)
        Parameters:
        cacheTagConfig - Cache tag configuration block for cache tag extraction from origin responses (maximum one). See the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/invalidation-by-tags.html) for more information about cache tags.
        Returns:
        builder
      • cacheTagConfig

        public DistributionArgs.Builder cacheTagConfig​(DistributionCacheTagConfigArgs cacheTagConfig)
        Parameters:
        cacheTagConfig - Cache tag configuration block for cache tag extraction from origin responses (maximum one). See the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/invalidation-by-tags.html) for more information about cache tags.
        Returns:
        builder
      • comment

        public DistributionArgs.Builder comment​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> comment)
        Parameters:
        comment - Any comments you want to include about the distribution.
        Returns:
        builder
      • comment

        public DistributionArgs.Builder comment​(java.lang.String comment)
        Parameters:
        comment - Any comments you want to include about the distribution.
        Returns:
        builder
      • continuousDeploymentPolicyId

        public DistributionArgs.Builder continuousDeploymentPolicyId​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.String> continuousDeploymentPolicyId)
        Parameters:
        continuousDeploymentPolicyId - Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `aws.cloudfront.ContinuousDeploymentPolicy` resource for additional details.
        Returns:
        builder
      • continuousDeploymentPolicyId

        public DistributionArgs.Builder continuousDeploymentPolicyId​(java.lang.String continuousDeploymentPolicyId)
        Parameters:
        continuousDeploymentPolicyId - Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `aws.cloudfront.ContinuousDeploymentPolicy` resource for additional details.
        Returns:
        builder
      • customErrorResponses

        public DistributionArgs.Builder customErrorResponses​(@Nullable
                                                             com.pulumi.core.Output<java.util.List<DistributionCustomErrorResponseArgs>> customErrorResponses)
        Parameters:
        customErrorResponses - One or more custom error response elements (multiples allowed).
        Returns:
        builder
      • defaultCacheBehavior

        public DistributionArgs.Builder defaultCacheBehavior​(com.pulumi.core.Output<DistributionDefaultCacheBehaviorArgs> defaultCacheBehavior)
        Parameters:
        defaultCacheBehavior - Default cache behavior for this distribution (maximum one). Requires either `cachePolicyId` (preferred) or `forwardedValues` (deprecated) be set.
        Returns:
        builder
      • defaultCacheBehavior

        public DistributionArgs.Builder defaultCacheBehavior​(DistributionDefaultCacheBehaviorArgs defaultCacheBehavior)
        Parameters:
        defaultCacheBehavior - Default cache behavior for this distribution (maximum one). Requires either `cachePolicyId` (preferred) or `forwardedValues` (deprecated) be set.
        Returns:
        builder
      • defaultRootObject

        public DistributionArgs.Builder defaultRootObject​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> defaultRootObject)
        Parameters:
        defaultRootObject - Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL.
        Returns:
        builder
      • defaultRootObject

        public DistributionArgs.Builder defaultRootObject​(java.lang.String defaultRootObject)
        Parameters:
        defaultRootObject - Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL.
        Returns:
        builder
      • enabled

        public DistributionArgs.Builder enabled​(com.pulumi.core.Output<java.lang.Boolean> enabled)
        Parameters:
        enabled - Whether the distribution is enabled to accept end user requests for content.
        Returns:
        builder
      • enabled

        public DistributionArgs.Builder enabled​(java.lang.Boolean enabled)
        Parameters:
        enabled - Whether the distribution is enabled to accept end user requests for content.
        Returns:
        builder
      • httpVersion

        public DistributionArgs.Builder httpVersion​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> httpVersion)
        Parameters:
        httpVersion - Maximum HTTP version to support on the distribution. Allowed values are `http1.1`, `http2`, `http2and3` and `http3`. The default is `http2`.
        Returns:
        builder
      • httpVersion

        public DistributionArgs.Builder httpVersion​(java.lang.String httpVersion)
        Parameters:
        httpVersion - Maximum HTTP version to support on the distribution. Allowed values are `http1.1`, `http2`, `http2and3` and `http3`. The default is `http2`.
        Returns:
        builder
      • isIpv6Enabled

        public DistributionArgs.Builder isIpv6Enabled​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Boolean> isIpv6Enabled)
        Parameters:
        isIpv6Enabled - Whether the IPv6 is enabled for the distribution.
        Returns:
        builder
      • isIpv6Enabled

        public DistributionArgs.Builder isIpv6Enabled​(java.lang.Boolean isIpv6Enabled)
        Parameters:
        isIpv6Enabled - Whether the IPv6 is enabled for the distribution.
        Returns:
        builder
      • loggingConfig

        public DistributionArgs.Builder loggingConfig​(@Nullable
                                                      com.pulumi.core.Output<DistributionLoggingConfigArgs> loggingConfig)
        Parameters:
        loggingConfig - The logging configuration that controls how logs are written to your distribution (maximum one). AWS provides two versions of access logs for CloudFront: Legacy and v2. This argument configures legacy version standard logs.
        Returns:
        builder
      • loggingConfig

        public DistributionArgs.Builder loggingConfig​(DistributionLoggingConfigArgs loggingConfig)
        Parameters:
        loggingConfig - The logging configuration that controls how logs are written to your distribution (maximum one). AWS provides two versions of access logs for CloudFront: Legacy and v2. This argument configures legacy version standard logs.
        Returns:
        builder
      • orderedCacheBehaviors

        public DistributionArgs.Builder orderedCacheBehaviors​(@Nullable
                                                              com.pulumi.core.Output<java.util.List<DistributionOrderedCacheBehaviorArgs>> orderedCacheBehaviors)
        Parameters:
        orderedCacheBehaviors - Ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.
        Returns:
        builder
      • orderedCacheBehaviors

        public DistributionArgs.Builder orderedCacheBehaviors​(java.util.List<DistributionOrderedCacheBehaviorArgs> orderedCacheBehaviors)
        Parameters:
        orderedCacheBehaviors - Ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.
        Returns:
        builder
      • orderedCacheBehaviors

        public DistributionArgs.Builder orderedCacheBehaviors​(DistributionOrderedCacheBehaviorArgs... orderedCacheBehaviors)
        Parameters:
        orderedCacheBehaviors - Ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.
        Returns:
        builder
      • originGroups

        public DistributionArgs.Builder originGroups​(@Nullable
                                                     com.pulumi.core.Output<java.util.List<DistributionOriginGroupArgs>> originGroups)
        Parameters:
        originGroups - One or more originGroup for this distribution (multiples allowed).
        Returns:
        builder
      • priceClass

        public DistributionArgs.Builder priceClass​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> priceClass)
        Parameters:
        priceClass - Price class for this distribution. One of `PriceClass_All`, `PriceClass_200`, `PriceClass_100`.
        Returns:
        builder
      • priceClass

        public DistributionArgs.Builder priceClass​(java.lang.String priceClass)
        Parameters:
        priceClass - Price class for this distribution. One of `PriceClass_All`, `PriceClass_200`, `PriceClass_100`.
        Returns:
        builder
      • retainOnDelete

        public DistributionArgs.Builder retainOnDelete​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Boolean> retainOnDelete)
        Parameters:
        retainOnDelete - Disables the distribution instead of deleting it when destroying the resource through the provider. If this is set, the distribution needs to be deleted manually afterwards. Default: `false`.
        Returns:
        builder
      • retainOnDelete

        public DistributionArgs.Builder retainOnDelete​(java.lang.Boolean retainOnDelete)
        Parameters:
        retainOnDelete - Disables the distribution instead of deleting it when destroying the resource through the provider. If this is set, the distribution needs to be deleted manually afterwards. Default: `false`.
        Returns:
        builder
      • staging

        public DistributionArgs.Builder staging​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> staging)
        Parameters:
        staging - A Boolean that indicates whether this is a staging distribution. Defaults to `false`.
        Returns:
        builder
      • staging

        public DistributionArgs.Builder staging​(java.lang.Boolean staging)
        Parameters:
        staging - A Boolean that indicates whether this is a staging distribution. Defaults to `false`.
        Returns:
        builder
      • tags

        public DistributionArgs.Builder tags​(@Nullable
                                             com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - A map of tags to assign to the resource. 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 - A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • waitForDeployment

        public DistributionArgs.Builder waitForDeployment​(@Nullable
                                                          com.pulumi.core.Output<java.lang.Boolean> waitForDeployment)
        Parameters:
        waitForDeployment - If enabled, the resource will wait for the distribution status to change from `InProgress` to `Deployed`. Setting this to`false` will skip the process. Default: `true`.
        Returns:
        builder
      • waitForDeployment

        public DistributionArgs.Builder waitForDeployment​(java.lang.Boolean waitForDeployment)
        Parameters:
        waitForDeployment - If enabled, the resource will wait for the distribution status to change from `InProgress` to `Deployed`. Setting this to`false` will skip the process. Default: `true`.
        Returns:
        builder
      • webAclId

        public DistributionArgs.Builder webAclId​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> webAclId)
        Parameters:
        webAclId - Unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF (WAFv2), use the ACL ARN, for example `aws_wafv2_web_acl.example.arn`. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example `aws_waf_web_acl.example.id`. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have `waf:GetWebACL` permissions assigned.
        Returns:
        builder
      • webAclId

        public DistributionArgs.Builder webAclId​(java.lang.String webAclId)
        Parameters:
        webAclId - Unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF (WAFv2), use the ACL ARN, for example `aws_wafv2_web_acl.example.arn`. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example `aws_waf_web_acl.example.id`. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have `waf:GetWebACL` permissions assigned.
        Returns:
        builder