1. Packages
  2. AWS Classic
  3. API Docs
  4. cloudfront
  5. getCachePolicy

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.cloudfront.getCachePolicy

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Use this data source to retrieve information about a CloudFront cache policy.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.cloudfront.getCachePolicy({
        name: "example-policy",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.cloudfront.get_cache_policy(name="example-policy")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfront.LookupCachePolicy(ctx, &cloudfront.LookupCachePolicyArgs{
    			Name: pulumi.StringRef("example-policy"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.CloudFront.GetCachePolicy.Invoke(new()
        {
            Name = "example-policy",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cloudfront.CloudfrontFunctions;
    import com.pulumi.aws.cloudfront.inputs.GetCachePolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = CloudfrontFunctions.getCachePolicy(GetCachePolicyArgs.builder()
                .name("example-policy")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:cloudfront:getCachePolicy
          Arguments:
            name: example-policy
    

    AWS-Managed Policies

    AWS managed cache policy names are prefixed with Managed-:

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.cloudfront.getCachePolicy({
        name: "Managed-CachingOptimized",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.cloudfront.get_cache_policy(name="Managed-CachingOptimized")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfront.LookupCachePolicy(ctx, &cloudfront.LookupCachePolicyArgs{
    			Name: pulumi.StringRef("Managed-CachingOptimized"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.CloudFront.GetCachePolicy.Invoke(new()
        {
            Name = "Managed-CachingOptimized",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cloudfront.CloudfrontFunctions;
    import com.pulumi.aws.cloudfront.inputs.GetCachePolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = CloudfrontFunctions.getCachePolicy(GetCachePolicyArgs.builder()
                .name("Managed-CachingOptimized")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:cloudfront:getCachePolicy
          Arguments:
            name: Managed-CachingOptimized
    

    Using getCachePolicy

    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 getCachePolicy(args: GetCachePolicyArgs, opts?: InvokeOptions): Promise<GetCachePolicyResult>
    function getCachePolicyOutput(args: GetCachePolicyOutputArgs, opts?: InvokeOptions): Output<GetCachePolicyResult>
    def get_cache_policy(id: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCachePolicyResult
    def get_cache_policy_output(id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetCachePolicyResult]
    func LookupCachePolicy(ctx *Context, args *LookupCachePolicyArgs, opts ...InvokeOption) (*LookupCachePolicyResult, error)
    func LookupCachePolicyOutput(ctx *Context, args *LookupCachePolicyOutputArgs, opts ...InvokeOption) LookupCachePolicyResultOutput

    > Note: This function is named LookupCachePolicy in the Go SDK.

    public static class GetCachePolicy 
    {
        public static Task<GetCachePolicyResult> InvokeAsync(GetCachePolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetCachePolicyResult> Invoke(GetCachePolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCachePolicyResult> getCachePolicy(GetCachePolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:cloudfront/getCachePolicy:getCachePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Identifier for the cache policy.
    Name string
    Unique name to identify the cache policy.
    Id string
    Identifier for the cache policy.
    Name string
    Unique name to identify the cache policy.
    id String
    Identifier for the cache policy.
    name String
    Unique name to identify the cache policy.
    id string
    Identifier for the cache policy.
    name string
    Unique name to identify the cache policy.
    id str
    Identifier for the cache policy.
    name str
    Unique name to identify the cache policy.
    id String
    Identifier for the cache policy.
    name String
    Unique name to identify the cache policy.

    getCachePolicy Result

    The following output properties are available:

    Comment string
    Comment to describe the cache policy.
    DefaultTtl int
    Default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    Etag string
    Current version of the cache policy.
    MaxTtl int
    Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    MinTtl int
    Minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    ParametersInCacheKeyAndForwardedToOrigins List<GetCachePolicyParametersInCacheKeyAndForwardedToOrigin>
    The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
    Id string
    Name string
    Comment string
    Comment to describe the cache policy.
    DefaultTtl int
    Default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    Etag string
    Current version of the cache policy.
    MaxTtl int
    Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    MinTtl int
    Minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    ParametersInCacheKeyAndForwardedToOrigins []GetCachePolicyParametersInCacheKeyAndForwardedToOrigin
    The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
    Id string
    Name string
    comment String
    Comment to describe the cache policy.
    defaultTtl Integer
    Default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    etag String
    Current version of the cache policy.
    maxTtl Integer
    Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    minTtl Integer
    Minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    parametersInCacheKeyAndForwardedToOrigins List<GetCachePolicyParametersInCacheKeyAndForwardedToOrigin>
    The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
    id String
    name String
    comment string
    Comment to describe the cache policy.
    defaultTtl number
    Default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    etag string
    Current version of the cache policy.
    maxTtl number
    Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    minTtl number
    Minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    parametersInCacheKeyAndForwardedToOrigins GetCachePolicyParametersInCacheKeyAndForwardedToOrigin[]
    The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
    id string
    name string
    comment str
    Comment to describe the cache policy.
    default_ttl int
    Default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    etag str
    Current version of the cache policy.
    max_ttl int
    Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    min_ttl int
    Minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    parameters_in_cache_key_and_forwarded_to_origins Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOrigin]
    The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
    id str
    name str
    comment String
    Comment to describe the cache policy.
    defaultTtl Number
    Default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    etag String
    Current version of the cache policy.
    maxTtl Number
    Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    minTtl Number
    Minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
    parametersInCacheKeyAndForwardedToOrigins List<Property Map>
    The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
    id String
    name String

    Supporting Types

    GetCachePolicyParametersInCacheKeyAndForwardedToOrigin

    CookiesConfigs List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig>
    Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.
    EnableAcceptEncodingBrotli bool
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    EnableAcceptEncodingGzip bool
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    HeadersConfigs List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig>
    Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.
    QueryStringsConfigs List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig>
    Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.
    CookiesConfigs []GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig
    Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.
    EnableAcceptEncodingBrotli bool
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    EnableAcceptEncodingGzip bool
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    HeadersConfigs []GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig
    Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.
    QueryStringsConfigs []GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig
    Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.
    cookiesConfigs List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig>
    Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.
    enableAcceptEncodingBrotli Boolean
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    enableAcceptEncodingGzip Boolean
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    headersConfigs List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig>
    Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.
    queryStringsConfigs List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig>
    Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.
    cookiesConfigs GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig[]
    Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.
    enableAcceptEncodingBrotli boolean
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    enableAcceptEncodingGzip boolean
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    headersConfigs GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig[]
    Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.
    queryStringsConfigs GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig[]
    Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.
    cookies_configs Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig]
    Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.
    enable_accept_encoding_brotli bool
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    enable_accept_encoding_gzip bool
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    headers_configs Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig]
    Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.
    query_strings_configs Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig]
    Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.
    cookiesConfigs List<Property Map>
    Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.
    enableAcceptEncodingBrotli Boolean
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    enableAcceptEncodingGzip Boolean
    A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
    headersConfigs List<Property Map>
    Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.
    queryStringsConfigs List<Property Map>
    Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.

    GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig

    CookieBehavior string
    Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    Cookies List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie>
    Object that contains a list of cookie names. See Items for more information.
    CookieBehavior string
    Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    Cookies []GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie
    Object that contains a list of cookie names. See Items for more information.
    cookieBehavior String
    Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    cookies List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie>
    Object that contains a list of cookie names. See Items for more information.
    cookieBehavior string
    Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    cookies GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie[]
    Object that contains a list of cookie names. See Items for more information.
    cookie_behavior str
    Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    cookies Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie]
    Object that contains a list of cookie names. See Items for more information.
    cookieBehavior String
    Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    cookies List<Property Map>
    Object that contains a list of cookie names. See Items for more information.

    GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie

    Items List<string>
    List of item names (cookies, headers, or query_strings).
    Items []string
    List of item names (cookies, headers, or query_strings).
    items List<String>
    List of item names (cookies, headers, or query_strings).
    items string[]
    List of item names (cookies, headers, or query_strings).
    items Sequence[str]
    List of item names (cookies, headers, or query_strings).
    items List<String>
    List of item names (cookies, headers, or query_strings).

    GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig

    HeaderBehavior string
    Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist.
    Headers List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader>
    Object that contains a list of header names. See Items for more information.
    HeaderBehavior string
    Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist.
    Headers []GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader
    Object that contains a list of header names. See Items for more information.
    headerBehavior String
    Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist.
    headers List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader>
    Object that contains a list of header names. See Items for more information.
    headerBehavior string
    Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist.
    headers GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader[]
    Object that contains a list of header names. See Items for more information.
    header_behavior str
    Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist.
    headers Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader]
    Object that contains a list of header names. See Items for more information.
    headerBehavior String
    Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist.
    headers List<Property Map>
    Object that contains a list of header names. See Items for more information.

    GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader

    Items List<string>
    List of item names (cookies, headers, or query_strings).
    Items []string
    List of item names (cookies, headers, or query_strings).
    items List<String>
    List of item names (cookies, headers, or query_strings).
    items string[]
    List of item names (cookies, headers, or query_strings).
    items Sequence[str]
    List of item names (cookies, headers, or query_strings).
    items List<String>
    List of item names (cookies, headers, or query_strings).

    GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig

    QueryStringBehavior string
    Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    QueryStrings List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString>
    Object that contains a list of query string names. See Items for more information.
    QueryStringBehavior string
    Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    QueryStrings []GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString
    Object that contains a list of query string names. See Items for more information.
    queryStringBehavior String
    Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    queryStrings List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString>
    Object that contains a list of query string names. See Items for more information.
    queryStringBehavior string
    Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    queryStrings GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString[]
    Object that contains a list of query string names. See Items for more information.
    query_string_behavior str
    Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    query_strings Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString]
    Object that contains a list of query string names. See Items for more information.
    queryStringBehavior String
    Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all.
    queryStrings List<Property Map>
    Object that contains a list of query string names. See Items for more information.

    GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString

    Items List<string>
    List of item names (cookies, headers, or query_strings).
    Items []string
    List of item names (cookies, headers, or query_strings).
    items List<String>
    List of item names (cookies, headers, or query_strings).
    items string[]
    List of item names (cookies, headers, or query_strings).
    items Sequence[str]
    List of item names (cookies, headers, or query_strings).
    items List<String>
    List of item names (cookies, headers, or query_strings).

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi