Class DistributionOrderedCacheBehaviorArgs.Builder

    • Method Detail

      • allowedMethods

        public DistributionOrderedCacheBehaviorArgs.Builder allowedMethods​(com.pulumi.core.Output<java.util.List<java.lang.String>> allowedMethods)
        Parameters:
        allowedMethods - Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
        Returns:
        builder
      • allowedMethods

        public DistributionOrderedCacheBehaviorArgs.Builder allowedMethods​(java.util.List<java.lang.String> allowedMethods)
        Parameters:
        allowedMethods - Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
        Returns:
        builder
      • allowedMethods

        public DistributionOrderedCacheBehaviorArgs.Builder allowedMethods​(java.lang.String... allowedMethods)
        Parameters:
        allowedMethods - Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
        Returns:
        builder
      • cachePolicyId

        public DistributionOrderedCacheBehaviorArgs.Builder cachePolicyId​(@Nullable
                                                                          com.pulumi.core.Output<java.lang.String> cachePolicyId)
        Parameters:
        cachePolicyId - Unique identifier of the cache policy that is attached to the cache behavior. If configuring the `defaultCacheBehavior` either `cachePolicyId` or `forwardedValues` must be set.
        Returns:
        builder
      • cachePolicyId

        public DistributionOrderedCacheBehaviorArgs.Builder cachePolicyId​(java.lang.String cachePolicyId)
        Parameters:
        cachePolicyId - Unique identifier of the cache policy that is attached to the cache behavior. If configuring the `defaultCacheBehavior` either `cachePolicyId` or `forwardedValues` must be set.
        Returns:
        builder
      • cachedMethods

        public DistributionOrderedCacheBehaviorArgs.Builder cachedMethods​(com.pulumi.core.Output<java.util.List<java.lang.String>> cachedMethods)
        Parameters:
        cachedMethods - Controls whether CloudFront caches the response to requests using the specified HTTP methods.
        Returns:
        builder
      • cachedMethods

        public DistributionOrderedCacheBehaviorArgs.Builder cachedMethods​(java.util.List<java.lang.String> cachedMethods)
        Parameters:
        cachedMethods - Controls whether CloudFront caches the response to requests using the specified HTTP methods.
        Returns:
        builder
      • cachedMethods

        public DistributionOrderedCacheBehaviorArgs.Builder cachedMethods​(java.lang.String... cachedMethods)
        Parameters:
        cachedMethods - Controls whether CloudFront caches the response to requests using the specified HTTP methods.
        Returns:
        builder
      • compress

        public DistributionOrderedCacheBehaviorArgs.Builder compress​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.Boolean> compress)
        Parameters:
        compress - Whether you want CloudFront to automatically compress content for web requests that include `Accept-Encoding: gzip` in the request header (default: `false`).
        Returns:
        builder
      • compress

        public DistributionOrderedCacheBehaviorArgs.Builder compress​(java.lang.Boolean compress)
        Parameters:
        compress - Whether you want CloudFront to automatically compress content for web requests that include `Accept-Encoding: gzip` in the request header (default: `false`).
        Returns:
        builder
      • defaultTtl

        public DistributionOrderedCacheBehaviorArgs.Builder defaultTtl​(@Nullable
                                                                       com.pulumi.core.Output<java.lang.Integer> defaultTtl)
        Parameters:
        defaultTtl - Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an `Cache-Control max-age` or `Expires` header. The TTL defined in Cache Policy overrides this configuration.
        Returns:
        builder
      • defaultTtl

        public DistributionOrderedCacheBehaviorArgs.Builder defaultTtl​(java.lang.Integer defaultTtl)
        Parameters:
        defaultTtl - Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an `Cache-Control max-age` or `Expires` header. The TTL defined in Cache Policy overrides this configuration.
        Returns:
        builder
      • fieldLevelEncryptionId

        public DistributionOrderedCacheBehaviorArgs.Builder fieldLevelEncryptionId​(@Nullable
                                                                                   com.pulumi.core.Output<java.lang.String> fieldLevelEncryptionId)
        Parameters:
        fieldLevelEncryptionId - Field level encryption configuration ID.
        Returns:
        builder
      • fieldLevelEncryptionId

        public DistributionOrderedCacheBehaviorArgs.Builder fieldLevelEncryptionId​(java.lang.String fieldLevelEncryptionId)
        Parameters:
        fieldLevelEncryptionId - Field level encryption configuration ID.
        Returns:
        builder
      • maxTtl

        public DistributionOrderedCacheBehaviorArgs.Builder maxTtl​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.Integer> maxTtl)
        Parameters:
        maxTtl - Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` headers. The TTL defined in Cache Policy overrides this configuration.
        Returns:
        builder
      • maxTtl

        public DistributionOrderedCacheBehaviorArgs.Builder maxTtl​(java.lang.Integer maxTtl)
        Parameters:
        maxTtl - Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` headers. The TTL defined in Cache Policy overrides this configuration.
        Returns:
        builder
      • minTtl

        public DistributionOrderedCacheBehaviorArgs.Builder minTtl​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.Integer> minTtl)
        Parameters:
        minTtl - Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. The TTL defined in Cache Policy overrides this configuration.
        Returns:
        builder
      • minTtl

        public DistributionOrderedCacheBehaviorArgs.Builder minTtl​(java.lang.Integer minTtl)
        Parameters:
        minTtl - Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. The TTL defined in Cache Policy overrides this configuration.
        Returns:
        builder
      • originRequestPolicyId

        public DistributionOrderedCacheBehaviorArgs.Builder originRequestPolicyId​(@Nullable
                                                                                  com.pulumi.core.Output<java.lang.String> originRequestPolicyId)
        Parameters:
        originRequestPolicyId - Unique identifier of the origin request policy that is attached to the behavior.
        Returns:
        builder
      • originRequestPolicyId

        public DistributionOrderedCacheBehaviorArgs.Builder originRequestPolicyId​(java.lang.String originRequestPolicyId)
        Parameters:
        originRequestPolicyId - Unique identifier of the origin request policy that is attached to the behavior.
        Returns:
        builder
      • pathPattern

        public DistributionOrderedCacheBehaviorArgs.Builder pathPattern​(com.pulumi.core.Output<java.lang.String> pathPattern)
        Parameters:
        pathPattern - Pattern (for example, `images/*.jpg`) that specifies which requests you want this cache behavior to apply to.
        Returns:
        builder
      • pathPattern

        public DistributionOrderedCacheBehaviorArgs.Builder pathPattern​(java.lang.String pathPattern)
        Parameters:
        pathPattern - Pattern (for example, `images/*.jpg`) that specifies which requests you want this cache behavior to apply to.
        Returns:
        builder
      • realtimeLogConfigArn

        public DistributionOrderedCacheBehaviorArgs.Builder realtimeLogConfigArn​(@Nullable
                                                                                 com.pulumi.core.Output<java.lang.String> realtimeLogConfigArn)
        Parameters:
        realtimeLogConfigArn - ARN of the real-time log configuration that is attached to this cache behavior.
        Returns:
        builder
      • realtimeLogConfigArn

        public DistributionOrderedCacheBehaviorArgs.Builder realtimeLogConfigArn​(java.lang.String realtimeLogConfigArn)
        Parameters:
        realtimeLogConfigArn - ARN of the real-time log configuration that is attached to this cache behavior.
        Returns:
        builder
      • responseHeadersPolicyId

        public DistributionOrderedCacheBehaviorArgs.Builder responseHeadersPolicyId​(@Nullable
                                                                                    com.pulumi.core.Output<java.lang.String> responseHeadersPolicyId)
        Parameters:
        responseHeadersPolicyId - Identifier for a response headers policy.
        Returns:
        builder
      • responseHeadersPolicyId

        public DistributionOrderedCacheBehaviorArgs.Builder responseHeadersPolicyId​(java.lang.String responseHeadersPolicyId)
        Parameters:
        responseHeadersPolicyId - Identifier for a response headers policy.
        Returns:
        builder
      • smoothStreaming

        public DistributionOrderedCacheBehaviorArgs.Builder smoothStreaming​(@Nullable
                                                                            com.pulumi.core.Output<java.lang.Boolean> smoothStreaming)
        Parameters:
        smoothStreaming - Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.
        Returns:
        builder
      • smoothStreaming

        public DistributionOrderedCacheBehaviorArgs.Builder smoothStreaming​(java.lang.Boolean smoothStreaming)
        Parameters:
        smoothStreaming - Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.
        Returns:
        builder
      • targetOriginId

        public DistributionOrderedCacheBehaviorArgs.Builder targetOriginId​(com.pulumi.core.Output<java.lang.String> targetOriginId)
        Parameters:
        targetOriginId - Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
        Returns:
        builder
      • targetOriginId

        public DistributionOrderedCacheBehaviorArgs.Builder targetOriginId​(java.lang.String targetOriginId)
        Parameters:
        targetOriginId - Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
        Returns:
        builder
      • trustedKeyGroups

        public DistributionOrderedCacheBehaviorArgs.Builder trustedKeyGroups​(@Nullable
                                                                             com.pulumi.core.Output<java.util.List<java.lang.String>> trustedKeyGroups)
        Parameters:
        trustedKeyGroups - List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs.
        Returns:
        builder
      • trustedKeyGroups

        public DistributionOrderedCacheBehaviorArgs.Builder trustedKeyGroups​(java.util.List<java.lang.String> trustedKeyGroups)
        Parameters:
        trustedKeyGroups - List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs.
        Returns:
        builder
      • trustedKeyGroups

        public DistributionOrderedCacheBehaviorArgs.Builder trustedKeyGroups​(java.lang.String... trustedKeyGroups)
        Parameters:
        trustedKeyGroups - List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs.
        Returns:
        builder
      • trustedSigners

        public DistributionOrderedCacheBehaviorArgs.Builder trustedSigners​(@Nullable
                                                                           com.pulumi.core.Output<java.util.List<java.lang.String>> trustedSigners)
        Parameters:
        trustedSigners - List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs.
        Returns:
        builder
      • trustedSigners

        public DistributionOrderedCacheBehaviorArgs.Builder trustedSigners​(java.util.List<java.lang.String> trustedSigners)
        Parameters:
        trustedSigners - List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs.
        Returns:
        builder
      • trustedSigners

        public DistributionOrderedCacheBehaviorArgs.Builder trustedSigners​(java.lang.String... trustedSigners)
        Parameters:
        trustedSigners - List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs.
        Returns:
        builder
      • viewerProtocolPolicy

        public DistributionOrderedCacheBehaviorArgs.Builder viewerProtocolPolicy​(com.pulumi.core.Output<java.lang.String> viewerProtocolPolicy)
        Parameters:
        viewerProtocolPolicy - Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of `allow-all`, `https-only`, or `redirect-to-https`.
        Returns:
        builder
      • viewerProtocolPolicy

        public DistributionOrderedCacheBehaviorArgs.Builder viewerProtocolPolicy​(java.lang.String viewerProtocolPolicy)
        Parameters:
        viewerProtocolPolicy - Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of `allow-all`, `https-only`, or `redirect-to-https`.
        Returns:
        builder