1. Packages
  2. AWS Native
  3. API Docs
  4. cloudfront
  5. CachePolicy

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.cloudfront.CachePolicy

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    Resource Type definition for AWS::CloudFront::CachePolicy

    Create CachePolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CachePolicy(name: string, args: CachePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def CachePolicy(resource_name: str,
                    args: CachePolicyArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CachePolicy(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    cache_policy_config: Optional[CachePolicyConfigArgs] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const cachePolicyResource = new aws_native.cloudfront.CachePolicy("cachePolicyResource", {cachePolicyConfig: {
        defaultTtl: 0,
        maxTtl: 0,
        minTtl: 0,
        name: "string",
        parametersInCacheKeyAndForwardedToOrigin: {
            cookiesConfig: {
                cookieBehavior: "string",
                cookies: ["string"],
            },
            enableAcceptEncodingGzip: false,
            headersConfig: {
                headerBehavior: "string",
                headers: ["string"],
            },
            queryStringsConfig: {
                queryStringBehavior: "string",
                queryStrings: ["string"],
            },
            enableAcceptEncodingBrotli: false,
        },
        comment: "string",
    }});
    
    Coming soon!
    

    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:

    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    awsId string
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime string
    aws_id str
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time str
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String

    Supporting Types

    CachePolicyConfig, CachePolicyConfigArgs

    CachePolicyCookiesConfig, CachePolicyCookiesConfigArgs

    CookieBehavior string
    Cookies List<string>
    CookieBehavior string
    Cookies []string
    cookieBehavior String
    cookies List<String>
    cookieBehavior string
    cookies string[]
    cookie_behavior str
    cookies Sequence[str]
    cookieBehavior String
    cookies List<String>

    CachePolicyHeadersConfig, CachePolicyHeadersConfigArgs

    HeaderBehavior string
    Headers List<string>
    HeaderBehavior string
    Headers []string
    headerBehavior String
    headers List<String>
    headerBehavior string
    headers string[]
    header_behavior str
    headers Sequence[str]
    headerBehavior String
    headers List<String>

    CachePolicyParametersInCacheKeyAndForwardedToOrigin, CachePolicyParametersInCacheKeyAndForwardedToOriginArgs

    CachePolicyQueryStringsConfig, CachePolicyQueryStringsConfigArgs

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi