CachePolicyArgs class
The set of arguments for CachePolicy. The set of arguments for CachePolicy.
Constructors
-
CachePolicyArgs({Input<
String?> ? comment, Input<int?> ? defaultTtl, Input<int?> ? maxTtl, Input<int?> ? minTtl, Input<String?> ? name, required Input<CachePolicyParametersInCacheKeyAndForwardedToOrigin> parametersInCacheKeyAndForwardedToOrigin}) -
Creates a new CachePolicyArgs.
commentDescription for the cache policy.defaultTtlAmount of time, in seconds, that objects are allowed to remain in the CloudFront cache before CloudFront sends a new request to the origin server to check if the object has been updated.maxTtlMaximum 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.minTtlMinimum amount of time, in seconds, that objects should remain in the CloudFront cache before a new request is sent to the origin to check for updates.nameUnique name used to identify the cache policy.parametersInCacheKeyAndForwardedToOriginConfiguration for including HTTP headers, cookies, and URL query strings in the cache key. For more information, refer to the Parameters In Cache Key And Forwarded To Origin section.const -
CachePolicyArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
comment
→ Input<
String?> ? -
Description for the cache policy.
final
-
defaultTtl
→ Input<
int?> ? -
Amount of time, in seconds, that objects are allowed to remain in the CloudFront cache before CloudFront sends a new request to the origin server to check if the object has been updated.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maxTtl
→ Input<
int?> ? -
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.
final
-
minTtl
→ Input<
int?> ? -
Minimum amount of time, in seconds, that objects should remain in the CloudFront cache before a new request is sent to the origin to check for updates.
final
-
name
→ Input<
String?> ? -
Unique name used to identify the cache policy.
final
-
parametersInCacheKeyAndForwardedToOrigin
→ Input<
CachePolicyParametersInCacheKeyAndForwardedToOrigin> -
Configuration for including HTTP headers, cookies, and URL query strings in the cache key. For more information, refer to the Parameters In Cache Key And Forwarded To Origin section.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited