Ensure sse config is optional; pass through sse from constructor.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-11-16 10:34:56 +01:00
parent 9e64a7ac1e
commit b0c7748ab5
2 changed files with 3 additions and 2 deletions
@@ -70,13 +70,14 @@ export class AwsS3Publish implements PublisherBase {
legacyPathCasing: boolean;
logger: Logger;
bucketRootPath: string;
sse?: 'aws:kms' | 'AES256';
}) {
this.storageClient = options.storageClient;
this.bucketName = options.bucketName;
this.legacyPathCasing = options.legacyPathCasing;
this.logger = options.logger;
this.bucketRootPath = options.bucketRootPath;
this.sse = sse;
this.sse = options.sse;
}
static fromConfig(config: Config, logger: Logger): PublisherBase {
+1 -1
View File
@@ -128,7 +128,7 @@ export interface Config {
* If not set, encrypted buckets will fail to publish.
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/specifying-s3-encryption.html
*/
sse: 'aws:kms' | 'AES256';
sse?: 'aws:kms' | 'AES256';
};
}
| {