CfnOriginRequestPolicyProps

class aws_cdk.aws_cloudfront.CfnOriginRequestPolicyProps(*, origin_request_policy_config)

Bases: object

Properties for defining a CfnOriginRequestPolicy.

Parameters:

origin_request_policy_config (Union[IResolvable, OriginRequestPolicyConfigProperty, Dict[str, Any]]) – The origin request policy configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.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 import 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

The origin request policy configuration.

See:

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