-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathperms.ts
45 lines (38 loc) · 915 Bytes
/
perms.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export const BUCKET_READ_ACTIONS = [
's3:GetObject*',
's3:GetBucket*',
's3:List*',
];
export const BUCKET_READ_METADATA_ACTIONS = [
's3:GetBucket*',
's3:List*',
];
export const LEGACY_BUCKET_PUT_ACTIONS = [
's3:PutObject*',
's3:Abort*',
];
export const BUCKET_PUT_ACTIONS = [
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
];
export const BUCKET_PUT_ACL_ACTIONS = [
's3:PutObjectAcl',
's3:PutObjectVersionAcl',
];
export const BUCKET_DELETE_ACTIONS = [
's3:DeleteObject*',
];
export const KEY_READ_ACTIONS = [
'kms:Decrypt',
'kms:DescribeKey',
];
export const KEY_WRITE_ACTIONS = [
'kms:Encrypt',
'kms:ReEncrypt*',
'kms:GenerateDataKey*',
'kms:Decrypt', // required for multipart uploads. Refer https://aws.amazon.com/premiumsupport/knowledge-center/s3-multipart-kms-decrypt/
];