CfnCachePolicyMixinProps

class aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnCachePolicyMixinProps(*, cache_policy_config=None)

Bases: object

Properties for CfnCachePolicyPropsMixin.

Parameters:

cache_policy_config (Union[IResolvable, CachePolicyConfigProperty, Dict[str, Any], None]) – The cache policy configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins

cfn_cache_policy_mixin_props = cloudfront_mixins.CfnCachePolicyMixinProps(
    cache_policy_config=cloudfront_mixins.CfnCachePolicyPropsMixin.CachePolicyConfigProperty(
        comment="comment",
        default_ttl=123,
        max_ttl=123,
        min_ttl=123,
        name="name",
        parameters_in_cache_key_and_forwarded_to_origin=cloudfront_mixins.CfnCachePolicyPropsMixin.ParametersInCacheKeyAndForwardedToOriginProperty(
            cookies_config=cloudfront_mixins.CfnCachePolicyPropsMixin.CookiesConfigProperty(
                cookie_behavior="cookieBehavior",
                cookies=["cookies"]
            ),
            enable_accept_encoding_brotli=False,
            enable_accept_encoding_gzip=False,
            headers_config=cloudfront_mixins.CfnCachePolicyPropsMixin.HeadersConfigProperty(
                header_behavior="headerBehavior",
                headers=["headers"]
            ),
            query_strings_config=cloudfront_mixins.CfnCachePolicyPropsMixin.QueryStringsConfigProperty(
                query_string_behavior="queryStringBehavior",
                query_strings=["queryStrings"]
            )
        )
    )
)

Attributes

cache_policy_config

The cache policy configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.html#cfn-cloudfront-cachepolicy-cachepolicyconfig