Skip to content

Conversation

vickcoo
Copy link
Contributor

@vickcoo vickcoo commented May 22, 2025

Issue # (if applicable)

Closes #34469.

Reason for this change

The Distribution documentation still uses the deprecate origins.S3Origin api.

Description of changes

Use S3BucketOrigin.withOriginAccessControl(bucket, props?) instead of origins.S3Origin.

Describe any new or updated permissions being added

None

Description of how you validated changes

This is an example code in documentation. No tests are required.

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team May 22, 2025 12:46
@github-actions github-actions bot added p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels May 22, 2025
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label May 22, 2025
@ozelalisen ozelalisen self-assigned this Jul 9, 2025
Copy link
Member

@ozelalisen ozelalisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jul 9, 2025
Copy link
Contributor

mergify bot commented Jul 9, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 55e3877
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

mergify bot commented Jul 9, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit b7fcdb5 into aws:main Jul 9, 2025
17 of 18 checks passed
Copy link
Contributor

github-actions bot commented Jul 9, 2025

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(aws-cdk-lib/aws-cloudfront): (Distribution example code uses deprecated origins.S3Origin class)
4 participants