ResponseCustomHeader

class aws_cdk.aws_cloudfront.ResponseCustomHeader(*, header, override, value)

Bases: object

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.

Parameters
  • header (str) – The HTTP response header name.

  • override (bool) – A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.

  • value (str) – The value for the HTTP response header.

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_cloudfront as cloudfront

response_custom_header = cloudfront.ResponseCustomHeader(
    header="header",
    override=False,
    value="value"
)

Attributes

header

The HTTP response header name.

Return type

str

override

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

Return type

bool

value

The value for the HTTP response header.

Return type

str