CacheQueryStringBehavior

class aws_cdk.aws_cloudfront.CacheQueryStringBehavior(*args: Any, **kwargs)

Bases: object

Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin.

Attributes

behavior

The behavior of query strings – allow all, none, only an allow list, or a deny list.

Return type

str

query_strings

The query strings to allow or deny, if the behavior is an allow or deny list.

Return type

Optional[List[str]]

Static Methods

classmethod all()

All query strings in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.

Return type

CacheQueryStringBehavior

classmethod allow_list(*query_strings)

Only the provided queryStrings are included in the cache key and automatically included in requests that CloudFront sends to the origin.

Parameters

query_strings (str) –

Return type

CacheQueryStringBehavior

classmethod deny_list(*query_strings)

All query strings except the provided queryStrings are included in the cache key and automatically included in requests that CloudFront sends to the origin.

Parameters

query_strings (str) –

Return type

CacheQueryStringBehavior

classmethod none()

Query strings in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin.

Return type

CacheQueryStringBehavior