AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.78.0 published on Wednesday, Sep 27, 2023 by Pulumi
aws-native.cloudfront.getCachePolicy
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.78.0 published on Wednesday, Sep 27, 2023 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:
- Cache
Policy CacheConfig Policy Config - Id string
- Last
Modified stringTime
- cache
Policy CacheConfig Policy Config - id String
- last
Modified StringTime
- cache
Policy CacheConfig Policy Config - id string
- last
Modified stringTime
- cache
Policy Property MapConfig - id String
- last
Modified StringTime
Supporting Types
CachePolicyConfig
- Default
Ttl float64 - Max
Ttl float64 - Min
Ttl float64 - Name string
- Parameters
In CacheCache Key And Forwarded To Origin Policy Parameters In Cache Key And Forwarded To Origin - Comment string
- default
Ttl Double - max
Ttl Double - min
Ttl Double - name String
- parameters
In CacheCache Key And Forwarded To Origin Policy Parameters In Cache Key And Forwarded To Origin - comment String
- default
Ttl number - max
Ttl number - min
Ttl number - name string
- parameters
In CacheCache Key And Forwarded To Origin Policy Parameters In Cache Key And Forwarded To Origin - comment string
- default
Ttl Number - max
Ttl Number - min
Ttl Number - name String
- parameters
In Property MapCache Key And Forwarded To Origin - comment String
CachePolicyCookiesConfig
- string
- List<string>
- string
- []string
- String
- List<String>
- string
- string[]
- str
- Sequence[str]
- String
- List<String>
CachePolicyHeadersConfig
- Header
Behavior string - Headers List<string>
- Header
Behavior string - Headers []string
- header
Behavior String - headers List<String>
- header
Behavior string - headers string[]
- header_
behavior str - headers Sequence[str]
- header
Behavior String - headers List<String>
CachePolicyParametersInCacheKeyAndForwardedToOrigin
CachePolicyQueryStringsConfig
- Query
String stringBehavior - Query
Strings List<string>
- Query
String stringBehavior - Query
Strings []string
- query
String StringBehavior - query
Strings List<String>
- query
String stringBehavior - query
Strings string[]
- query_
string_ strbehavior - query_
strings Sequence[str]
- query
String StringBehavior - query
Strings List<String>
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.78.0 published on Wednesday, Sep 27, 2023 by Pulumi