AWS Native is in preview. AWS Classic is fully supported.
aws-native.cloudfront.CachePolicy
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::CloudFront::CachePolicy
Create CachePolicy Resource
new CachePolicy(name: string, args: CachePolicyArgs, opts?: CustomResourceOptions);
@overload
def CachePolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
cache_policy_config: Optional[CachePolicyConfigArgs] = None)
@overload
def CachePolicy(resource_name: str,
args: CachePolicyArgs,
opts: Optional[ResourceOptions] = None)
func NewCachePolicy(ctx *Context, name string, args CachePolicyArgs, opts ...ResourceOption) (*CachePolicy, error)
public CachePolicy(string name, CachePolicyArgs args, CustomResourceOptions? opts = null)
public CachePolicy(String name, CachePolicyArgs args)
public CachePolicy(String name, CachePolicyArgs args, CustomResourceOptions options)
type: aws-native:cloudfront:CachePolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CachePolicyArgs
- 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 CachePolicyArgs
- 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 CachePolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CachePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CachePolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CachePolicy 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 CachePolicy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the CachePolicy resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime
- id String
The provider-assigned unique ID for this managed resource.
- last
Modified StringTime
- id string
The provider-assigned unique ID for this managed resource.
- last
Modified stringTime
- id str
The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime
- id String
The provider-assigned unique ID for this managed resource.
- last
Modified StringTime
Supporting Types
CachePolicyConfig, CachePolicyConfigArgs
- Default
Ttl float64 - Max
Ttl float64 - Min
Ttl float64 - Name string
- Parameters
In CacheCache Key And Forwarded To Origin Policy Parameters In Cache Key And Forwarded To Origin - Comment string
- default
Ttl Double - max
Ttl Double - min
Ttl Double - name String
- parameters
In CacheCache Key And Forwarded To Origin Policy Parameters In Cache Key And Forwarded To Origin - comment String
- default
Ttl number - max
Ttl number - min
Ttl number - name string
- parameters
In CacheCache Key And Forwarded To Origin Policy Parameters In Cache Key And Forwarded To Origin - comment string
- default
Ttl Number - max
Ttl Number - min
Ttl Number - name String
- parameters
In Property MapCache Key And Forwarded To Origin - comment String
CachePolicyCookiesConfig, CachePolicyCookiesConfigArgs
- string
- List<string>
- string
- []string
- String
- List<String>
- string
- string[]
- str
- Sequence[str]
- String
- List<String>
CachePolicyHeadersConfig, CachePolicyHeadersConfigArgs
- 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>
CachePolicyParametersInCacheKeyAndForwardedToOrigin, CachePolicyParametersInCacheKeyAndForwardedToOriginArgs
CachePolicyQueryStringsConfig, CachePolicyQueryStringsConfigArgs
- 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.