@InterfaceAudience.LimitedPrivate(value="Tests") @InterfaceStability.Unstable public final class RolePolicies extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KMS_ALL_KEYS
Arn for all KMS keys: "*".
|
static String |
KMS_ALL_OPERATIONS
All KMS operations: "kms:*".
|
static String |
KMS_DECRYPT
Decrypt data encrypted with SSE-KMS: "kms:Decrypt".
|
static String |
KMS_ENCRYPT
KMS encryption.
|
static String |
KMS_GENERATE_DATA_KEY
This is used by S3 to generate a per-object encryption key and
the encrypted value of this, the latter being what it tags
the object with for later decryption: "kms:GenerateDataKey".
|
static String |
S3_ABORT_MULTIPART_UPLOAD
Abort multipart upload is needed for the S3A Commit protocols.
|
static String |
S3_ALL_BUCKETS
All S3 buckets: "arn:aws:s3:::*".
|
static String |
S3_ALL_DELETE
All s3:Delete* operations.
|
static String |
S3_ALL_GET
All s3:Get* operations.
|
static String |
S3_ALL_OPERATIONS
All S3 operations: "s3:*".
|
static String |
S3_ALL_PUT
S3 Put*.
|
static String |
S3_BUCKET_ALL_LIST
All bucket list operations, including
S3_BUCKET_LIST_BUCKET and
S3_BUCKET_LIST_MULTIPART_UPLOADS . |
static String |
S3_BUCKET_LIST_BUCKET
List the contents of a bucket.
|
static String |
S3_BUCKET_LIST_MULTIPART_UPLOADS
This is used by the abort operation in S3A commit work.
|
static String[] |
S3_BUCKET_READ_OPERATIONS
Policies which can be applied to bucket resources for read operations.
|
static String |
S3_DELETE_OBJECT |
static String |
S3_DELETE_OBJECT_TAGGING |
static String |
S3_DELETE_OBJECT_VERSION |
static String |
S3_DELETE_OBJECT_VERSION_TAGGING |
static String |
S3_GET_BUCKET_LOCATION |
static String |
S3_GET_OBJECT |
static String |
S3_GET_OBJECT_ACL |
static String |
S3_GET_OBJECT_TAGGING |
static String |
S3_GET_OBJECT_TORRENT |
static String |
S3_GET_OBJECT_VERSION |
static String |
S3_GET_OBJECT_VERSION_ACL |
static String |
S3_GET_OBJECT_VERSION_TAGGING |
static String |
S3_GET_OBJECT_VERSION_TORRENT |
static String |
S3_LIST_MULTIPART_UPLOAD_PARTS
List multipart upload is needed for the S3A Commit protocols.
|
static List<String> |
S3_PATH_RW_OPERATIONS
Actions needed to write data to an S3A Path.
|
static List<String> |
S3_PATH_WRITE_OPERATIONS
Actions needed to write data to an S3A Path.
|
static String |
S3_PUT_OBJECT |
static String |
S3_PUT_OBJECT_ACL |
static String |
S3_PUT_OBJECT_TAGGING |
static String |
S3_PUT_OBJECT_VERSION_ACL |
static String |
S3_PUT_OBJECT_VERSION_TAGGING |
static String |
S3_RESTORE_OBJECT |
static List<String> |
S3_ROOT_READ_OPERATIONS_LIST |
static List<String> |
S3_ROOT_RW_OPERATIONS
Actions needed for R/W IO from the root of a bucket.
|
static String |
S3EXPRESS_CREATE_SESSION_POLICY
S3Express session permission; required unless sessions are disabled.
|
static RoleModel.Statement |
STATEMENT_ALL_S3
Allow all S3 Operations.
|
static RoleModel.Statement |
STATEMENT_ALL_S3_GET_BUCKET_LOCATION
The s3:GetBucketLocation permission is for all buckets, not for
any named bucket, which complicates permissions.
|
static RoleModel.Statement |
STATEMENT_ALLOW_KMS_RW
Statement to allow KMS R/W access access, so full use of
SSE-KMS.
|
static RoleModel.Statement |
STATEMENT_ALLOW_SSE_KMS_READ
Statement to allow read access to KMS keys, so the ability
to read SSE-KMS data,, but not decrypt it.
|
Modifier and Type | Method and Description |
---|---|
static List<RoleModel.Statement> |
allowS3Operations(String bucket,
boolean write)
From an S3 bucket name, build an ARN to refer to it.
|
static String |
bucketObjectsToArn(String bucket)
From an S3 bucket name, build an ARN to refer to all objects in
it.
|
static String |
bucketToArn(String bucket)
From an S3 bucket name, build an ARN to refer to it.
|
public static final String KMS_ALL_OPERATIONS
public static final String KMS_ENCRYPT
public static final String KMS_DECRYPT
public static final String KMS_ALL_KEYS
public static final String KMS_GENERATE_DATA_KEY
public static final RoleModel.Statement STATEMENT_ALLOW_KMS_RW
public static final RoleModel.Statement STATEMENT_ALLOW_SSE_KMS_READ
public static final String S3_ALL_OPERATIONS
public static final String S3_ALL_BUCKETS
public static final String S3_BUCKET_ALL_LIST
S3_BUCKET_LIST_BUCKET
and
S3_BUCKET_LIST_MULTIPART_UPLOADS
.public static final String S3_BUCKET_LIST_BUCKET
public static final String S3_BUCKET_LIST_MULTIPART_UPLOADS
public static final String S3_LIST_MULTIPART_UPLOAD_PARTS
public static final String S3_ABORT_MULTIPART_UPLOAD
public static final String S3_ALL_DELETE
public static final String S3_DELETE_OBJECT
public static final String S3_DELETE_OBJECT_TAGGING
public static final String S3_DELETE_OBJECT_VERSION
public static final String S3_DELETE_OBJECT_VERSION_TAGGING
public static final String S3_ALL_GET
public static final String S3_GET_OBJECT
public static final String S3_GET_OBJECT_ACL
public static final String S3_GET_OBJECT_TAGGING
public static final String S3_GET_OBJECT_TORRENT
public static final String S3_GET_OBJECT_VERSION
public static final String S3_GET_BUCKET_LOCATION
public static final String S3_GET_OBJECT_VERSION_ACL
public static final String S3_GET_OBJECT_VERSION_TAGGING
public static final String S3_GET_OBJECT_VERSION_TORRENT
public static final String S3_ALL_PUT
public static final String S3_PUT_OBJECT
public static final String S3_PUT_OBJECT_ACL
public static final String S3_PUT_OBJECT_TAGGING
public static final String S3_PUT_OBJECT_VERSION_ACL
public static final String S3_PUT_OBJECT_VERSION_TAGGING
public static final String S3_RESTORE_OBJECT
public static final String S3EXPRESS_CREATE_SESSION_POLICY
public static final String[] S3_BUCKET_READ_OPERATIONS
public static final List<String> S3_PATH_RW_OPERATIONS
public static final List<String> S3_PATH_WRITE_OPERATIONS
public static final List<String> S3_ROOT_RW_OPERATIONS
public static final RoleModel.Statement STATEMENT_ALL_S3
public static final RoleModel.Statement STATEMENT_ALL_S3_GET_BUCKET_LOCATION
public static List<RoleModel.Statement> allowS3Operations(String bucket, boolean write)
bucket
- bucket name.write
- are write permissions requiredpublic static String bucketObjectsToArn(String bucket)
bucket
- bucket name.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.