Files
2026-05-06 18:55:16 -05:00

2 lines
1.1 KiB
JavaScript

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.KEY_WRITE_ACTIONS=exports.KEY_READ_ACTIONS=exports.BUCKET_DELETE_ACTIONS=exports.BUCKET_PUT_POLICY_ACTIONS=exports.BUCKET_PUT_ACL_ACTIONS=exports.BUCKET_PUT_ACTIONS=exports.LEGACY_BUCKET_PUT_ACTIONS=exports.BUCKET_READ_METADATA_ACTIONS=exports.BUCKET_READ_ACTIONS=void 0,exports.arnForObjects=arnForObjects;function arnForObjects(bucketArn,key){return`${bucketArn}/${key}`}exports.BUCKET_READ_ACTIONS=["s3:GetObject*","s3:GetBucket*","s3:List*"],exports.BUCKET_READ_METADATA_ACTIONS=["s3:GetBucket*","s3:List*"],exports.LEGACY_BUCKET_PUT_ACTIONS=["s3:PutObject*","s3:Abort*"],exports.BUCKET_PUT_ACTIONS=["s3:PutObject","s3:PutObjectLegalHold","s3:PutObjectRetention","s3:PutObjectTagging","s3:PutObjectVersionTagging","s3:Abort*"],exports.BUCKET_PUT_ACL_ACTIONS=["s3:PutObjectAcl","s3:PutObjectVersionAcl"],exports.BUCKET_PUT_POLICY_ACTIONS=["s3:PutBucketPolicy"],exports.BUCKET_DELETE_ACTIONS=["s3:DeleteObject*"],exports.KEY_READ_ACTIONS=["kms:Decrypt","kms:DescribeKey"],exports.KEY_WRITE_ACTIONS=["kms:Encrypt","kms:ReEncrypt*","kms:GenerateDataKey*","kms:Decrypt"];