Package com.pulumi.aws.cloudfront
Class CachePolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudfront.CachePolicyArgs.Builder
-
- Enclosing class:
- CachePolicyArgs
public static final class CachePolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(CachePolicyArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(CachePolicyArgs defaults)
-
-
Method Detail
-
comment
public CachePolicyArgs.Builder comment(@Nullable com.pulumi.core.Output<java.lang.String> comment)
- Parameters:
comment
- A comment to describe the cache policy.- Returns:
- builder
-
comment
public CachePolicyArgs.Builder comment(java.lang.String comment)
- Parameters:
comment
- A comment to describe the cache policy.- Returns:
- builder
-
defaultTtl
public CachePolicyArgs.Builder defaultTtl(@Nullable com.pulumi.core.Output<java.lang.Integer> defaultTtl)
- Parameters:
defaultTtl
- The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.- Returns:
- builder
-
defaultTtl
public CachePolicyArgs.Builder defaultTtl(java.lang.Integer defaultTtl)
- Parameters:
defaultTtl
- The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.- Returns:
- builder
-
maxTtl
public CachePolicyArgs.Builder maxTtl(@Nullable com.pulumi.core.Output<java.lang.Integer> maxTtl)
- Parameters:
maxTtl
- The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.- Returns:
- builder
-
maxTtl
public CachePolicyArgs.Builder maxTtl(java.lang.Integer maxTtl)
- Parameters:
maxTtl
- The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.- Returns:
- builder
-
minTtl
public CachePolicyArgs.Builder minTtl(@Nullable com.pulumi.core.Output<java.lang.Integer> minTtl)
- Parameters:
minTtl
- The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.- Returns:
- builder
-
minTtl
public CachePolicyArgs.Builder minTtl(java.lang.Integer minTtl)
- Parameters:
minTtl
- The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.- Returns:
- builder
-
name
public CachePolicyArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- A unique name to identify the cache policy.- Returns:
- builder
-
name
public CachePolicyArgs.Builder name(java.lang.String name)
- Parameters:
name
- A unique name to identify the cache policy.- Returns:
- builder
-
parametersInCacheKeyAndForwardedToOrigin
public CachePolicyArgs.Builder parametersInCacheKeyAndForwardedToOrigin(com.pulumi.core.Output<CachePolicyParametersInCacheKeyAndForwardedToOriginArgs> parametersInCacheKeyAndForwardedToOrigin)
- Parameters:
parametersInCacheKeyAndForwardedToOrigin
- The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.- Returns:
- builder
-
parametersInCacheKeyAndForwardedToOrigin
public CachePolicyArgs.Builder parametersInCacheKeyAndForwardedToOrigin(CachePolicyParametersInCacheKeyAndForwardedToOriginArgs parametersInCacheKeyAndForwardedToOrigin)
- Parameters:
parametersInCacheKeyAndForwardedToOrigin
- The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.- Returns:
- builder
-
build
public CachePolicyArgs build()
-
-