Skip to content

s3: provide Bucket.s3UrlForObject(key) #7507

@christophgysin

Description

@christophgysin

Similar to Bucket.urlForObject(key) which returns the http URL, we should provide a Bucket.s3UrlForObject(key) which returns the URL in the form s3://bucket/key.

Use Case

For services that expect an s3 url, we currently need to construct it manually using the bucket name and key.

Proposed Solution

Add Bucket.s3UrlForObject(key) similar to Bucket.urlForObject(key)

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-s3Related to Amazon S3feature-requestA feature should be added or improved.in-progressThis issue is being actively worked on.needs-triageThis issue or PR still needs to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions