CustomResponseHeader

class aws_cdk.aws_amplify.CustomResponseHeader(*, headers, pattern)

Bases: object

(experimental) Custom response header of an Amplify App.

Parameters
  • headers (Mapping[str, str]) – (experimental) The map of custom headers to be applied.

  • pattern (str) – (experimental) These custom headers will be applied to all URL file paths that match this pattern.

Stability

experimental

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_amplify as amplify

custom_response_header = amplify.CustomResponseHeader(
    headers={
        "headers_key": "headers"
    },
    pattern="pattern"
)

Attributes

headers

(experimental) The map of custom headers to be applied.

Stability

experimental

Return type

Mapping[str, str]

pattern

(experimental) These custom headers will be applied to all URL file paths that match this pattern.

Stability

experimental

Return type

str