[ aws . cloudfront ]

list-response-headers-policies

Description

Gets a list of response headers policies.

You can optionally apply a filter to get only the managed policies created by Amazon Web Services, or only the custom policies created in your Amazon Web Services account.

You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

See also: AWS API Documentation

See ‘aws help’ for descriptions of global parameters.

Synopsis

  list-response-headers-policies
[--type <value>]
[--marker <value>]
[--max-items <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]

Options

--type (string)

A filter to get only the specified kind of response headers policies. Valid values are:

  • managed – Gets only the managed policies created by Amazon Web Services.

  • custom – Gets only the custom policies created in your Amazon Web Services account.

Possible values:

  • managed

  • custom

--marker (string)

Use this field when paginating results to indicate where to begin in your list of response headers policies. The response includes response headers policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.

--max-items (string)

The maximum number of response headers policies that you want to get in the response.

--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See ‘aws help’ for descriptions of global parameters.

Output

ResponseHeadersPolicyList -> (structure)

A list of response headers policies.

NextMarker -> (string)

If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the Marker field of a subsequent request to continue listing response headers policies where you left off.

MaxItems -> (integer)

The maximum number of response headers policies requested.

Quantity -> (integer)

The number of response headers policies returned.

Items -> (list)

The response headers policies in the list.

(structure)

Contains a response headers policy.

Type -> (string)

The type of response headers policy, either managed (created by Amazon Web Services) or custom (created in this Amazon Web Services account).

ResponseHeadersPolicy -> (structure)

The response headers policy.

Id -> (string)

The identifier for the response headers policy.

LastModifiedTime -> (timestamp)

The date and time when the response headers policy was last modified.

ResponseHeadersPolicyConfig -> (structure)

A response headers policy configuration.

A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.

Comment -> (string)

A comment to describe the response headers policy.

The comment cannot be longer than 128 characters.

Name -> (string)

A name to identify the response headers policy.

The name must be unique for response headers policies in this Amazon Web Services account.

CorsConfig -> (structure)

A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).

AccessControlAllowOrigins -> (structure)

A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.

For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.

Quantity -> (integer)

The number of origins in the list.

Items -> (list)

The list of origins (domain names). You can specify * to allow all origins.

(string)

AccessControlAllowHeaders -> (structure)

A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header.

For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.

Quantity -> (integer)

The number of HTTP header names in the list.

Items -> (list)

The list of HTTP header names. You can specify * to allow all headers.

(string)

AccessControlAllowMethods -> (structure)

A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header.

For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.

Quantity -> (integer)

The number of HTTP methods in the list.

Items -> (list)

The list of HTTP methods. Valid values are:

  • GET

  • DELETE

  • HEAD

  • OPTIONS

  • PATCH

  • POST

  • PUT

  • ALL

ALL is a special value that includes all of the listed HTTP methods.

(string)

AccessControlAllowCredentials -> (boolean)

A Boolean that CloudFront uses as the value for the 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.

AccessControlExposeHeaders -> (structure)

A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header.

For more information about the Access-Control-Expose-Headers HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.

Quantity -> (integer)

The number of HTTP headers in the list.

Items -> (list)

The list of HTTP headers. You can specify * to expose all headers.

(string)

AccessControlMaxAgeSec -> (integer)

A number that CloudFront uses as the value for the 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.

OriginOverride -> (boolean)

A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.

SecurityHeadersConfig -> (structure)

A configuration for a set of security-related HTTP response headers.

XSSProtection -> (structure)

Determines whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value.

For more information about the X-XSS-Protection HTTP response header, see X-XSS-Protection in the MDN Web Docs.

Override -> (boolean)

A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

Protection -> (boolean)

A Boolean that determines the value of the 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.

ModeBlock -> (boolean)

A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

ReportUri -> (string)

A reporting URI, which CloudFront uses as the value of the 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.

FrameOptions -> (structure)

Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value.

For more information about the X-Frame-Options HTTP response header, see X-Frame-Options in the MDN Web Docs.

Override -> (boolean)

A Boolean that determines whether CloudFront overrides the X-Frame-Options HTTP response header received from the origin with the one specified in this response headers policy.

FrameOption -> (string)

The value of the 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.

ReferrerPolicy -> (structure)

Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value.

For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.

Override -> (boolean)

A Boolean that determines whether CloudFront overrides the Referrer-Policy HTTP response header received from the origin with the one specified in this response headers policy.

ReferrerPolicy -> (string)

The value of the 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

For more information about these values, see Referrer-Policy in the MDN Web Docs.

ContentSecurityPolicy -> (structure)

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy in the MDN Web Docs.

Override -> (boolean)

A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy.

ContentSecurityPolicy -> (string)

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

ContentTypeOptions -> (structure)

Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff .

For more information about the X-Content-Type-Options HTTP response header, see X-Content-Type-Options in the MDN Web Docs.

Override -> (boolean)

A Boolean that determines whether CloudFront overrides the X-Content-Type-Options HTTP response header received from the origin with the one specified in this response headers policy.

StrictTransportSecurity -> (structure)

Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value.

For more information about the Strict-Transport-Security HTTP response header, see Strict-Transport-Security in the MDN Web Docs.

Override -> (boolean)

A Boolean that determines whether CloudFront overrides the Strict-Transport-Security HTTP response header received from the origin with the one specified in this response headers policy.

IncludeSubdomains -> (boolean)

A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.

Preload -> (boolean)

A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.

AccessControlMaxAgeSec -> (integer)

A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.

CustomHeadersConfig -> (structure)

A configuration for a set of custom HTTP response headers.

Quantity -> (integer)

The number of HTTP response headers in the list.

Items -> (list)

The list of HTTP response headers and their values.

(structure)

An HTTP response header name and its value. CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.

Header -> (string)

The HTTP response header name.

Value -> (string)

The value for the HTTP response header.

Override -> (boolean)

A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.