diff --git a/components/buckets/info.vue b/components/buckets/info.vue index 30b423f..b516e21 100644 --- a/components/buckets/info.vue +++ b/components/buckets/info.vue @@ -509,7 +509,7 @@ const submitEncryptForm = () => { putBucketEncryption(bucketName.value, { Rules: [ { - ServerSideEncryptionByDefault: { + ApplyServerSideEncryptionByDefault: { SSEAlgorithm: 'aws:kms', KMSMasterKeyID: encryptFormValue.value.kmsKeyId, }, @@ -528,7 +528,7 @@ const submitEncryptForm = () => { putBucketEncryption(bucketName.value, { Rules: [ { - ServerSideEncryptionByDefault: { + ApplyServerSideEncryptionByDefault: { SSEAlgorithm: 'AES256', }, }, diff --git a/composables/useBucket.ts b/composables/useBucket.ts index 25a072c..9dfe88a 100644 --- a/composables/useBucket.ts +++ b/composables/useBucket.ts @@ -26,7 +26,7 @@ import { GetBucketReplicationCommand, PutBucketReplicationCommand, DeleteBucketReplicationCommand, -} from "@aws-sdk/client-s3"; +} from '@aws-sdk/client-s3'; export function useBucket({ region }: { region?: string }) { const $client = useNuxtApp().$s3Client; @@ -84,7 +84,7 @@ export function useBucket({ region }: { region?: string }) { const params = { Bucket: bucket, VersioningConfiguration: { - Status: status == "Enabled" ? BucketVersioningStatus.Enabled : BucketVersioningStatus.Suspended, + Status: status == 'Enabled' ? BucketVersioningStatus.Enabled : BucketVersioningStatus.Suspended, MFADelete: MFADelete.Enabled, }, };