Skip to content

CloudFront  >  Structures  >  ResponseHeadersPolicyAccessControlAllowMethods

ResponseHeadersPolicyAccessControlAllowMethods

Structure Class

ResponseHeadersPolicyAccessControlAllowMethods dataclass

Bases: _SerdeShape

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.

Attributes

items instance-attribute
items: list[str]

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.

quantity instance-attribute
quantity: int

The number of HTTP methods in the list.