OriginRequestPolicyProps

class aws_cdk.aws_cloudfront.OriginRequestPolicyProps(*, comment=None, cookie_behavior=None, header_behavior=None, origin_request_policy_name=None, query_string_behavior=None)

Bases: object

(experimental) Properties for creating a Origin Request Policy.

Parameters
  • comment (Optional[str]) – (experimental) A comment to describe the origin request policy. Default: - no comment

  • cookie_behavior (Optional[OriginRequestCookieBehavior]) – (experimental) The cookies from viewer requests to include in origin requests. Default: OriginRequestCookieBehavior.none()

  • header_behavior (Optional[OriginRequestHeaderBehavior]) – (experimental) The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront. Default: OriginRequestHeaderBehavior.none()

  • origin_request_policy_name (Optional[str]) – (experimental) A unique name to identify the origin request policy. The name must only include ‘-‘, ‘_’, or alphanumeric characters. Default: - generated from the id

  • query_string_behavior (Optional[OriginRequestQueryStringBehavior]) – (experimental) The URL query strings from viewer requests to include in origin requests. Default: OriginRequestQueryStringBehavior.none()

Stability

experimental

Attributes

comment

(experimental) A comment to describe the origin request policy.

Default
  • no comment

Stability

experimental

Return type

Optional[str]

cookie_behavior

(experimental) The cookies from viewer requests to include in origin requests.

Default

OriginRequestCookieBehavior.none()

Stability

experimental

Return type

Optional[OriginRequestCookieBehavior]

header_behavior

(experimental) The HTTP headers to include in origin requests.

These can include headers from viewer requests and additional headers added by CloudFront.

Default

OriginRequestHeaderBehavior.none()

Stability

experimental

Return type

Optional[OriginRequestHeaderBehavior]

origin_request_policy_name

(experimental) A unique name to identify the origin request policy.

The name must only include ‘-‘, ‘_’, or alphanumeric characters.

Default
  • generated from the id

Stability

experimental

Return type

Optional[str]

query_string_behavior

(experimental) The URL query strings from viewer requests to include in origin requests.

Default

OriginRequestQueryStringBehavior.none()

Stability

experimental

Return type

Optional[OriginRequestQueryStringBehavior]