Get Response Headers Policy
cloudfront_get_response_headers_policy | R Documentation |
Gets a response headers policy, including metadata (the policy's identifier and the date and time when the policy was last modified)¶
Description¶
Gets a response headers policy, including metadata (the policy's identifier and the date and time when the policy was last modified).
To get a response headers policy, you must provide the policy's
identifier. If the response headers policy is attached to a
distribution's cache behavior, you can get the policy's identifier using
list_distributions
or get_distribution
. If the response headers
policy is not attached to a cache behavior, you can get the identifier
using list_response_headers_policies
.
Usage¶
Arguments¶
Id
[required] The identifier for the response headers policy.
If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using
list_distributions
orget_distribution
. If the response headers policy is not attached to a cache behavior, you can get the identifier usinglist_response_headers_policies
.
Value¶
A list with the following syntax:
list(
ResponseHeadersPolicy = list(
Id = "string",
LastModifiedTime = as.POSIXct(
"2015-01-01"
),
ResponseHeadersPolicyConfig = list(
Comment = "string",
Name = "string",
CorsConfig = list(
AccessControlAllowOrigins = list(
Quantity = 123,
Items = list(
"string"
)
),
AccessControlAllowHeaders = list(
Quantity = 123,
Items = list(
"string"
)
),
AccessControlAllowMethods = list(
Quantity = 123,
Items = list(
"GET"|"POST"|"OPTIONS"|"PUT"|"DELETE"|"PATCH"|"HEAD"|"ALL"
)
),
AccessControlAllowCredentials = TRUE|FALSE,
AccessControlExposeHeaders = list(
Quantity = 123,
Items = list(
"string"
)
),
AccessControlMaxAgeSec = 123,
OriginOverride = TRUE|FALSE
),
SecurityHeadersConfig = list(
XSSProtection = list(
Override = TRUE|FALSE,
Protection = TRUE|FALSE,
ModeBlock = TRUE|FALSE,
ReportUri = "string"
),
FrameOptions = list(
Override = TRUE|FALSE,
FrameOption = "DENY"|"SAMEORIGIN"
),
ReferrerPolicy = list(
Override = TRUE|FALSE,
ReferrerPolicy = "no-referrer"|"no-referrer-when-downgrade"|"origin"|"origin-when-cross-origin"|"same-origin"|"strict-origin"|"strict-origin-when-cross-origin"|"unsafe-url"
),
ContentSecurityPolicy = list(
Override = TRUE|FALSE,
ContentSecurityPolicy = "string"
),
ContentTypeOptions = list(
Override = TRUE|FALSE
),
StrictTransportSecurity = list(
Override = TRUE|FALSE,
IncludeSubdomains = TRUE|FALSE,
Preload = TRUE|FALSE,
AccessControlMaxAgeSec = 123
)
),
ServerTimingHeadersConfig = list(
Enabled = TRUE|FALSE,
SamplingRate = 123.0
),
CustomHeadersConfig = list(
Quantity = 123,
Items = list(
list(
Header = "string",
Value = "string",
Override = TRUE|FALSE
)
)
),
RemoveHeadersConfig = list(
Quantity = 123,
Items = list(
list(
Header = "string"
)
)
)
)
),
ETag = "string"
)