Skip to content

CloudFront  >  Structures  >  ResponseHeadersPolicyConfig

ResponseHeadersPolicyConfig

Structure Class

ResponseHeadersPolicyConfig dataclass

Bases: _SerdeShape

A response headers policy configuration.

A response headers policy configuration contains metadata about the response headers policy, and configurations for sets of HTTP response headers.

Attributes

comment class-attribute instance-attribute
comment: str | None = ...

A comment to describe the response headers policy.

The comment cannot be longer than 128 characters.

cors_config class-attribute instance-attribute
cors_config: ResponseHeadersPolicyCorsConfig | None = ...

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

custom_headers_config class-attribute instance-attribute
custom_headers_config: ResponseHeadersPolicyCustomHeadersConfig | None = ...

A configuration for a set of custom HTTP response headers.

name instance-attribute
name: str

A name to identify the response headers policy.

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

remove_headers_config class-attribute instance-attribute
remove_headers_config: ResponseHeadersPolicyRemoveHeadersConfig | None = ...

A configuration for a set of HTTP headers to remove from the HTTP response.

security_headers_config class-attribute instance-attribute
security_headers_config: ResponseHeadersPolicySecurityHeadersConfig | None = ...

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

server_timing_headers_config class-attribute instance-attribute
server_timing_headers_config: ResponseHeadersPolicyServerTimingHeadersConfig | None = ...

A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront.