Class DistributionState.Builder

  • Enclosing class:
    DistributionState

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

      • Builder

        public Builder()
    • Method Detail

      • aliases

        public DistributionState.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 DistributionState.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 DistributionState.Builder aliases​(java.lang.String... aliases)
        Parameters:
        aliases - Extra CNAMEs (alternate domain names), if any, for this distribution.
        Returns:
        builder
      • arn

        public DistributionState.Builder arn​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN for the distribution. For example: `arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5`, where `123456789012` is your AWS account ID.
        Returns:
        builder
      • arn

        public DistributionState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN for the distribution. For example: `arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5`, where `123456789012` is your AWS account ID.
        Returns:
        builder
      • callerReference

        public DistributionState.Builder callerReference​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> callerReference)
        Parameters:
        callerReference - Internal value used by CloudFront to allow future updates to the distribution configuration.
        Returns:
        builder
      • callerReference

        public DistributionState.Builder callerReference​(java.lang.String callerReference)
        Parameters:
        callerReference - Internal value used by CloudFront to allow future updates to the distribution configuration.
        Returns:
        builder
      • comment

        public DistributionState.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 DistributionState.Builder comment​(java.lang.String comment)
        Parameters:
        comment - Any comments you want to include about the distribution.
        Returns:
        builder
      • continuousDeploymentPolicyId

        public DistributionState.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 DistributionState.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 DistributionState.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 DistributionState.Builder defaultCacheBehavior​(@Nullable
                                                              com.pulumi.core.Output<DistributionDefaultCacheBehaviorArgs> defaultCacheBehavior)
        Parameters:
        defaultCacheBehavior - Default cache behavior for this distribution (maximum one). Requires either `cache_policy_id` (preferred) or `forwarded_values` (deprecated) be set.
        Returns:
        builder
      • defaultCacheBehavior

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

        public DistributionState.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 DistributionState.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
      • domainName

        public DistributionState.Builder domainName​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> domainName)
        Parameters:
        domainName - DNS domain name of either the S3 bucket, or web site of your custom origin.
        Returns:
        builder
      • domainName

        public DistributionState.Builder domainName​(java.lang.String domainName)
        Parameters:
        domainName - DNS domain name of either the S3 bucket, or web site of your custom origin.
        Returns:
        builder
      • enabled

        public DistributionState.Builder enabled​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> enabled)
        Parameters:
        enabled - Whether Origin Shield is enabled.
        Returns:
        builder
      • enabled

        public DistributionState.Builder enabled​(java.lang.Boolean enabled)
        Parameters:
        enabled - Whether Origin Shield is enabled.
        Returns:
        builder
      • etag

        public DistributionState.Builder etag​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> etag)
        Parameters:
        etag - Current version of the distribution's information. For example: `E2QWRUHAPOMQZL`.
        Returns:
        builder
      • etag

        public DistributionState.Builder etag​(java.lang.String etag)
        Parameters:
        etag - Current version of the distribution's information. For example: `E2QWRUHAPOMQZL`.
        Returns:
        builder
      • hostedZoneId

        public DistributionState.Builder hostedZoneId​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> hostedZoneId)
        Parameters:
        hostedZoneId - CloudFront Route 53 zone ID that can be used to route an [Alias Resource Record Set](http://docs.aws.amazon.com/Route53/latest/APIReference/CreateAliasRRSAPI.html) to. This attribute is simply an alias for the zone ID `Z2FDTNDATAQYW2`.
        Returns:
        builder
      • hostedZoneId

        public DistributionState.Builder hostedZoneId​(java.lang.String hostedZoneId)
        Parameters:
        hostedZoneId - CloudFront Route 53 zone ID that can be used to route an [Alias Resource Record Set](http://docs.aws.amazon.com/Route53/latest/APIReference/CreateAliasRRSAPI.html) to. This attribute is simply an alias for the zone ID `Z2FDTNDATAQYW2`.
        Returns:
        builder
      • httpVersion

        public DistributionState.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 DistributionState.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
      • inProgressValidationBatches

        public DistributionState.Builder inProgressValidationBatches​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.Integer> inProgressValidationBatches)
        Parameters:
        inProgressValidationBatches - Number of invalidation batches currently in progress.
        Returns:
        builder
      • inProgressValidationBatches

        public DistributionState.Builder inProgressValidationBatches​(java.lang.Integer inProgressValidationBatches)
        Parameters:
        inProgressValidationBatches - Number of invalidation batches currently in progress.
        Returns:
        builder
      • isIpv6Enabled

        public DistributionState.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 DistributionState.Builder isIpv6Enabled​(java.lang.Boolean isIpv6Enabled)
        Parameters:
        isIpv6Enabled - Whether the IPv6 is enabled for the distribution.
        Returns:
        builder
      • lastModifiedTime

        public DistributionState.Builder lastModifiedTime​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> lastModifiedTime)
        Parameters:
        lastModifiedTime - Date and time the distribution was last modified.
        Returns:
        builder
      • lastModifiedTime

        public DistributionState.Builder lastModifiedTime​(java.lang.String lastModifiedTime)
        Parameters:
        lastModifiedTime - Date and time the distribution was last modified.
        Returns:
        builder
      • loggingConfig

        public DistributionState.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).
        Returns:
        builder
      • orderedCacheBehaviors

        public DistributionState.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 DistributionState.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 DistributionState.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 DistributionState.Builder originGroups​(@Nullable
                                                      com.pulumi.core.Output<java.util.List<DistributionOriginGroupArgs>> originGroups)
        Parameters:
        originGroups - One or more origin_group for this distribution (multiples allowed).
        Returns:
        builder
      • origins

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

        public DistributionState.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 DistributionState.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 DistributionState.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 DistributionState.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 DistributionState.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 DistributionState.Builder staging​(java.lang.Boolean staging)
        Parameters:
        staging - A Boolean that indicates whether this is a staging distribution. Defaults to `false`.
        Returns:
        builder
      • status

        public DistributionState.Builder status​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - Current status of the distribution. `Deployed` if the distribution's information is fully propagated throughout the Amazon CloudFront system.
        Returns:
        builder
      • status

        public DistributionState.Builder status​(java.lang.String status)
        Parameters:
        status - Current status of the distribution. `Deployed` if the distribution's information is fully propagated throughout the Amazon CloudFront system.
        Returns:
        builder
      • tags

        public DistributionState.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 `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public DistributionState.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 `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public DistributionState.Builder tagsAll​(@Nullable
                                                 com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public DistributionState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • trustedKeyGroups

        public DistributionState.Builder trustedKeyGroups​(@Nullable
                                                          com.pulumi.core.Output<java.util.List<DistributionTrustedKeyGroupArgs>> trustedKeyGroups)
        Parameters:
        trustedKeyGroups - List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature.
        Returns:
        builder
      • trustedKeyGroups

        public DistributionState.Builder trustedKeyGroups​(java.util.List<DistributionTrustedKeyGroupArgs> trustedKeyGroups)
        Parameters:
        trustedKeyGroups - List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature.
        Returns:
        builder
      • trustedKeyGroups

        public DistributionState.Builder trustedKeyGroups​(DistributionTrustedKeyGroupArgs... trustedKeyGroups)
        Parameters:
        trustedKeyGroups - List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature.
        Returns:
        builder
      • trustedSigners

        public DistributionState.Builder trustedSigners​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<DistributionTrustedSignerArgs>> trustedSigners)
        Parameters:
        trustedSigners - List of AWS account IDs (or `self`) that you want to allow to create signed URLs for private content. See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature.
        Returns:
        builder
      • trustedSigners

        public DistributionState.Builder trustedSigners​(java.util.List<DistributionTrustedSignerArgs> trustedSigners)
        Parameters:
        trustedSigners - List of AWS account IDs (or `self`) that you want to allow to create signed URLs for private content. See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature.
        Returns:
        builder
      • trustedSigners

        public DistributionState.Builder trustedSigners​(DistributionTrustedSignerArgs... trustedSigners)
        Parameters:
        trustedSigners - List of AWS account IDs (or `self`) that you want to allow to create signed URLs for private content. See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature.
        Returns:
        builder
      • waitForDeployment

        public DistributionState.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 DistributionState.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 DistributionState.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 DistributionState.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