Skip to content

ResponseHeadersPolicyConfig

Source code in docs_src/capo_cloudfront/types/response_headers_policy_config.py
class ResponseHeadersPolicyConfig(TypedDict, closed=True):
    comment: NotRequired["capo_cloudfront.types.string.string"]
    """<p>A comment to describe the response headers policy.</p> <p>The comment cannot be longer than 128 characters.</p>"""
    name: "capo_cloudfront.types.string.string"
    """<p>A name to identify the response headers policy.</p> <p>The name must be unique for response headers policies in this Amazon Web Services account.</p>"""
    cors_config: NotRequired[
        "capo_cloudfront.types.response_headers_policy_cors_config.ResponseHeadersPolicyCorsConfig"
    ]
    """<p>A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).</p>"""
    security_headers_config: NotRequired[
        "capo_cloudfront.types.response_headers_policy_security_headers_config.ResponseHeadersPolicySecurityHeadersConfig"
    ]
    """<p>A configuration for a set of security-related HTTP response headers.</p>"""
    server_timing_headers_config: NotRequired[
        "capo_cloudfront.types.response_headers_policy_server_timing_headers_config.ResponseHeadersPolicyServerTimingHeadersConfig"
    ]
    """<p>A configuration for enabling the <code>Server-Timing</code> header in HTTP responses sent from CloudFront.</p>"""
    custom_headers_config: NotRequired[
        "capo_cloudfront.types.response_headers_policy_custom_headers_config.ResponseHeadersPolicyCustomHeadersConfig"
    ]
    """<p>A configuration for a set of custom HTTP response headers.</p>"""
    remove_headers_config: NotRequired[
        "capo_cloudfront.types.response_headers_policy_remove_headers_config.ResponseHeadersPolicyRemoveHeadersConfig"
    ]
    """<p>A configuration for a set of HTTP headers to remove from the HTTP response.</p>"""

comment instance-attribute

comment: NotRequired[string]

A comment to describe the response headers policy.

The comment cannot be longer than 128 characters.

cors_config instance-attribute

cors_config: NotRequired[ResponseHeadersPolicyCorsConfig]

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

custom_headers_config instance-attribute

custom_headers_config: NotRequired[ResponseHeadersPolicyCustomHeadersConfig]

A configuration for a set of custom HTTP response headers.

name instance-attribute

name: string

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 instance-attribute

remove_headers_config: NotRequired[ResponseHeadersPolicyRemoveHeadersConfig]

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

security_headers_config instance-attribute

security_headers_config: NotRequired[ResponseHeadersPolicySecurityHeadersConfig]

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

server_timing_headers_config instance-attribute

server_timing_headers_config: NotRequired[
    ResponseHeadersPolicyServerTimingHeadersConfig
]

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