AWS Native is in preview. AWS Classic is fully supported.
aws-native.cloudfront.OriginRequestPolicy
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::CloudFront::OriginRequestPolicy
Create OriginRequestPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OriginRequestPolicy(name: string, args: OriginRequestPolicyArgs, opts?: CustomResourceOptions);
@overload
def OriginRequestPolicy(resource_name: str,
args: OriginRequestPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OriginRequestPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
origin_request_policy_config: Optional[OriginRequestPolicyConfigArgs] = None)
func NewOriginRequestPolicy(ctx *Context, name string, args OriginRequestPolicyArgs, opts ...ResourceOption) (*OriginRequestPolicy, error)
public OriginRequestPolicy(string name, OriginRequestPolicyArgs args, CustomResourceOptions? opts = null)
public OriginRequestPolicy(String name, OriginRequestPolicyArgs args)
public OriginRequestPolicy(String name, OriginRequestPolicyArgs args, CustomResourceOptions options)
type: aws-native:cloudfront:OriginRequestPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OriginRequestPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OriginRequestPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OriginRequestPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OriginRequestPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OriginRequestPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
Coming soon!
Coming soon!
Coming soon!
Coming soon!
const originRequestPolicyResource = new aws_native.cloudfront.OriginRequestPolicy("originRequestPolicyResource", {originRequestPolicyConfig: {
cookiesConfig: {
cookieBehavior: "string",
cookies: ["string"],
},
headersConfig: {
headerBehavior: "string",
headers: ["string"],
},
name: "string",
queryStringsConfig: {
queryStringBehavior: "string",
queryStrings: ["string"],
},
comment: "string",
}});
Coming soon!
OriginRequestPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The OriginRequestPolicy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the OriginRequestPolicy resource produces the following output properties:
- Aws
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime
- Aws
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime
- aws
Id String - id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime
- aws
Id string - id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringTime
- aws_
id str - id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime
- aws
Id String - id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime
Supporting Types
OriginRequestPolicyConfig, OriginRequestPolicyConfigArgs
OriginRequestPolicyCookiesConfig, OriginRequestPolicyCookiesConfigArgs
- string
- List<string>
- string
- []string
- String
- List<String>
- string
- string[]
- str
- Sequence[str]
- String
- List<String>
OriginRequestPolicyHeadersConfig, OriginRequestPolicyHeadersConfigArgs
- Header
Behavior string - Headers List<string>
- Header
Behavior string - Headers []string
- header
Behavior String - headers List<String>
- header
Behavior string - headers string[]
- header_
behavior str - headers Sequence[str]
- header
Behavior String - headers List<String>
OriginRequestPolicyQueryStringsConfig, OriginRequestPolicyQueryStringsConfigArgs
- Query
String stringBehavior - Query
Strings List<string>
- Query
String stringBehavior - Query
Strings []string
- query
String StringBehavior - query
Strings List<String>
- query
String stringBehavior - query
Strings string[]
- query_
string_ strbehavior - query_
strings Sequence[str]
- query
String StringBehavior - query
Strings List<String>
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.