Package com.pulumi.aws.cloudfront.inputs
Class DistributionDefaultCacheBehaviorArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorArgs.Builder
-
- Enclosing class:
- DistributionDefaultCacheBehaviorArgs
public static final class DistributionDefaultCacheBehaviorArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(DistributionDefaultCacheBehaviorArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DistributionDefaultCacheBehaviorArgs defaults)
-
-
Method Detail
-
allowedMethods
public DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.Builder cachePolicyId(@Nullable com.pulumi.core.Output<java.lang.String> cachePolicyId)
- Parameters:
cachePolicyId
- The unique identifier of the cache policy that is attached to the cache behavior.- Returns:
- builder
-
cachePolicyId
public DistributionDefaultCacheBehaviorArgs.Builder cachePolicyId(java.lang.String cachePolicyId)
- Parameters:
cachePolicyId
- The unique identifier of the cache policy that is attached to the cache behavior.- Returns:
- builder
-
cachedMethods
public DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.Builder defaultTtl(@Nullable com.pulumi.core.Output<java.lang.Integer> defaultTtl)
- Parameters:
defaultTtl
- The 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.- Returns:
- builder
-
defaultTtl
public DistributionDefaultCacheBehaviorArgs.Builder defaultTtl(java.lang.Integer defaultTtl)
- Parameters:
defaultTtl
- The 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.- Returns:
- builder
-
fieldLevelEncryptionId
public DistributionDefaultCacheBehaviorArgs.Builder fieldLevelEncryptionId(@Nullable com.pulumi.core.Output<java.lang.String> fieldLevelEncryptionId)
- Parameters:
fieldLevelEncryptionId
- Field level encryption configuration ID- Returns:
- builder
-
fieldLevelEncryptionId
public DistributionDefaultCacheBehaviorArgs.Builder fieldLevelEncryptionId(java.lang.String fieldLevelEncryptionId)
- Parameters:
fieldLevelEncryptionId
- Field level encryption configuration ID- Returns:
- builder
-
forwardedValues
public DistributionDefaultCacheBehaviorArgs.Builder forwardedValues(@Nullable com.pulumi.core.Output<DistributionDefaultCacheBehaviorForwardedValuesArgs> forwardedValues)
- Parameters:
forwardedValues
- The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).- Returns:
- builder
-
forwardedValues
public DistributionDefaultCacheBehaviorArgs.Builder forwardedValues(DistributionDefaultCacheBehaviorForwardedValuesArgs forwardedValues)
- Parameters:
forwardedValues
- The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).- Returns:
- builder
-
functionAssociations
public DistributionDefaultCacheBehaviorArgs.Builder functionAssociations(@Nullable com.pulumi.core.Output<java.util.List<DistributionDefaultCacheBehaviorFunctionAssociationArgs>> functionAssociations)
- Parameters:
functionAssociations
- A config block that triggers a cloudfront function with specific actions (maximum 2).- Returns:
- builder
-
functionAssociations
public DistributionDefaultCacheBehaviorArgs.Builder functionAssociations(java.util.List<DistributionDefaultCacheBehaviorFunctionAssociationArgs> functionAssociations)
- Parameters:
functionAssociations
- A config block that triggers a cloudfront function with specific actions (maximum 2).- Returns:
- builder
-
functionAssociations
public DistributionDefaultCacheBehaviorArgs.Builder functionAssociations(DistributionDefaultCacheBehaviorFunctionAssociationArgs... functionAssociations)
- Parameters:
functionAssociations
- A config block that triggers a cloudfront function with specific actions (maximum 2).- Returns:
- builder
-
lambdaFunctionAssociations
public DistributionDefaultCacheBehaviorArgs.Builder lambdaFunctionAssociations(@Nullable com.pulumi.core.Output<java.util.List<DistributionDefaultCacheBehaviorLambdaFunctionAssociationArgs>> lambdaFunctionAssociations)
- Parameters:
lambdaFunctionAssociations
- A config block that triggers a lambda function with specific actions (maximum 4).- Returns:
- builder
-
lambdaFunctionAssociations
public DistributionDefaultCacheBehaviorArgs.Builder lambdaFunctionAssociations(java.util.List<DistributionDefaultCacheBehaviorLambdaFunctionAssociationArgs> lambdaFunctionAssociations)
- Parameters:
lambdaFunctionAssociations
- A config block that triggers a lambda function with specific actions (maximum 4).- Returns:
- builder
-
lambdaFunctionAssociations
public DistributionDefaultCacheBehaviorArgs.Builder lambdaFunctionAssociations(DistributionDefaultCacheBehaviorLambdaFunctionAssociationArgs... lambdaFunctionAssociations)
- Parameters:
lambdaFunctionAssociations
- A config block that triggers a lambda function with specific actions (maximum 4).- Returns:
- builder
-
maxTtl
public DistributionDefaultCacheBehaviorArgs.Builder maxTtl(@Nullable com.pulumi.core.Output<java.lang.Integer> maxTtl)
- Parameters:
maxTtl
- The 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.- Returns:
- builder
-
maxTtl
public DistributionDefaultCacheBehaviorArgs.Builder maxTtl(java.lang.Integer maxTtl)
- Parameters:
maxTtl
- The 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.- Returns:
- builder
-
minTtl
public DistributionDefaultCacheBehaviorArgs.Builder minTtl(@Nullable com.pulumi.core.Output<java.lang.Integer> minTtl)
- Parameters:
minTtl
- The 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.- Returns:
- builder
-
minTtl
public DistributionDefaultCacheBehaviorArgs.Builder minTtl(java.lang.Integer minTtl)
- Parameters:
minTtl
- The 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.- Returns:
- builder
-
originRequestPolicyId
public DistributionDefaultCacheBehaviorArgs.Builder originRequestPolicyId(@Nullable com.pulumi.core.Output<java.lang.String> originRequestPolicyId)
- Parameters:
originRequestPolicyId
- The unique identifier of the origin request policy that is attached to the behavior.- Returns:
- builder
-
originRequestPolicyId
public DistributionDefaultCacheBehaviorArgs.Builder originRequestPolicyId(java.lang.String originRequestPolicyId)
- Parameters:
originRequestPolicyId
- The unique identifier of the origin request policy that is attached to the behavior.- Returns:
- builder
-
realtimeLogConfigArn
public DistributionDefaultCacheBehaviorArgs.Builder realtimeLogConfigArn(@Nullable com.pulumi.core.Output<java.lang.String> realtimeLogConfigArn)
- Parameters:
realtimeLogConfigArn
- The ARN of the real-time log configuration that is attached to this cache behavior.- Returns:
- builder
-
realtimeLogConfigArn
public DistributionDefaultCacheBehaviorArgs.Builder realtimeLogConfigArn(java.lang.String realtimeLogConfigArn)
- Parameters:
realtimeLogConfigArn
- The ARN of the real-time log configuration that is attached to this cache behavior.- Returns:
- builder
-
responseHeadersPolicyId
public DistributionDefaultCacheBehaviorArgs.Builder responseHeadersPolicyId(@Nullable com.pulumi.core.Output<java.lang.String> responseHeadersPolicyId)
- Parameters:
responseHeadersPolicyId
- The identifier for a response headers policy.- Returns:
- builder
-
responseHeadersPolicyId
public DistributionDefaultCacheBehaviorArgs.Builder responseHeadersPolicyId(java.lang.String responseHeadersPolicyId)
- Parameters:
responseHeadersPolicyId
- The identifier for a response headers policy.- Returns:
- builder
-
smoothStreaming
public DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.Builder targetOriginId(com.pulumi.core.Output<java.lang.String> targetOriginId)
- Parameters:
targetOriginId
- The 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 DistributionDefaultCacheBehaviorArgs.Builder targetOriginId(java.lang.String targetOriginId)
- Parameters:
targetOriginId
- The 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 DistributionDefaultCacheBehaviorArgs.Builder trustedKeyGroups(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> trustedKeyGroups)
- Parameters:
trustedKeyGroups
- A 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 DistributionDefaultCacheBehaviorArgs.Builder trustedKeyGroups(java.util.List<java.lang.String> trustedKeyGroups)
- Parameters:
trustedKeyGroups
- A 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 DistributionDefaultCacheBehaviorArgs.Builder trustedKeyGroups(java.lang.String... trustedKeyGroups)
- Parameters:
trustedKeyGroups
- A 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 DistributionDefaultCacheBehaviorArgs.Builder trustedSigners(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> 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 DistributionDefaultCacheBehaviorArgs.Builder trustedSigners(java.util.List<java.lang.String> 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 DistributionDefaultCacheBehaviorArgs.Builder trustedSigners(java.lang.String... 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
-
viewerProtocolPolicy
public DistributionDefaultCacheBehaviorArgs.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 DistributionDefaultCacheBehaviorArgs.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
-
build
public DistributionDefaultCacheBehaviorArgs build()
-
-