CloudFront Response Headers Policy API

The Response Headers Policy API from CloudFront — 3 operation(s) for response headers policy.

GitHub OpenAPI

Operations 6

POST /2020-05-31/response-headers-policy Create Response Headers Policy #
GET /2020-05-31/response-headers-policy List Response Headers Policies #
DELETE /2020-05-31/response-headers-policy/{Id} Delete Response Headers Policy #
GET /2020-05-31/response-headers-policy/{Id} Get Response Headers Policy #
PUT /2020-05-31/response-headers-policy/{Id} Update Response Headers Policy #
GET /2020-05-31/response-headers-policy/{Id}/config Get Response Headers Policy Config #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudfront:cloudfront-response-headers-policy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudfront-response-headers-policy-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon CloudFront Response Headers Policy API
  version: '2020-05-31'
  description: Generated from AWS's published Smithy model for Amazon CloudFront. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://cloudfront.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /2020-05-31/response-headers-policy:
    post:
      operationId: CreateResponseHeadersPolicy
      summary: Create Response Headers Policy
      description: Creates a response headers policy. A response headers policy contains information about a set of HTTP headers.
        To create a response headers policy, you provide some metadata about the policy and a set of configurations that specify
        the headers. After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors
        in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP
        headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes
        response headers according to the configuration of the response headers policy. For more information, see Adding or
        removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/CreateResponseHeadersPolicyResult'
        '403':
          description: AccessDenied
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AccessDenied'
        '400':
          description: InconsistentQuantities; InvalidArgument; TooLongCSPInResponseHeadersPolicy; TooManyCustomHeadersInResponseHeadersPolicy;
            TooManyRemoveHeadersInResponseHeadersPolicy; TooManyResponseHeadersPolicies
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InconsistentQuantities'
        '409':
          description: ResponseHeadersPolicyAlreadyExists
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResponseHeadersPolicyAlreadyExists'
      requestBody:
        content:
          application/xml:
            schema:
              $ref: '#/components/schemas/ResponseHeadersPolicyConfig'
      tags:
      - Response Headers Policy
    get:
      operationId: ListResponseHeadersPolicies
      summary: 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.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ListResponseHeadersPoliciesResult'
        '403':
          description: AccessDenied
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AccessDenied'
        '400':
          description: InvalidArgument
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidArgument'
        '404':
          description: NoSuchResponseHeadersPolicy
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchResponseHeadersPolicy'
      parameters:
      - name: Type
        in: query
        schema:
          type: string
          enum:
          - managed
          - custom
        description: '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.'
      - name: Marker
        in: query
        schema:
          type: string
        description: 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.
      - name: MaxItems
        in: query
        schema:
          type: integer
        description: The maximum number of response headers policies that you want to get in the response.
      tags:
      - Response Headers Policy
  /2020-05-31/response-headers-policy/{Id}:
    delete:
      operationId: DeleteResponseHeadersPolicy
      summary: Delete Response Headers Policy
      description: Deletes a response headers policy. You cannot delete a response headers policy if it's attached to a cache
        behavior. First update your distributions to remove the response headers policy from all cache behaviors, then delete
        the response headers policy. To delete a response headers policy, you must provide the policy's identifier and version.
        To get these values, you can use ListResponseHeadersPolicies or GetResponseHeadersPolicy.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
        '403':
          description: AccessDenied
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AccessDenied'
        '400':
          description: IllegalDelete; InvalidIfMatchVersion
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/IllegalDelete'
        '404':
          description: NoSuchResponseHeadersPolicy
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchResponseHeadersPolicy'
        '412':
          description: PreconditionFailed
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/PreconditionFailed'
        '409':
          description: ResponseHeadersPolicyInUse
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResponseHeadersPolicyInUse'
      parameters:
      - name: Id
        in: path
        required: true
        schema:
          type: string
        description: The identifier for the response headers policy that you are deleting. To get the identifier, you can
          use ListResponseHeadersPolicies.
      - name: If-Match
        in: header
        schema:
          type: string
        description: The version of the response headers policy that you are deleting. The version is the response headers
          policy's ETag value, which you can get using ListResponseHeadersPolicies, GetResponseHeadersPolicy, or GetResponseHeadersPolicyConfig.
      tags:
      - Response Headers Policy
    get:
      operationId: GetResponseHeadersPolicy
      summary: Get Response Headers Policy
      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
        ListDistributions or GetDistribution. If the response headers policy is not attached to a cache behavior, you can
        get the identifier using ListResponseHeadersPolicies.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetResponseHeadersPolicyResult'
        '403':
          description: AccessDenied
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AccessDenied'
        '404':
          description: NoSuchResponseHeadersPolicy
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchResponseHeadersPolicy'
      parameters:
      - name: Id
        in: path
        required: true
        schema:
          type: string
        description: 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 ListDistributions or GetDistribution. If the response
          headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.
      tags:
      - Response Headers Policy
    put:
      operationId: UpdateResponseHeadersPolicy
      summary: Update Response Headers Policy
      description: 'Updates a response headers policy. When you update a response headers policy, the entire policy is replaced.
        You cannot update some policy fields independent of others. To update a response headers policy configuration: Use
        GetResponseHeadersPolicyConfig to get the current policy''s configuration. Modify the fields in the response headers
        policy configuration that you want to update. Call UpdateResponseHeadersPolicy, providing the entire response headers
        policy configuration, including the fields that you modified and those that you didn''t.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/UpdateResponseHeadersPolicyResult'
        '403':
          description: AccessDenied
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AccessDenied'
        '400':
          description: IllegalUpdate; InconsistentQuantities; InvalidArgument; InvalidIfMatchVersion; TooLongCSPInResponseHeadersPolicy;
            TooManyCustomHeadersInResponseHeadersPolicy; TooManyRemoveHeadersInResponseHeadersPolicy
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/IllegalUpdate'
        '404':
          description: NoSuchResponseHeadersPolicy
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchResponseHeadersPolicy'
        '412':
          description: PreconditionFailed
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/PreconditionFailed'
        '409':
          description: ResponseHeadersPolicyAlreadyExists
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResponseHeadersPolicyAlreadyExists'
      parameters:
      - name: Id
        in: path
        required: true
        schema:
          type: string
        description: The identifier for the response headers policy that you are updating.
      - name: If-Match
        in: header
        schema:
          type: string
        description: The version of the response headers policy that you are updating. The version is returned in the cache
          policy's ETag field in the response to GetResponseHeadersPolicyConfig.
      requestBody:
        content:
          application/xml:
            schema:
              $ref: '#/components/schemas/ResponseHeadersPolicyConfig'
      tags:
      - Response Headers Policy
  /2020-05-31/response-headers-policy/{Id}/config:
    get:
      operationId: GetResponseHeadersPolicyConfig
      summary: Get Response Headers Policy Config
      description: Gets a response headers policy configuration. To get a response headers policy configuration, 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 ListDistributions or GetDistribution. If the response headers policy is not
        attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetResponseHeadersPolicyConfigResult'
        '403':
          description: AccessDenied
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AccessDenied'
        '404':
          description: NoSuchResponseHeadersPolicy
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchResponseHeadersPolicy'
      parameters:
      - name: Id
        in: path
        required: true
        schema:
          type: string
        description: 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 ListDistributions or GetDistribution. If the response
          headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.
      tags:
      - Response Headers Policy
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: cloudfront
  schemas:
    AccessDenied:
      type: object
      properties:
        Message:
          type: string
    CreateResponseHeadersPolicyResult:
      type: object
      properties:
        ResponseHeadersPolicy:
          $ref: '#/components/schemas/ResponseHeadersPolicy'
        Location:
          type: string
          description: The URL of the response headers policy.
        ETag:
          type: string
          description: The version identifier for the current version of the response headers policy.
    GetResponseHeadersPolicyConfigResult:
      type: object
      properties:
        ResponseHeadersPolicyConfig:
          $ref: '#/components/schemas/ResponseHeadersPolicyConfig'
        ETag:
          type: string
          description: The version identifier for the current version of the response headers policy.
    GetResponseHeadersPolicyResult:
      type: object
      properties:
        ResponseHeadersPolicy:
          $ref: '#/components/schemas/ResponseHeadersPolicy'
        ETag:
          type: string
          description: The version identifier for the current version of the response headers policy.
    IllegalDelete:
      type: object
      properties:
        Message:
          type: string
    IllegalUpdate:
      type: object
      properties:
        Message:
          type: string
    InconsistentQuantities:
      type: object
      properties:
        Message:
          type: string
    InvalidArgument:
      type: object
      properties:
        Message:
          type: string
    ListResponseHeadersPoliciesResult:
      type: object
      properties:
        ResponseHeadersPolicyList:
          $ref: '#/components/schemas/ResponseHeadersPolicyList'
    NoSuchResponseHeadersPolicy:
      type: object
      properties:
        Message:
          type: string
    PreconditionFailed:
      type: object
      properties:
        Message:
          type: string
    ResponseHeadersPolicy:
      type: object
      properties:
        Id:
          type: string
          description: The identifier for the response headers policy.
        LastModifiedTime:
          type: string
          format: date-time
          description: The date and time when the response headers policy was last modified.
        ResponseHeadersPolicyConfig:
          $ref: '#/components/schemas/ResponseHeadersPolicyConfig'
      required:
      - Id
      - LastModifiedTime
      - ResponseHeadersPolicyConfig
    ResponseHeadersPolicyAccessControlAllowHeaders:
      type: object
      properties:
        Quantity:
          type: integer
          description: The number of HTTP header names in the list.
        Items:
          type: array
          items:
            type: string
          description: The list of HTTP header names. You can specify * to allow all headers.
      required:
      - Quantity
      - Items
    ResponseHeadersPolicyAccessControlAllowMethods:
      type: object
      properties:
        Quantity:
          type: integer
          description: The number of HTTP methods in the list.
        Items:
          type: array
          items:
            type: string
            enum:
            - GET
            - POST
            - OPTIONS
            - PUT
            - DELETE
            - PATCH
            - HEAD
            - ALL
          description: '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.'
      required:
      - Quantity
      - Items
    ResponseHeadersPolicyAccessControlAllowOrigins:
      type: object
      properties:
        Quantity:
          type: integer
          description: The number of origins in the list.
        Items:
          type: array
          items:
            type: string
          description: The list of origins (domain names). You can specify * to allow all origins.
      required:
      - Quantity
      - Items
    ResponseHeadersPolicyAccessControlExposeHeaders:
      type: object
      properties:
        Quantity:
          type: integer
          description: The number of HTTP headers in the list.
        Items:
          type: array
          items:
            type: string
          description: The list of HTTP headers. You can specify * to expose all headers.
      required:
      - Quantity
    ResponseHeadersPolicyAlreadyExists:
      type: object
      properties:
        Message:
          type: string
    ResponseHeadersPolicyConfig:
      type: object
      properties:
        Comment:
          type: string
          description: A comment to describe the response headers policy. The comment cannot be longer than 128 characters.
        Name:
          type: string
          description: A name to identify the response headers policy. The name must be unique for response headers policies
            in this Amazon Web Services account.
        CorsConfig:
          $ref: '#/components/schemas/ResponseHeadersPolicyCorsConfig'
        SecurityHeadersConfig:
          $ref: '#/components/schemas/ResponseHeadersPolicySecurityHeadersConfig'
        ServerTimingHeadersConfig:
          $ref: '#/components/schemas/ResponseHeadersPolicyServerTimingHeadersConfig'
        CustomHeadersConfig:
          $ref: '#/components/schemas/ResponseHeadersPolicyCustomHeadersConfig'
        RemoveHeadersConfig:
          $ref: '#/components/schemas/ResponseHeadersPolicyRemoveHeadersConfig'
      required:
      - Name
    ResponseHeadersPolicyContentSecurityPolicy:
      type: object
      properties:
        Override:
          type: boolean
          description: 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:
          type: string
          description: The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
            HTTP response header.
      required:
      - Override
      - ContentSecurityPolicy
    ResponseHeadersPolicyContentTypeOptions:
      type: object
      properties:
        Override:
          type: boolean
          description: 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.
      required:
      - Override
    ResponseHeadersPolicyCorsConfig:
      type: object
      properties:
        AccessControlAllowOrigins:
          $ref: '#/components/schemas/ResponseHeadersPolicyAccessControlAllowOrigins'
        AccessControlAllowHeaders:
          $ref: '#/components/schemas/ResponseHeadersPolicyAccessControlAllowHeaders'
        AccessControlAllowMethods:
          $ref: '#/components/schemas/ResponseHeadersPolicyAccessControlAllowMethods'
        AccessControlAllowCredentials:
          type: boolean
          description: 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:
          $ref: '#/components/schemas/ResponseHeadersPolicyAccessControlExposeHeaders'
        AccessControlMaxAgeSec:
          type: integer
          description: 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:
          type: boolean
          description: A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin
            with the ones specified in this response headers policy.
      required:
      - AccessControlAllowOrigins
      - AccessControlAllowHeaders
      - AccessControlAllowMethods
      - AccessControlAllowCredentials
      - OriginOverride
    ResponseHeadersPolicyCustomHeader:
      type: object
      properties:
        Header:
          type: string
          description: The HTTP response header name.
        Value:
          type: string
          description: The value for the HTTP response header.
        Override:
          type: boolean
          description: A Boolean that determines whether CloudFront overrides a response header with the same name received
            from the origin with the header specified here.
      required:
      - Header
      - Value
      - Override
    ResponseHeadersPolicyCustomHeadersConfig:
      type: object
      properties:
        Quantity:
          type: integer
          description: The number of HTTP response headers in the list.
        Items:
          type: array
          items:
            $ref: '#/components/schemas/ResponseHeadersPolicyCustomHeader'
          description: The list of HTTP response headers and their values.
      required:
      - Quantity
    ResponseHeadersPolicyFrameOptions:
      type: object
      properties:
        Override:
          type: boolean
          description: 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:
          type: string
          enum:
          - DENY
          - SAMEORIGIN
          description: 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.
      required:
      - Override
      - FrameOption
    ResponseHeadersPolicyInUse:
      type: object
      properties:
        Message:
          type: string
    ResponseHeadersPolicyList:
      type: object
      properties:
        NextMarker:
          type: string
          description: 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:
          type: integer
          description: The maximum number of response headers policies requested.
        Quantity:
          type: integer
          description: The number of response headers policies returned.
        Items:
          type: array
          items:
            $ref: '#/components/schemas/ResponseHeadersPolicySummary'
          description: The response headers policies in the list.
      required:
      - MaxItems
      - Quantity
    ResponseHeadersPolicyReferrerPolicy:
      type: object
      properties:
        Override:
          type: boolean
          description: 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:
          type: string
          enum:
          - no-referrer
          - no-referrer-when-downgrade
          - origin
          - origin-when-cross-origin
          - same-origin
          - strict-origin
          - strict-origin-when-cross-origin
          - unsafe-url
          description: '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.'
      required:
      - Override
      - ReferrerPolicy
    ResponseHeadersPolicyRemoveHeader:
      type: object
      properties:
        Header:
          type: string
          description: The HTTP header name.
      required:
      - Header
    ResponseHeadersPolicyRemoveHeadersConfig:
      type: object
      properties:
        Quantity:
          type: integer
          description: The number of HTTP header names in the list.
        Items:
          type: array
          items:
            $ref: '#/components/schemas/ResponseHeadersPolicyRemoveHeader'
          description: The list of HTTP header names.
      required:
      - Quantity
    ResponseHeadersPolicySecurityHeadersConfig:
      type: object
      properties:
        XSSProtection:
          $ref: '#/components/schemas/ResponseHeadersPolicyXSSProtection'
        FrameOptions:
          $ref: '#/components/schemas/ResponseHeadersPolicyFrameOptions'
        ReferrerPolicy:
          $ref: '#/components/schemas/ResponseHeadersPolicyReferrerPolicy'
        ContentSecurityPolicy:
          $ref: '#/components/schemas/ResponseHeadersPolicyContentSecurityPolicy'
        ContentTypeOptions:
          $ref: '#/components/schemas/ResponseHeadersPolicyContentTypeOptions'
        StrictTransportSecurity:
          $ref: '#/components/schemas/ResponseHeadersPolicyStrictTransportSecurity'
    ResponseHeadersPolicyServerTimingHeadersConfig:
      type: object
      properties:
        Enabled:
          type: boolean
          description: A Boolean that determines whether CloudFront adds the 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.
        SamplingRate:
          type: number
          description: A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add
            the 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:
      - Enabled
    ResponseHeadersPolicyStrictTransportSecurity:
      type: object
      properties:
        Override:
          type: boolean
          description: 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:
          type: boolean
          description: A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security
            HTTP response header.
        Preload:
          type: boolean
          description: A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security
            HTTP response header.
        AccessControlMaxAgeSec:
          type: integer
          description: A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security
            HTTP response header.
      required:
      - Override
      - AccessControlMaxAgeSec
    ResponseHeadersPolicySummary:
      type: object
      properties:
        Type:
          type: string
          enum:
          - managed
          - custom
          description: The type of response headers policy, either managed (created by Amazon Web Services) or custom (created
            in this Amazon Web Services account).
        ResponseHeadersPolicy:
          $ref: '#/components/schemas/ResponseHeadersPolicy'
      required:
      - Type
      - ResponseHeadersPolicy
    ResponseHeadersPolicyXSSProtection:
      type: object
      properties:
        Override:
          type: boolean
          description: 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:
          type: boolean
          description: 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:
          type: boolean
          description: 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:
          type: string
          description: 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.
      required:
      - Override
      - Protection
    UpdateResponseHeadersPolicyResult:
      type: object
      properties:
        ResponseHeadersPolicy:
          $ref: '#/components/schemas/ResponseHeadersPolicy'
        ETag:
          type: string
          description: The current version of the response headers policy.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/cloudfront/service/2020-05-31/cloudfront-2020-05-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)