CfnOriginRequestPolicyProps

class aws_cdk.aws_cloudfront.CfnOriginRequestPolicyProps(*, origin_request_policy_config)

Bases: object

Properties for defining a AWS::CloudFront::OriginRequestPolicy.

Parameters

origin_request_policy_config (Union[IResolvable, OriginRequestPolicyConfigProperty]) – AWS::CloudFront::OriginRequestPolicy.OriginRequestPolicyConfig.

Link

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

Example:

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

cfn_origin_request_policy_props = cloudfront.CfnOriginRequestPolicyProps(
    origin_request_policy_config=cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty(
        cookies_config=cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty(
            cookie_behavior="cookieBehavior",

            # the properties below are optional
            cookies=["cookies"]
        ),
        headers_config=cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty(
            header_behavior="headerBehavior",

            # the properties below are optional
            headers=["headers"]
        ),
        name="name",
        query_strings_config=cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty(
            query_string_behavior="queryStringBehavior",

            # the properties below are optional
            query_strings=["queryStrings"]
        ),

        # the properties below are optional
        comment="comment"
    )
)

Attributes

origin_request_policy_config

AWS::CloudFront::OriginRequestPolicy.OriginRequestPolicyConfig.

Link

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

Return type

Union[IResolvable, OriginRequestPolicyConfigProperty]