Description Usage Arguments Value Request syntax
View source: R/cloudfront_operations.R
Gets a cache policy, including the following metadata:
The policy’s identifier.
The date and time when the policy was last modified.
To get a cache policy, you must provide the policy’s identifier. If the
cache policy is attached to a distribution’s cache behavior, you can get
the policy’s identifier using
list_distributions
or
get_distribution
. If the cache policy
is not attached to a cache behavior, you can get the identifier using
list_cache_policies
.
1 |
Id |
[required] The unique identifier for the cache policy. If the cache policy is
attached to a distribution’s cache behavior, you can get the policy’s
identifier using |
A list with the following syntax:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | list(
CachePolicy = list(
Id = "string",
LastModifiedTime = as.POSIXct(
"2015-01-01"
),
CachePolicyConfig = list(
Comment = "string",
Name = "string",
DefaultTTL = 123,
MaxTTL = 123,
MinTTL = 123,
ParametersInCacheKeyAndForwardedToOrigin = list(
EnableAcceptEncodingGzip = TRUE|FALSE,
EnableAcceptEncodingBrotli = TRUE|FALSE,
HeadersConfig = list(
HeaderBehavior = "none"|"whitelist",
Headers = list(
Quantity = 123,
Items = list(
"string"
)
)
),
CookiesConfig = list(
CookieBehavior = "none"|"whitelist"|"allExcept"|"all",
Cookies = list(
Quantity = 123,
Items = list(
"string"
)
)
),
QueryStringsConfig = list(
QueryStringBehavior = "none"|"whitelist"|"allExcept"|"all",
QueryStrings = list(
Quantity = 123,
Items = list(
"string"
)
)
)
)
)
),
ETag = "string"
)
|
1 2 3 | svc$get_cache_policy(
Id = "string"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.