Data Source: awsCloudfrontOriginRequestPolicy
Example Usage
Basic Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCloudfrontOriginRequestPolicy.DataAwsCloudfrontOriginRequestPolicy(
this,
"example",
{
name: "example-policy",
}
);
AWS-Managed Policies
AWS managed origin request policy names are prefixed with managed
:
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCloudfrontOriginRequestPolicy.DataAwsCloudfrontOriginRequestPolicy(
this,
"ua_referer",
{
name: "Managed-UserAgentRefererHeaders",
}
);
Argument Reference
The following arguments are supported:
name
- Unique name to identify the origin request policy.id
- Identifier for the origin request policy.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
comment
- Comment to describe the origin request policy.cookiesConfig
- Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.etag
- Current version of the origin request policy.headersConfig
- Object that determines whether any HTTP headers (and if so, which headers) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.queryStringsConfig
- Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.
Cookies Config
cookieBehavior
- Determines whether any cookies in viewer requests are included in the origin request key and automatically included in requests that CloudFront sends to the origin. Valid values are none
, whitelist
all
. cookies
- Object that contains a list of cookie names. See Items for more information.
Headers Config
headerBehavior
- Determines whether any HTTP headers are included in the origin request key and automatically included in requests that CloudFront sends to the origin. Valid values are none
, whitelist
, allViewer
, allViewerAndWhitelistCloudFront
. headers
- Object that contains a list of header names. See Items for more information.
Query String Config
queryStringBehavior
- Determines whether any URL query strings in viewer requests are included in the origin request key and automatically included in requests that CloudFront sends to the origin. Valid values are none
, whitelist
, all
. queryStrings
- Object that contains a list of query string names. See Items for more information.
Items
items
- List of item names (cookies, headers, or query strings).