AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws-native.cloudfront.getOriginRequestPolicy
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi
Resource Type definition for AWS::CloudFront::OriginRequestPolicy
Using getOriginRequestPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getOriginRequestPolicy(args: GetOriginRequestPolicyArgs, opts?: InvokeOptions): Promise<GetOriginRequestPolicyResult>
function getOriginRequestPolicyOutput(args: GetOriginRequestPolicyOutputArgs, opts?: InvokeOptions): Output<GetOriginRequestPolicyResult>
def get_origin_request_policy(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOriginRequestPolicyResult
def get_origin_request_policy_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOriginRequestPolicyResult]
func LookupOriginRequestPolicy(ctx *Context, args *LookupOriginRequestPolicyArgs, opts ...InvokeOption) (*LookupOriginRequestPolicyResult, error)
func LookupOriginRequestPolicyOutput(ctx *Context, args *LookupOriginRequestPolicyOutputArgs, opts ...InvokeOption) LookupOriginRequestPolicyResultOutput
> Note: This function is named LookupOriginRequestPolicy
in the Go SDK.
public static class GetOriginRequestPolicy
{
public static Task<GetOriginRequestPolicyResult> InvokeAsync(GetOriginRequestPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetOriginRequestPolicyResult> Invoke(GetOriginRequestPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOriginRequestPolicyResult> getOriginRequestPolicy(GetOriginRequestPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:cloudfront:getOriginRequestPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
.
- Id string
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
.
- id String
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
.
- id string
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
.
- id str
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
.
- id String
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
.
getOriginRequestPolicy Result
The following output properties are available:
- Id string
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
. - Last
Modified stringTime - The date and time when the origin request policy was last modified.
- Origin
Request Pulumi.Policy Config Aws Native. Cloud Front. Outputs. Origin Request Policy Config - The origin request policy configuration.
- Id string
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
. - Last
Modified stringTime - The date and time when the origin request policy was last modified.
- Origin
Request OriginPolicy Config Request Policy Config - The origin request policy configuration.
- id String
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
. - last
Modified StringTime - The date and time when the origin request policy was last modified.
- origin
Request OriginPolicy Config Request Policy Config - The origin request policy configuration.
- id string
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
. - last
Modified stringTime - The date and time when the origin request policy was last modified.
- origin
Request OriginPolicy Config Request Policy Config - The origin request policy configuration.
- id str
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
. - last_
modified_ strtime - The date and time when the origin request policy was last modified.
- origin_
request_ Originpolicy_ config Request Policy Config - The origin request policy configuration.
- id String
- The unique identifier for the origin request policy. For example:
befd7079-9bbc-4ebf-8ade-498a3694176c
. - last
Modified StringTime - The date and time when the origin request policy was last modified.
- origin
Request Property MapPolicy Config - The origin request policy configuration.
Supporting Types
OriginRequestPolicyConfig
- Pulumi.
Aws Native. Cloud Front. Inputs. Origin Request Policy Cookies Config - The cookies from viewer requests to include in origin requests.
- Headers
Config Pulumi.Aws Native. Cloud Front. Inputs. Origin Request Policy Headers Config - The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
- Name string
- A unique name to identify the origin request policy.
- Query
Strings Pulumi.Config Aws Native. Cloud Front. Inputs. Origin Request Policy Query Strings Config - The URL query strings from viewer requests to include in origin requests.
- Comment string
- A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
- Origin
Request Policy Cookies Config - The cookies from viewer requests to include in origin requests.
- Headers
Config OriginRequest Policy Headers Config - The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
- Name string
- A unique name to identify the origin request policy.
- Query
Strings OriginConfig Request Policy Query Strings Config - The URL query strings from viewer requests to include in origin requests.
- Comment string
- A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
- Origin
Request Policy Cookies Config - The cookies from viewer requests to include in origin requests.
- headers
Config OriginRequest Policy Headers Config - The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
- name String
- A unique name to identify the origin request policy.
- query
Strings OriginConfig Request Policy Query Strings Config - The URL query strings from viewer requests to include in origin requests.
- comment String
- A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
- Origin
Request Policy Cookies Config - The cookies from viewer requests to include in origin requests.
- headers
Config OriginRequest Policy Headers Config - The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
- name string
- A unique name to identify the origin request policy.
- query
Strings OriginConfig Request Policy Query Strings Config - The URL query strings from viewer requests to include in origin requests.
- comment string
- A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
- Origin
Request Policy Cookies Config - The cookies from viewer requests to include in origin requests.
- headers_
config OriginRequest Policy Headers Config - The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
- name str
- A unique name to identify the origin request policy.
- query_
strings_ Originconfig Request Policy Query Strings Config - The URL query strings from viewer requests to include in origin requests.
- comment str
- A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
- Property Map
- The cookies from viewer requests to include in origin requests.
- headers
Config Property Map - The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
- name String
- A unique name to identify the origin request policy.
- query
Strings Property MapConfig - The URL query strings from viewer requests to include in origin requests.
- comment String
- A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
OriginRequestPolicyCookiesConfig
- string
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin.all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- List<string>
- Contains a list of cookie names.
- string
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin.all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- []string
- Contains a list of cookie names.
- String
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin.all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- List<String>
- Contains a list of cookie names.
- string
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin.all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- string[]
- Contains a list of cookie names.
- str
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin.all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- Sequence[str]
- Contains a list of cookie names.
- String
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin.all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- List<String>
- Contains a list of cookie names.
OriginRequestPolicyHeadersConfig
- Header
Behavior string - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the HTTP headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin.allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
- Headers List<string>
- Contains a list of HTTP header names.
- Header
Behavior string - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the HTTP headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin.allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
- Headers []string
- Contains a list of HTTP header names.
- header
Behavior String - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the HTTP headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin.allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
- headers List<String>
- Contains a list of HTTP header names.
- header
Behavior string - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the HTTP headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin.allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
- headers string[]
- Contains a list of HTTP header names.
- header_
behavior str - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the HTTP headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin.allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
- headers Sequence[str]
- Contains a list of HTTP header names.
- header
Behavior String - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the HTTP headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin.allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront headers that are listed in theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
- headers List<String>
- Contains a list of HTTP header names.
OriginRequestPolicyQueryStringsConfig
- Query
String stringBehavior - Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No query strings in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any query strings that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the query strings in viewer requests that are listed in theQueryStringNames
type are included in requests that CloudFront sends to the origin.all
– All query strings in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
- Query
Strings List<string> - Contains a list of query string names.
- Query
String stringBehavior - Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No query strings in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any query strings that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the query strings in viewer requests that are listed in theQueryStringNames
type are included in requests that CloudFront sends to the origin.all
– All query strings in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
- Query
Strings []string - Contains a list of query string names.
- query
String StringBehavior - Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No query strings in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any query strings that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the query strings in viewer requests that are listed in theQueryStringNames
type are included in requests that CloudFront sends to the origin.all
– All query strings in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
- query
Strings List<String> - Contains a list of query string names.
- query
String stringBehavior - Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No query strings in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any query strings that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the query strings in viewer requests that are listed in theQueryStringNames
type are included in requests that CloudFront sends to the origin.all
– All query strings in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
- query
Strings string[] - Contains a list of query string names.
- query_
string_ strbehavior - Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No query strings in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any query strings that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the query strings in viewer requests that are listed in theQueryStringNames
type are included in requests that CloudFront sends to the origin.all
– All query strings in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
- query_
strings Sequence[str] - Contains a list of query string names.
- query
String StringBehavior - Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No query strings in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any query strings that are listed in aCachePolicy
are included in origin requests.whitelist
– Only the query strings in viewer requests that are listed in theQueryStringNames
type are included in requests that CloudFront sends to the origin.all
– All query strings in viewer requests are included in requests that CloudFront sends to the origin.allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
- query
Strings List<String> - Contains a list of query string names.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi