Skip to content
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(s3): bucket websiteRedirect #3392

Merged
merged 3 commits into from
Jul 23, 2019

Conversation

nmussy
Copy link
Contributor

@nmussy nmussy commented Jul 23, 2019

Implements missing Bucket WebsiteConfiguration RedirectAllRequestsTo property.
The constructor checks that the following requirement is fulfilled:

If you specify this property, you can't specify any other property.

Fixes #1083


Please read the contribution guidelines and follow the pull-request checklist.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@nmussy nmussy requested a review from a team as a code owner July 23, 2019 08:23
@nmussy
Copy link
Contributor Author

nmussy commented Jul 23, 2019

It might be worth considering a refactor of the website* properties into a websiteConfiguration object, especially considering the CDK is still missing the WebsiteConfiguration.RoutingRules property.

packages/@aws-cdk/aws-s3/lib/bucket.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-s3/lib/bucket.ts Outdated Show resolved Hide resolved
* websiteRedirectAllRequestsTo -> websiteRedirect
* RedirectAllRequestsTo -> RedirectTarget
* remove websiteRedirectAllRequestsTo mentions
@nmussy nmussy changed the title feat(s3): bucket websiteRedirectAllRequestsTo feat(s3): bucket websiteRedirect Jul 23, 2019
@eladb eladb merged commit dd574cc into aws:master Jul 23, 2019
@nmussy nmussy deleted the feat-s3-redirect-all-requests-to branch July 25, 2019 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

L2 for "RedirectAllRequestsToProperty" in S3
2 participants