Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   *
   *  http://aws.amazon.com/apache2.0
   *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.auth.policy.actions;
 
The available AWS access control policy actions for Amazon S3.

 
 public enum S3Actions implements Action {

    
Represents any action being taken on Amazon S3.
 
     AllS3Actions("s3:*"),

    
 
     GetObject("s3:GetObject"),

    
 
     GetObjectVersion("s3:GetObjectVersion"),

    
 
     PutObject("s3:PutObject"),

    
 
     GetObjectAcl("s3:GetObjectAcl"),

    
 
     GetObjectVersionAcl("s3:GetObjectVersionAcl"),

    
 
     SetObjectAcl("s3:PutObjectAcl"),

    
    SetObjectVersionAcl("s3:PutObjectAclVersion"),

    
    DeleteObject("s3:DeleteObject"),

    
    DeleteObjectVersion("s3:DeleteObjectVersion"),

    
Action for listing parts that have been uploaded for a multipart upload.

    ListMultipartUploadParts("s3:ListMultipartUploadParts"),

    
    AbortMultipartUpload("s3:AbortMultipartUpload"),

    
Action for restoring a temporary copy of an archived object.

    RestoreObject("s3:RestoreObject"),

    
    CreateBucket("s3:CreateBucket"),

    
    DeleteBucket("s3:DeleteBucket"),

    
    ListObjects("s3:ListBucket"),

    
Action for listing the object versions in an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    ListObjectVersions("s3:ListBucketVersions"),

    
Action for listing the Amazon S3 buckets in an account.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    ListBuckets("s3:ListAllMyBuckets"),

    
Actions for listing the in-progress multipart uploads for an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    ListBucketMultipartUploads("s3:ListBucketMultipartUploads"),

    
Action for retrieving the ACL of an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketAcl("s3:GetBucketAcl"),

    
    SetBucketAcl("s3:PutBucketAcl"),

    
Action for getting the Cross origin configuration configuration information set for the bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketCrossOriginConfiguration("s3:GetBucketCORS"),

    
Action for setting the Cross origin configuration configuration information set for the bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    SetBucketCrossOriginConfiguration("s3:PutBucketCORS"),

    
Action for retrieving the versioning configuration of an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketVersioningConfiguration("s3:GetBucketVersioning"),

    
    SetBucketVersioningConfiguration("s3:PutBucketVersioning"),

    
Action for retrieving the requester pays status of an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketRequesterPays("s3:GetBucketRequestPayment"),

    
Action for setting the requester pays status of an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    SetBucketRequesterPays("s3:PutBucketRequestPayment"),

    
Action for retrieving the bucket location of an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketLocation("s3:GetBucketLocation"),

    
Action for retrieving the access control policy for an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketPolicy("s3:GetBucketPolicy"),

    
Action for setting the access control policy for an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    SetBucketPolicy("s3:PutBucketPolicy"),

    
Action for deleting the access control policy for an Amazon S3 Bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    DeleteBucketPolicy("s3:DeleteBucketPolicy"),

    
Action for retrieving the bucket notification configuration for an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketNotificationConfiguration("s3:GetBucketNotification"),

    
    SetBucketNotificationConfiguration("s3:PutBucketNotification"),

    
Action for getting the bucket logging configuration for an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketLogging("s3:GetBucketLogging"),

    
    SetBucketLogging("s3:PutBucketLogging"),

    
Action for getting the bucket tagging configuration for an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketTagging("s3:GetBucketTagging"),

    
    SetBucketTagging("s3:PutBucketTagging"),

    
    GetBucketWebsiteConfiguration("s3:GetBucketWebsite"),

    
    SetBucketWebsiteConfiguration("s3:PutBucketWebsite"),

    
    DeleteBucketWebsiteConfiguration("s3:DeleteBucketWebsite"),

    
Action for getting the bucket lifecycle configuration for an Amazon S3 bucket.

Valid for use with com.amazonaws.auth.policy.resources.S3BucketResource resources.

    GetBucketLifecycleConfiguration("s3:GetLifecycleConfiguration"),

    
    SetBucketLifecycleConfiguration("s3:PutLifecycleConfiguration");
    private final String action;
    private S3Actions(String action) {
        this. = action;
    }
    /*
     * (non-Javadoc)
     *
     * @see com.amazonaws.auth.policy.Action#getId()
     */
    public String getActionName() {
        return this.;
    }
New to GrepCode? Check out our FAQ X