1. Packages
  2. AWS
  3. API Docs
  4. cloudfront
  5. getCachePolicy
AWS v6.74.0 published on Wednesday, Mar 26, 2025 by Pulumi

aws.cloudfront.getCachePolicy

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.cloudfront.get_cache_policy(name="example-policy")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:cloudfront:getCachePolicy
      arguments:
        name: example-policy
Copy

AWS-Managed Policies

AWS managed cache policy names are prefixed with Managed-, except for UseOriginCacheControlHeaders and UseOriginCacheControlHeaders-QueryStrings:

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example1 = aws.cloudfront.getCachePolicy({
    name: "Managed-CachingOptimized",
});
const example2 = aws.cloudfront.getCachePolicy({
    name: "UseOriginCacheControlHeaders",
});
Copy
import pulumi
import pulumi_aws as aws

example1 = aws.cloudfront.get_cache_policy(name="Managed-CachingOptimized")
example2 = aws.cloudfront.get_cache_policy(name="UseOriginCacheControlHeaders")
Copy
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
		}
		_, err = cloudfront.LookupCachePolicy(ctx, &cloudfront.LookupCachePolicyArgs{
			Name: pulumi.StringRef("UseOriginCacheControlHeaders"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example1 = Aws.CloudFront.GetCachePolicy.Invoke(new()
    {
        Name = "Managed-CachingOptimized",
    });

    var example2 = Aws.CloudFront.GetCachePolicy.Invoke(new()
    {
        Name = "UseOriginCacheControlHeaders",
    });

});
Copy
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 example1 = CloudfrontFunctions.getCachePolicy(GetCachePolicyArgs.builder()
            .name("Managed-CachingOptimized")
            .build());

        final var example2 = CloudfrontFunctions.getCachePolicy(GetCachePolicyArgs.builder()
            .name("UseOriginCacheControlHeaders")
            .build());

    }
}
Copy
variables:
  example1:
    fn::invoke:
      function: aws:cloudfront:getCachePolicy
      arguments:
        name: Managed-CachingOptimized
  example2:
    fn::invoke:
      function: aws:cloudfront:getCachePolicy
      arguments:
        name: UseOriginCacheControlHeaders
Copy

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>
Copy
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]
Copy
func LookupCachePolicy(ctx *Context, args *LookupCachePolicyArgs, opts ...InvokeOption) (*LookupCachePolicyResult, error)
func LookupCachePolicyOutput(ctx *Context, args *LookupCachePolicyOutputArgs, opts ...InvokeOption) LookupCachePolicyResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCachePolicyResult> getCachePolicy(GetCachePolicyArgs args, InvokeOptions options)
public static Output<GetCachePolicyResult> getCachePolicy(GetCachePolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:cloudfront/getCachePolicy:getCachePolicy
  arguments:
    # arguments dictionary
Copy

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:

Arn string
The cache policy ARN.
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
Arn string
The cache policy ARN.
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
arn String
The cache policy ARN.
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
arn string
The cache policy ARN.
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
arn str
The cache policy ARN.
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
arn String
The cache policy ARN.
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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. []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 This property is required. 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 This property is required. 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 This property is required. []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 This property is required. []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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie>
Object that contains a list of cookie names. See Items for more information.
CookieBehavior This property is required. 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 This property is required. []GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie
Object that contains a list of cookie names. See Items for more information.
cookieBehavior This property is required. 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 This property is required. List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie>
Object that contains a list of cookie names. See Items for more information.
cookieBehavior This property is required. 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 This property is required. GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie[]
Object that contains a list of cookie names. See Items for more information.
cookie_behavior This property is required. 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 This property is required. Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie]
Object that contains a list of cookie names. See Items for more information.
cookieBehavior This property is required. 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 This property is required. List<Property Map>
Object that contains a list of cookie names. See Items for more information.

GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie

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

GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig

HeaderBehavior This property is required. 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 This property is required. List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader>
Object that contains a list of header names. See Items for more information.
HeaderBehavior This property is required. 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 This property is required. []GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader
Object that contains a list of header names. See Items for more information.
headerBehavior This property is required. 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 This property is required. List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader>
Object that contains a list of header names. See Items for more information.
headerBehavior This property is required. 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 This property is required. GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader[]
Object that contains a list of header names. See Items for more information.
header_behavior This property is required. 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 This property is required. Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader]
Object that contains a list of header names. See Items for more information.
headerBehavior This property is required. 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 This property is required. List<Property Map>
Object that contains a list of header names. See Items for more information.

GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader

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

GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig

QueryStringBehavior This property is required. 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 This property is required. List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString>
Object that contains a list of query string names. See Items for more information.
QueryStringBehavior This property is required. 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 This property is required. []GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString
Object that contains a list of query string names. See Items for more information.
queryStringBehavior This property is required. 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 This property is required. List<GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString>
Object that contains a list of query string names. See Items for more information.
queryStringBehavior This property is required. 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 This property is required. GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString[]
Object that contains a list of query string names. See Items for more information.
query_string_behavior This property is required. 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 This property is required. Sequence[GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString]
Object that contains a list of query string names. See Items for more information.
queryStringBehavior This property is required. 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 This property is required. List<Property Map>
Object that contains a list of query string names. See Items for more information.

GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString

Items This property is required. List<string>
List of item names (cookies, headers, or query_strings).
Items This property is required. []string
List of item names (cookies, headers, or query_strings).
items This property is required. List<String>
List of item names (cookies, headers, or query_strings).
items This property is required. string[]
List of item names (cookies, headers, or query_strings).
items This property is required. Sequence[str]
List of item names (cookies, headers, or query_strings).
items This property is required. 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.