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",
});
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 dictionary
The 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.
- 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 string
- 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 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.
- 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 string
- 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 []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.
- default
Ttl 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.
- max
Ttl 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.
- min
Ttl 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.
- parameters
In 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.
- default
Ttl 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.
- max
Ttl 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.
- min
Ttl 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.
- parameters
In 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.
- default
Ttl 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.
- max
Ttl 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.
- min
Ttl 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.
- parameters
In 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
This property is required. 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.
- 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. 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.
- Query
Strings Configs This property is required. List<GetCache 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.
This property is required. []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 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. []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 Configs This property is required. []GetCache 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.
This property is required. 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.
- enable
Accept Encoding Brotli 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.
- enable
Accept Encoding Gzip 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.
- headers
Configs This property is required. 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.
- query
Strings Configs This property is required. List<GetCache 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.
This property is required. 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 Encoding Brotli 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.
- enable
Accept Encoding Gzip 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.
- headers
Configs This property is required. 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 Configs This property is required. GetCache 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.
This property is required. 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_ 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[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_ configs This property is required. Sequence[GetCache 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.
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.
- enable
Accept Encoding Brotli 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.
- enable
Accept Encoding Gzip 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.
- headers
Configs 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.
- query
Strings Configs 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
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
. This property is required. 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.
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
. This property is required. []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.
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
. This property is required. 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.
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
. This property is required. 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.
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
. This property is required. 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.
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
. 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
, orquery_strings
).
- Items
This property is required. []string - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. List<String> - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. string[] - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. Sequence[str] - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. List<String> - List of item names (
cookies
,headers
, orquery_strings
).
GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig
- Header
Behavior 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<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 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. []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 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<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 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. 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 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[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 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
, orquery_strings
).
- Items
This property is required. []string - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. List<String> - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. string[] - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. Sequence[str] - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. List<String> - List of item names (
cookies
,headers
, orquery_strings
).
GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig
- Query
String Behavior 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
. - Query
Strings This property is required. 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.
- Query
String Behavior 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
. - Query
Strings This property is required. []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 Behavior 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
. - query
Strings This property is required. 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.
- query
String Behavior 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
. - query
Strings This property is required. 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_ 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[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 Behavior 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
. - query
Strings 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
, orquery_strings
).
- Items
This property is required. []string - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. List<String> - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. string[] - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. Sequence[str] - List of item names (
cookies
,headers
, orquery_strings
).
- items
This property is required. 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
aws
Terraform Provider.