MCPcopy
hub / github.com/serverless/serverless / shouldS3Accelerate

Function shouldS3Accelerate

packages/serverless/lib/aws/s3-acceleration.js:5–15  ·  view source on GitHub ↗
(method, params)

Source from the content-addressed store, hash-verified

3const accelerationCompatibleS3Methods = new Set(['upload', 'putObject'])
4
5export const shouldS3Accelerate = (method, params) => {
6 if (
7 accelerationCompatibleS3Methods.has(method) &&
8 params &&
9 params.isS3TransferAccelerationEnabled
10 ) {
11 log.notice('Using S3 Transfer Acceleration Endpoint')
12 return true
13 }
14 return false
15}

Callers

nothing calls this directly

Calls 1

noticeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…