Skip to content

(s3): Add support for transfer acceleration #12570

@pdlug

Description

@pdlug

The S3 module does not currently have support for setting transfer acceleration status on a bucket. Cloudformation already has support for this AWS::S3::Bucket AccelerateConfiguration

Use Case

Needed to enable transfer acceleration on S3 bucket.

Proposed Solution

Propose adding an enum for TransferAccelerationStatus:

export enum TransferAccelerationStatus {
  /**
   * Transfer acceleration is suspended.
   */
  Suspended = 'Suspended',
  /**
   * Transfer acceleration is enabled.
   */
  Enabled = 'Enabled',
}

Along with support in construct props for Bucket:

const bucket = new s3.Bucket(this, "uploads", {
  accelerationStatus: s3.TransferAccelerationStatus.Enabled,
  // ...
});

associated property:

transferAccelerationStatus

and method:

public configureTransferAcceleration(status: TransferAccelerationStatus): void

s3.configureTransferAcceleration(s3.TransferAccelerationStatus.Enabled);

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

No one assigned

    Labels

    @aws-cdk/aws-s3Related to Amazon S3effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.feature/coverage-gapGaps in CloudFormation coverage by L2 constructsp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions