interface CustomResponseHeader
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Amplify.CustomResponseHeader |
![]() | software.amazon.awscdk.services.amplify.CustomResponseHeader |
![]() | aws_cdk.aws_amplify.CustomResponseHeader |
![]() | @aws-cdk/aws-amplify » CustomResponseHeader |
Custom response header of an Amplify App.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as amplify from '@aws-cdk/aws-amplify';
const customResponseHeader: amplify.CustomResponseHeader = {
headers: {
headersKey: 'headers',
},
pattern: 'pattern',
};
Properties
Name | Type | Description |
---|---|---|
headers | { [string]: string } | The map of custom headers to be applied. |
pattern | string | These custom headers will be applied to all URL file paths that match this pattern. |
headers
Type:
{ [string]: string }
The map of custom headers to be applied.
pattern
Type:
string
These custom headers will be applied to all URL file paths that match this pattern.