File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
packages/publisher/s3/src Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -64,31 +64,36 @@ export interface PublisherS3Config {
6464 s3ForcePathStyle ?: boolean ;
6565 /**
6666 * Controls whether checksums are calculated for requests sent to S3.
67- *
67+ *
6868 * Possible values:
6969 * - "WHEN_SUPPORTED" - Calculate checksums for all requests
7070 * - "WHEN_REQUIRED" - Only calculate checksums when required by the service
71- *
71+ *
7272 * See:
7373 * https://github.com/aws/aws-sdk-js-v3/blob/main/packages/middleware-flexible-checksums/src/constants.ts
74- *
74+ *
7575 * Default: "WHEN_SUPPORTED"
7676 */
77- requestChecksumCalculation ?: string
78-
77+ requestChecksumCalculation ?:
78+ | import ( '@aws-sdk/middleware-flexible-checksums' ) . RequestChecksumCalculation
79+ | import ( '@aws-sdk/types' ) . Provider < import ( '@aws-sdk/middleware-flexible-checksums' ) . RequestChecksumCalculation >
80+ | undefined ;
7981 /**
8082 * Controls whether checksums in responses from S3 are validated.
81- *
83+ *
8284 * Possible values:
8385 * - "WHEN_SUPPORTED" - Validate checksums for all responses
8486 * - "WHEN_REQUIRED" - Only validate checksums when provided by the service
85- *
87+ *
8688 * See:
8789 * https://github.com/aws/aws-sdk-js-v3/blob/main/packages/middleware-flexible-checksums/src/constants.ts
88- *
90+ *
8991 * Default: "WHEN_SUPPORTED"
9092 */
91- responseChecksumValidation ?: string
93+ responseChecksumValidation ?:
94+ | import ( '@aws-sdk/middleware-flexible-checksums' ) . ResponseChecksumValidation
95+ | import ( '@aws-sdk/types' ) . Provider < import ( '@aws-sdk/middleware-flexible-checksums' ) . ResponseChecksumValidation >
96+ | undefined ;
9297 /**
9398 * Custom function to provide the key to upload a given file to
9499 */
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ export default class PublisherS3 extends PublisherStatic<PublisherS3Config> {
4848 region : this . config . region ,
4949 endpoint : this . config . endpoint ,
5050 forcePathStyle : ! ! this . config . s3ForcePathStyle ,
51- requestChecksumCalculation : this . config . requestChecksumCalculation || " WHEN_SUPPORTED" as const ,
52- responseChecksumValidation : this . config . responseChecksumValidation || " WHEN_SUPPORTED" as const ,
51+ requestChecksumCalculation : this . config . requestChecksumCalculation || ( ' WHEN_SUPPORTED' as const ) ,
52+ responseChecksumValidation : this . config . responseChecksumValidation || ( ' WHEN_SUPPORTED' as const ) ,
5353 } ) ;
5454
5555 d ( 'creating s3 client with options:' , this . config ) ;
You can’t perform that action at this time.
0 commit comments