AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
New-CFResponseHeadersPolicy-ResponseHeadersPolicyConfig_Name <String>-CorsConfig_AccessControlAllowCredential <Boolean>-CorsConfig_AccessControlMaxAgeSec <Int32>-StrictTransportSecurity_AccessControlMaxAgeSec <Int32>-ResponseHeadersPolicyConfig_Comment <String>-ContentSecurityPolicy_ContentSecurityPolicy <String>-ServerTimingHeadersConfig_Enabled <Boolean>-FrameOptions_FrameOption <FrameOptionsList>-StrictTransportSecurity_IncludeSubdomain <Boolean>-AccessControlAllowHeaders_Item <String[]>-AccessControlAllowMethods_Item <String[]>-AccessControlAllowOrigins_Item <String[]>-AccessControlExposeHeaders_Item <String[]>-CustomHeadersConfig_Item <ResponseHeadersPolicyCustomHeader[]>-RemoveHeadersConfig_Item <ResponseHeadersPolicyRemoveHeader[]>-XSSProtection_ModeBlock <Boolean>-CorsConfig_OriginOverride <Boolean>-ContentSecurityPolicy_Override <Boolean>-ContentTypeOptions_Override <Boolean>-FrameOptions_Override <Boolean>-ReferrerPolicy_Override <Boolean>-StrictTransportSecurity_Override <Boolean>-XSSProtection_Override <Boolean>-StrictTransportSecurity_Preload <Boolean>-XSSProtection_Protection <Boolean>-AccessControlAllowHeaders_Quantity <Int32>-AccessControlAllowMethods_Quantity <Int32>-AccessControlAllowOrigins_Quantity <Int32>-AccessControlExposeHeaders_Quantity <Int32>-CustomHeadersConfig_Quantity <Int32>-RemoveHeadersConfig_Quantity <Int32>-ReferrerPolicy_ReferrerPolicy <ReferrerPolicyList>-XSSProtection_ReportUri <String>-ServerTimingHeadersConfig_SamplingRate <Double>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonCloudFrontConfig>
*
to allow all headers. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlAllowHeaders_Items |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlAllowHeaders_Quantity |
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlAllowMethods_Items |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlAllowMethods_Quantity |
*
to allow all origins. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlAllowOrigins_Items |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlAllowOrigins_Quantity |
*
to expose all headers. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlExposeHeaders_Items |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlExposeHeaders_Quantity |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Content-Security-Policy
HTTP response header. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_ContentSecurityPolicy_ContentSecurityPolicy |
Content-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_ContentSecurityPolicy_Override |
X-Content-Type-Options
HTTP response header received from the origin with the one specified in this response headers policy. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_ContentTypeOptions_Override |
Access-Control-Allow-Credentials
HTTP response header.For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlAllowCredentials |
Access-Control-Max-Age
HTTP response header.For more information about the Access-Control-Max-Age
HTTP response header, see Access-Control-Max-Age in the MDN Web Docs. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_AccessControlMaxAgeSec |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CorsConfig_OriginOverride |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CustomHeadersConfig_Items |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_CustomHeadersConfig_Quantity |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.For more information about these values, see X-Frame-Options in the MDN Web Docs. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_FrameOptions_FrameOption |
X-Frame-Options
HTTP response header received from the origin with the one specified in this response headers policy. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_FrameOptions_Override |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Referrer-Policy
HTTP response header received from the origin with the one specified in this response headers policy. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_ReferrerPolicy_Override |
Referrer-Policy
HTTP response header. Valid values are:no-referrer
no-referrer-when-downgrade
origin
origin-when-cross-origin
same-origin
strict-origin
strict-origin-when-cross-origin
unsafe-url
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_ReferrerPolicy_ReferrerPolicy |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_RemoveHeadersConfig_Items |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_RemoveHeadersConfig_Quantity |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Server-Timing
header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_ServerTimingHeadersConfig_Enabled |
Server-Timing
header to. When you set the sampling rate to 100, CloudFront adds the Server-Timing
header to the HTTP response for every request that matches the cache behavior that this response headers policy is attached to. When you set it to 50, CloudFront adds the header to 50% of the responses for requests that match the cache behavior. You can set the sampling rate to any number 0–100 with up to four decimal places. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_ServerTimingHeadersConfig_SamplingRate |
max-age
directive in the Strict-Transport-Security
HTTP response header. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_StrictTransportSecurity_AccessControlMaxAgeSec |
includeSubDomains
directive in the Strict-Transport-Security
HTTP response header. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_StrictTransportSecurity_IncludeSubdomains |
Strict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_StrictTransportSecurity_Override |
preload
directive in the Strict-Transport-Security
HTTP response header. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_StrictTransportSecurity_Preload |
mode=block
directive in the X-XSS-Protection
header.For more information about this directive, see X-XSS-Protection in the MDN Web Docs. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_XSSProtection_ModeBlock |
X-XSS-Protection
HTTP response header received from the origin with the one specified in this response headers policy. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_XSSProtection_Override |
X-XSS-Protection
HTTP response header. When this setting is true
, the value of the X-XSS-Protection
header is 1
. When this setting is false
, the value of the X-XSS-Protection
header is 0
.For more information about these settings, see X-XSS-Protection in the MDN Web Docs. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_XSSProtection_Protection |
report
directive in the X-XSS-Protection
header.You cannot specify a ReportUri
when ModeBlock
is true
.For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ResponseHeadersPolicyConfig_SecurityHeadersConfig_XSSProtection_ReportUri |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
AWS Tools for PowerShell: 2.x.y.z