> **Experimental**
>
> `@aws-cdk/aws-amplify-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# CustomResponseHeader

Custom response header of an Amplify App.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/app.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-amplify-alpha/lib/app.ts#L587)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as amplify_alpha from '@aws-cdk/aws-amplify-alpha';
const customResponseHeader: amplify_alpha.CustomResponseHeader = {
  headers: {
    headersKey: 'headers',
  },
  pattern: 'pattern',

  // the properties below are optional
  appRoot: 'appRoot',
};
```

## Properties

- `appRoot`: string — If the app uses a monorepo structure, the appRoot from the build spec to apply the custom headers to.

  **Default:** The appRoot is omitted in the custom headers output.

- `headers`: { [key: string]: string } (required) — The map of custom headers to be applied.

- `pattern`: string (required) — These custom headers will be applied to all URL file paths that match this pattern.
