aws-native logo
AWS Native v0.55.0, Mar 28 23


Resource Type definition for AWS::CloudFront::CachePolicy

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

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

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

The following arguments are supported:

Id string
Id string
id String
id string
id str
id String

getCachePolicy Result

The following output properties are available:

Supporting Types



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


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



Package Details

AWS Native pulumi/pulumi-aws-native