OriginRequestQueryStringBehavior

class aws_cdk.aws_cloudfront.OriginRequestQueryStringBehavior(*args, **kwargs)

Bases: object

(experimental) Determines whether any URL query strings in viewer requests (and if so, which query strings) are included in requests that CloudFront sends to the origin.

Stability

experimental

Attributes

behavior

(experimental) The behavior of query strings – allow all, none, or only an allow list.

Stability

experimental

Return type

str

query_strings

(experimental) The query strings to allow, if the behavior is an allow list.

Stability

experimental

Return type

Optional[List[str]]

Static Methods

classmethod all()

(experimental) All query strings in viewer requests are included in requests that CloudFront sends to the origin.

Stability

experimental

Return type

OriginRequestQueryStringBehavior

classmethod allow_list(*query_strings)

(experimental) Only the provided queryStrings are included in requests that CloudFront sends to the origin.

Parameters

query_strings (str) –

Stability

experimental

Return type

OriginRequestQueryStringBehavior

classmethod none()

(experimental) Query strings in viewer requests are not included in requests that CloudFront sends to the origin.

Any query strings that are listed in a CachePolicy are still included in origin requests.

Stability

experimental

Return type

OriginRequestQueryStringBehavior