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

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.101.0 published on Thursday, Apr 11, 2024 by Pulumi

aws-native.cloudfront.getCachePolicy

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.101.0 published on Thursday, Apr 11, 2024 by Pulumi

    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
    
    fn::invoke:
      function: aws-native:cloudfront:getCachePolicy
      arguments:
        # 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

    CachePolicyConfig

    CachePolicyCookiesConfig

    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>

    CachePolicyHeadersConfig

    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>

    CachePolicyParametersInCacheKeyAndForwardedToOrigin

    CachePolicyQueryStringsConfig

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.101.0 published on Thursday, Apr 11, 2024 by Pulumi