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. from aws_cdk import aws_cloudfront as cloudfront response_custom_header = cloudfront.ResponseCustomHeader( header="header", override=False, value="value" )
Attributes
- header
The HTTP response header name.
- override
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
- value
The value for the HTTP response header.