AWS Native v0.55.0, Mar 28 23
AWS Native v0.55.0, Mar 28 23
aws-native.cloudfront.getCachePolicy
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