|
|
@ -4,14 +4,14 @@ const sharedActionMap = {
|
|
|
|
bucketDeleteEncryption: 's3:PutEncryptionConfiguration',
|
|
|
|
bucketDeleteEncryption: 's3:PutEncryptionConfiguration',
|
|
|
|
bucketDeletePolicy: 's3:DeleteBucketPolicy',
|
|
|
|
bucketDeletePolicy: 's3:DeleteBucketPolicy',
|
|
|
|
bucketDeleteWebsite: 's3:DeleteBucketWebsite',
|
|
|
|
bucketDeleteWebsite: 's3:DeleteBucketWebsite',
|
|
|
|
bucketDeleteTagging: 's3:DeleteBucketTagging',
|
|
|
|
bucketDeleteTagging: 's3:PutBucketTagging',
|
|
|
|
bucketGet: 's3:ListBucket',
|
|
|
|
bucketGet: 's3:ListBucket',
|
|
|
|
bucketGetACL: 's3:GetBucketAcl',
|
|
|
|
bucketGetACL: 's3:GetBucketAcl',
|
|
|
|
bucketGetCors: 's3:GetBucketCORS',
|
|
|
|
bucketGetCors: 's3:GetBucketCORS',
|
|
|
|
bucketGetEncryption: 's3:GetEncryptionConfiguration',
|
|
|
|
bucketGetEncryption: 's3:GetEncryptionConfiguration',
|
|
|
|
bucketGetLifecycle: 's3:GetLifecycleConfiguration',
|
|
|
|
bucketGetLifecycle: 's3:GetLifecycleConfiguration',
|
|
|
|
bucketGetLocation: 's3:GetBucketLocation',
|
|
|
|
bucketGetLocation: 's3:GetBucketLocation',
|
|
|
|
bucketGetNotification: 's3:GetBucketNotificationConfiguration',
|
|
|
|
bucketGetNotification: 's3:GetBucketNotification',
|
|
|
|
bucketGetObjectLock: 's3:GetBucketObjectLockConfiguration',
|
|
|
|
bucketGetObjectLock: 's3:GetBucketObjectLockConfiguration',
|
|
|
|
bucketGetPolicy: 's3:GetBucketPolicy',
|
|
|
|
bucketGetPolicy: 's3:GetBucketPolicy',
|
|
|
|
bucketGetReplication: 's3:GetReplicationConfiguration',
|
|
|
|
bucketGetReplication: 's3:GetReplicationConfiguration',
|
|
|
@ -23,7 +23,7 @@ const sharedActionMap = {
|
|
|
|
bucketPutCors: 's3:PutBucketCORS',
|
|
|
|
bucketPutCors: 's3:PutBucketCORS',
|
|
|
|
bucketPutEncryption: 's3:PutEncryptionConfiguration',
|
|
|
|
bucketPutEncryption: 's3:PutEncryptionConfiguration',
|
|
|
|
bucketPutLifecycle: 's3:PutLifecycleConfiguration',
|
|
|
|
bucketPutLifecycle: 's3:PutLifecycleConfiguration',
|
|
|
|
bucketPutNotification: 's3:PutBucketNotificationConfiguration',
|
|
|
|
bucketPutNotification: 's3:PutBucketNotification',
|
|
|
|
bucketPutObjectLock: 's3:PutBucketObjectLockConfiguration',
|
|
|
|
bucketPutObjectLock: 's3:PutBucketObjectLockConfiguration',
|
|
|
|
bucketPutPolicy: 's3:PutBucketPolicy',
|
|
|
|
bucketPutPolicy: 's3:PutBucketPolicy',
|
|
|
|
bucketPutReplication: 's3:PutReplicationConfiguration',
|
|
|
|
bucketPutReplication: 's3:PutReplicationConfiguration',
|
|
|
@ -55,8 +55,8 @@ const actionMapRQ = {
|
|
|
|
// see http://docs.aws.amazon.com/AmazonS3/latest/API/
|
|
|
|
// see http://docs.aws.amazon.com/AmazonS3/latest/API/
|
|
|
|
// RESTBucketDELETEcors.html
|
|
|
|
// RESTBucketDELETEcors.html
|
|
|
|
bucketDeleteCors: 's3:PutBucketCORS',
|
|
|
|
bucketDeleteCors: 's3:PutBucketCORS',
|
|
|
|
bucketDeleteReplication: 's3:DeleteReplicationConfiguration',
|
|
|
|
bucketDeleteReplication: 's3:PutReplicationConfiguration',
|
|
|
|
bucketDeleteLifecycle: 's3:DeleteLifecycleConfiguration',
|
|
|
|
bucketDeleteLifecycle: 's3:PutLifecycleConfiguration',
|
|
|
|
completeMultipartUpload: 's3:PutObject',
|
|
|
|
completeMultipartUpload: 's3:PutObject',
|
|
|
|
initiateMultipartUpload: 's3:PutObject',
|
|
|
|
initiateMultipartUpload: 's3:PutObject',
|
|
|
|
objectDeleteVersion: 's3:DeleteObjectVersion',
|
|
|
|
objectDeleteVersion: 's3:DeleteObjectVersion',
|
|
|
@ -72,6 +72,7 @@ const actionMapRQ = {
|
|
|
|
objectReplicate: 's3:ReplicateObject',
|
|
|
|
objectReplicate: 's3:ReplicateObject',
|
|
|
|
objectPutRetentionVersion: 's3:PutObjectVersionRetention',
|
|
|
|
objectPutRetentionVersion: 's3:PutObjectVersionRetention',
|
|
|
|
objectPutLegalHoldVersion: 's3:PutObjectVersionLegalHold',
|
|
|
|
objectPutLegalHoldVersion: 's3:PutObjectVersionLegalHold',
|
|
|
|
|
|
|
|
listObjectVersions: 's3:ListBucketVersions',
|
|
|
|
...sharedActionMap,
|
|
|
|
...sharedActionMap,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -104,7 +105,7 @@ const actionMonitoringMapS3 = {
|
|
|
|
bucketGetCors: 'GetBucketCors',
|
|
|
|
bucketGetCors: 'GetBucketCors',
|
|
|
|
bucketGetLifecycle: 'GetBucketLifecycleConfiguration',
|
|
|
|
bucketGetLifecycle: 'GetBucketLifecycleConfiguration',
|
|
|
|
bucketGetLocation: 'GetBucketLocation',
|
|
|
|
bucketGetLocation: 'GetBucketLocation',
|
|
|
|
bucketGetNotification: 'GetBucketNotificationConfiguration',
|
|
|
|
bucketGetNotification: 'GetBucketNotification',
|
|
|
|
bucketGetObjectLock: 'GetObjectLockConfiguration',
|
|
|
|
bucketGetObjectLock: 'GetObjectLockConfiguration',
|
|
|
|
bucketGetPolicy: 'GetBucketPolicy',
|
|
|
|
bucketGetPolicy: 'GetBucketPolicy',
|
|
|
|
bucketGetReplication: 'GetBucketReplication',
|
|
|
|
bucketGetReplication: 'GetBucketReplication',
|
|
|
@ -117,7 +118,7 @@ const actionMonitoringMapS3 = {
|
|
|
|
bucketPutACL: 'PutBucketAcl',
|
|
|
|
bucketPutACL: 'PutBucketAcl',
|
|
|
|
bucketPutCors: 'PutBucketCors',
|
|
|
|
bucketPutCors: 'PutBucketCors',
|
|
|
|
bucketPutLifecycle: 'PutBucketLifecycleConfiguration',
|
|
|
|
bucketPutLifecycle: 'PutBucketLifecycleConfiguration',
|
|
|
|
bucketPutNotification: 'PutBucketNotificationConfiguration',
|
|
|
|
bucketPutNotification: 'PutBucketNotification',
|
|
|
|
bucketPutObjectLock: 'PutObjectLockConfiguration',
|
|
|
|
bucketPutObjectLock: 'PutObjectLockConfiguration',
|
|
|
|
bucketPutPolicy: 'PutBucketPolicy',
|
|
|
|
bucketPutPolicy: 'PutBucketPolicy',
|
|
|
|
bucketPutReplication: 'PutBucketReplication',
|
|
|
|
bucketPutReplication: 'PutBucketReplication',
|
|
|
|