-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat (cloudfront-to-*): Add optional parameter cloudfront.ResponseHeadersPolicyProps #852
Conversation
…adersPolicyProps to CloudFrontToS3Props, CloudFrontToMediaStoreProps, CloudFronToApiGatewayProps
P.S.: I added a missing / in DEVELOPER_GUIDE.md |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/README.md
Outdated
Show resolved
Hide resolved
.../@aws-solutions-constructs/aws-cloudfront-apigateway/test/test.cloudfront-apigateway.test.ts
Outdated
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/core/lib/cloudfront-distribution-defaults.ts
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/core/lib/cloudfront-distribution-helper.ts
Outdated
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/core/lib/cloudfront-distribution-helper.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one response to your ccomments
…havior into input-validation.ts
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…ityHeaders in input-validation.ts
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Description of changes:
Added an additional optional parameter to the constructs CloudFrontToS3, CloudFrontToMediaStore, CloudFrontToApiGateway, CloudFrontToApiGatewayLambda.
The parameter allows the user of the construct to pass in a cloudfront.ResponseHeadersPolicyProps. If present, it will cause the constructs to create a ResponseHeadersPolicy.
This is particularly useful to create its own set of Security Header as demonstrated in the unit tests/integration test.
If ResponseHeadersPolicyProps with a SecurityHeadersBehavior attribute are passen to the Construct, the existing parameter setHttpSecurityHeaders has to be set to false. Otherwise the Construct will throw a validation error.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.