DistributionOrderedCacheBehavior class
Constructors
-
DistributionOrderedCacheBehavior({required Input<List<String>> allowedMethods, Input<String?>? cachePolicyId, required Input<List<String>> cachedMethods, Input<bool?>? compress, Input<int?>? defaultTtl, Input<String?>? fieldLevelEncryptionId, Input<DistributionOrderedCacheBehaviorForwardedValues?>? forwardedValues, Input<List<DistributionOrderedCacheBehaviorFunctionAssociation>?>? functionAssociations, Input<DistributionOrderedCacheBehaviorGrpcConfig?>? grpcConfig, Input<List<DistributionOrderedCacheBehaviorLambdaFunctionAssociation>?>? lambdaFunctionAssociations, Input<int?>? maxTtl, Input<int?>? minTtl, Input<String?>? originRequestPolicyId, required Input<String> pathPattern, Input<String?>? realtimeLogConfigArn, Input<bool?>? smoothStreaming, required Input<String> targetOriginId, Input<List<String>?>? trustedKeyGroups, Input<List<String>?>? trustedSigners, required Input<String> viewerProtocolPolicy})
-
Creates a new DistributionOrderedCacheBehavior.
allowedMethods Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
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.
cachedMethods Controls whether CloudFront caches the response to requests using the specified HTTP methods.
compress Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false).
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.
fieldLevelEncryptionId Field level encryption configuration ID.
forwardedValues The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).
functionAssociations A config block that triggers a cloudfront function with specific actions (maximum 2).
grpcConfig A config block that sets the grpc config.
lambdaFunctionAssociations A config block that triggers a lambda function with specific actions (maximum 4).
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.
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.
originRequestPolicyId Unique identifier of the origin request policy that is attached to the behavior.
pathPattern Pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to.
realtimeLogConfigArn ARN of the real-time log configuration that is attached to this cache behavior.
responseHeadersPolicyId Identifier for a response headers policy.
smoothStreaming Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.
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.
trustedKeyGroups List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs.
trustedSigners List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs.
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.
const
-
DistributionOrderedCacheBehavior.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
allowedMethods
→ Input<List<String>>
-
Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
final
-
cachedMethods
→ Input<List<String>>
-
Controls whether CloudFront caches the response to requests using the specified HTTP methods.
final
-
cachePolicyId
→ Input<String?>?
-
Unique identifier of the cache policy that is attached to the cache behavior. If configuring the
defaultCacheBehavior either cachePolicyId or forwardedValues must be set.
final
-
compress
→ Input<bool?>?
-
Whether you want CloudFront to automatically compress content for web requests that include
Accept-Encoding: gzip in the request header (default: false).
final
-
defaultTtl
→ Input<int?>?
-
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.
final
-
fieldLevelEncryptionId
→ Input<String?>?
-
Field level encryption configuration ID.
final
-
forwardedValues
→ Input<DistributionOrderedCacheBehaviorForwardedValues?>?
-
The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).
final
-
functionAssociations
→ Input<List<DistributionOrderedCacheBehaviorFunctionAssociation>?>?
-
A config block that triggers a cloudfront function with specific actions (maximum 2).
final
-
grpcConfig
→ Input<DistributionOrderedCacheBehaviorGrpcConfig?>?
-
A config block that sets the grpc config.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
lambdaFunctionAssociations
→ Input<List<DistributionOrderedCacheBehaviorLambdaFunctionAssociation>?>?
-
A config block that triggers a lambda function with specific actions (maximum 4).
final
-
maxTtl
→ Input<int?>?
-
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.
final
-
minTtl
→ Input<int?>?
-
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.
final
-
originRequestPolicyId
→ Input<String?>?
-
Unique identifier of the origin request policy that is attached to the behavior.
final
-
pathPattern
→ Input<String>
-
Pattern (for example,
images/*.jpg) that specifies which requests you want this cache behavior to apply to.
final
-
realtimeLogConfigArn
→ Input<String?>?
-
ARN of the real-time log configuration that is attached to this cache behavior.
final
-
Identifier for a response headers policy.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
smoothStreaming
→ Input<bool?>?
-
Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.
final
-
targetOriginId
→ Input<String>
-
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.
final
-
trustedKeyGroups
→ Input<List<String>?>?
-
List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs.
final
-
trustedSigners
→ Input<List<String>?>?
-
List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs.
final
-
viewerProtocolPolicy
→ Input<String>
-
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.
final