AWS v6.73.0 published on Wednesday, Mar 19, 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",
});
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-, 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",
});
import pulumi
import pulumi_aws as aws
example1 = aws.cloudfront.get_cache_policy(name="Managed-CachingOptimized")
example2 = aws.cloudfront.get_cache_policy(name="UseOriginCacheControlHeaders")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  example1:
    fn::invoke:
      function: aws:cloudfront:getCachePolicy
      arguments:
        name: Managed-CachingOptimized
  example2:
    fn::invoke:
      function: aws:cloudfront:getCachePolicy
      arguments:
        name: UseOriginCacheControlHeaders
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)
public static Output<GetCachePolicyResult> getCachePolicy(GetCachePolicyArgs args, InvokeOptions options)
fn::invoke:
  function: aws:cloudfront/getCachePolicy:getCachePolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
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.
- ParametersIn List<GetCache Key And Forwarded To Origins Cache Policy Parameters In Cache Key And Forwarded To Origin> 
- 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.
- ParametersIn []GetCache Key And Forwarded To Origins Cache Policy Parameters In Cache Key And Forwarded To Origin 
- 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.
- parametersIn List<GetCache Key And Forwarded To Origins Cache Policy Parameters In Cache Key And Forwarded To Origin> 
- 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.
- parametersIn GetCache Key And Forwarded To Origins Cache Policy Parameters In Cache Key And Forwarded To Origin[] 
- 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_ Sequence[Getcache_ key_ and_ forwarded_ to_ origins Cache Policy Parameters In Cache Key And Forwarded To Origin] 
- 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.
- parametersIn List<Property Map>Cache Key And Forwarded To Origins 
- 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          
- 
List<GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config> 
- 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.
- EnableAccept boolEncoding Brotli 
- 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.
- EnableAccept boolEncoding Gzip 
- 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<GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config> 
- 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.
- QueryStrings List<GetConfigs Cache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config> 
- 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.
- 
[]GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config 
- 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.
- EnableAccept boolEncoding Brotli 
- 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.
- EnableAccept boolEncoding Gzip 
- 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 []GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config 
- 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.
- QueryStrings []GetConfigs Cache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config 
- 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.
- 
List<GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config> 
- 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.
- enableAccept BooleanEncoding Brotli 
- 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.
- enableAccept BooleanEncoding Gzip 
- 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<GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config> 
- 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.
- queryStrings List<GetConfigs Cache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config> 
- 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.
- 
GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config[] 
- 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.
- enableAccept booleanEncoding Brotli 
- 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.
- enableAccept booleanEncoding Gzip 
- 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 GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config[] 
- 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.
- queryStrings GetConfigs Cache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config[] 
- 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.
- 
Sequence[GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config] 
- 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_ boolencoding_ brotli 
- 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_ boolencoding_ gzip 
- 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[GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config] 
- 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_ Sequence[Getconfigs Cache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config] 
- 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.
- 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.
- enableAccept BooleanEncoding Brotli 
- 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.
- enableAccept BooleanEncoding Gzip 
- 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.
- queryStrings List<Property Map>Configs 
- 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            
- 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.
- 
List<GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config Cookie> 
- Object that contains a list of cookie names. See Items for more information.
- 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.
- 
[]GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config Cookie 
- Object that contains a list of cookie names. See Items for more information.
- 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.
- 
List<GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config Cookie> 
- Object that contains a list of cookie names. See Items for more information.
- 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.
- 
GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config Cookie[] 
- Object that contains a list of cookie names. See Items for more information.
- 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.
- 
Sequence[GetCache Policy Parameters In Cache Key And Forwarded To Origin Cookies Config Cookie] 
- Object that contains a list of cookie names. See Items for more information.
- 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.
- 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, orquery_strings).
- Items []string
- List of item names (cookies,headers, orquery_strings).
- items List<String>
- List of item names (cookies,headers, orquery_strings).
- items string[]
- List of item names (cookies,headers, orquery_strings).
- items Sequence[str]
- List of item names (cookies,headers, orquery_strings).
- items List<String>
- List of item names (cookies,headers, orquery_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<GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config Header> 
- 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
[]GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config Header 
- 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<GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config Header> 
- 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
GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config Header[] 
- 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[GetCache Policy Parameters In Cache Key And Forwarded To Origin Headers Config Header] 
- 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, orquery_strings).
- Items []string
- List of item names (cookies,headers, orquery_strings).
- items List<String>
- List of item names (cookies,headers, orquery_strings).
- items string[]
- List of item names (cookies,headers, orquery_strings).
- items Sequence[str]
- List of item names (cookies,headers, orquery_strings).
- items List<String>
- List of item names (cookies,headers, orquery_strings).
GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig             
- QueryString stringBehavior 
- 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<GetCache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config Query String> 
- Object that contains a list of query string names. See Items for more information.
- QueryString stringBehavior 
- 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 []GetCache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config Query String 
- Object that contains a list of query string names. See Items for more information.
- queryString StringBehavior 
- 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<GetCache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config Query String> 
- Object that contains a list of query string names. See Items for more information.
- queryString stringBehavior 
- 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 GetCache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config Query String[] 
- Object that contains a list of query string names. See Items for more information.
- query_string_ strbehavior 
- 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[GetCache Policy Parameters In Cache Key And Forwarded To Origin Query Strings Config Query String] 
- Object that contains a list of query string names. See Items for more information.
- queryString StringBehavior 
- 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, orquery_strings).
- Items []string
- List of item names (cookies,headers, orquery_strings).
- items List<String>
- List of item names (cookies,headers, orquery_strings).
- items string[]
- List of item names (cookies,headers, orquery_strings).
- items Sequence[str]
- List of item names (cookies,headers, orquery_strings).
- items List<String>
- List of item names (cookies,headers, orquery_strings).
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.