Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.auth.policy.actions
Enum S3Actions

java.lang.Object
  extended by java.lang.Enum<S3Actions>
      extended by com.amazonaws.auth.policy.actions.S3Actions
All Implemented Interfaces:
Action, Serializable, Comparable<S3Actions>

public enum S3Actions
extends Enum<S3Actions>
implements Action

The available AWS access control policy actions for Amazon S3.

See Also:
Statement.setActions(java.util.Collection)

Enum Constant Summary
AllS3Actions
          Represents any action being taken on Amazon S3.
CreateBucket
          Action for creating a new Amazon S3 bucket.
DeleteBucket
          Action for deleting an Amazon S3 bucket.
DeleteObject
          Action for deleting an object.
DeleteObjectVersion
          Action for deleting an object version.
GetBucketAcl
          Action for retrieving the ACL of an Amazon S3 bucket.
GetBucketLocation
          Action for retrieving the bucket location of an Amazon S3 bucket.
GetBucketNotificationConfiguration
          Action for retrieving the bucket notification configuration for an Amazon S3 bucket.
GetBucketPolicy
          Action for retrieving the access control policy for an Amazon S3 bucket.
GetBucketRequesterPays
          Action for retrieving the requester pays status of an Amazon S3 bucket.
GetBucketVersioningConfiguration
          Action for retrieving the versioning configuration of an Amazon S3 bucket.
GetObject
          Action for retrieving an object (GET), object metadata (HEAD) or an object torrent.
GetObjectAcl
          Action for retrieving an object's ACL.
GetObjectVersion
          Action for retrieving a object version (GET), object metadata for an object version (HEAD) or a torrent for an object version.
GetObjectVersionAcl
          Action for retrieving an object version's ACL.
ListBuckets
          Action for listing the Amazon S3 buckets in an account.
ListObjects
          Action for listing the objects in an Amazon S3 bucket.
ListObjectVersions
          Action for listing the object versions in an Amazon S3 bucket.
PutObject
          Action for uploading an object (PUT or POST).
SetBucketAcl
          Action for setting the ACL of an Amazon S3 bucket.
SetBucketNotificationConfiguration
          Action for setting the bucket notification configuration for an Amazon S3 bucket.
SetBucketPolicy
          Action for setting the access control policy for an Amazon S3 bucket.
SetBucketRequesterPays
          Action for setting the requester pays status of an Amazon S3 bucket.
SetBucketVersioningConfiguration
          Action for setting the versioning configuration of an Amazon S3 bucket.
SetObjectAcl
          Action for setting an object's ACL.
SetObjectVersionAcl
          Action for setting an object version's ACL.
 
Method Summary
 String getActionName()
          Returns the name of this action.
static S3Actions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static S3Actions[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AllS3Actions

public static final S3Actions AllS3Actions
Represents any action being taken on Amazon S3.


GetObject

public static final S3Actions GetObject
Action for retrieving an object (GET), object metadata (HEAD) or an object torrent.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.getObject(com.amazonaws.services.s3.model.GetObjectRequest), AmazonS3.getObjectMetadata(com.amazonaws.services.s3.model.GetObjectMetadataRequest)

GetObjectVersion

public static final S3Actions GetObjectVersion
Action for retrieving a object version (GET), object metadata for an object version (HEAD) or a torrent for an object version.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.getObject(com.amazonaws.services.s3.model.GetObjectRequest), AmazonS3.getObjectMetadata(com.amazonaws.services.s3.model.GetObjectMetadataRequest)

PutObject

public static final S3Actions PutObject
Action for uploading an object (PUT or POST).

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.putObject(com.amazonaws.services.s3.model.PutObjectRequest)

GetObjectAcl

public static final S3Actions GetObjectAcl
Action for retrieving an object's ACL.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.getObjectAcl(String, String)

GetObjectVersionAcl

public static final S3Actions GetObjectVersionAcl
Action for retrieving an object version's ACL.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.getObjectAcl(String, String, String)

SetObjectAcl

public static final S3Actions SetObjectAcl
Action for setting an object's ACL.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.setObjectAcl(String, String, com.amazonaws.services.s3.model.AccessControlList), AmazonS3.setObjectAcl(String, String, com.amazonaws.services.s3.model.CannedAccessControlList)

SetObjectVersionAcl

public static final S3Actions SetObjectVersionAcl
Action for setting an object version's ACL.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.setObjectAcl(String, String, String, com.amazonaws.services.s3.model.AccessControlList), AmazonS3.setObjectAcl(String, String, String, com.amazonaws.services.s3.model.CannedAccessControlList)

DeleteObject

public static final S3Actions DeleteObject
Action for deleting an object.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.deleteObject(com.amazonaws.services.s3.model.DeleteObjectRequest)

DeleteObjectVersion

public static final S3Actions DeleteObjectVersion
Action for deleting an object version.

Valid for use with S3ObjectResource resources.

See Also:
AmazonS3.deleteVersion(com.amazonaws.services.s3.model.DeleteVersionRequest)

CreateBucket

public static final S3Actions CreateBucket
Action for creating a new Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.createBucket(com.amazonaws.services.s3.model.CreateBucketRequest)

DeleteBucket

public static final S3Actions DeleteBucket
Action for deleting an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.deleteBucket(com.amazonaws.services.s3.model.DeleteBucketRequest)

ListObjects

public static final S3Actions ListObjects
Action for listing the objects in an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.listObjects(com.amazonaws.services.s3.model.ListObjectsRequest)

ListObjectVersions

public static final S3Actions ListObjectVersions
Action for listing the object versions in an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.listVersions(com.amazonaws.services.s3.model.ListVersionsRequest)

ListBuckets

public static final S3Actions ListBuckets
Action for listing the Amazon S3 buckets in an account.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.listBuckets()

GetBucketAcl

public static final S3Actions GetBucketAcl
Action for retrieving the ACL of an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.getBucketAcl(String)

SetBucketAcl

public static final S3Actions SetBucketAcl
Action for setting the ACL of an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.setBucketAcl(String, com.amazonaws.services.s3.model.AccessControlList), AmazonS3.setBucketAcl(String, com.amazonaws.services.s3.model.CannedAccessControlList)

GetBucketVersioningConfiguration

public static final S3Actions GetBucketVersioningConfiguration
Action for retrieving the versioning configuration of an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.getBucketVersioningConfiguration(String)

SetBucketVersioningConfiguration

public static final S3Actions SetBucketVersioningConfiguration
Action for setting the versioning configuration of an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.setBucketVersioningConfiguration(com.amazonaws.services.s3.model.SetBucketVersioningConfigurationRequest)

GetBucketRequesterPays

public static final S3Actions GetBucketRequesterPays
Action for retrieving the requester pays status of an Amazon S3 bucket.

Valid for use with S3BucketResource resources.


SetBucketRequesterPays

public static final S3Actions SetBucketRequesterPays
Action for setting the requester pays status of an Amazon S3 bucket.

Valid for use with S3BucketResource resources.


GetBucketLocation

public static final S3Actions GetBucketLocation
Action for retrieving the bucket location of an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.getBucketLocation(String)

GetBucketPolicy

public static final S3Actions GetBucketPolicy
Action for retrieving the access control policy for an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.getBucketPolicy(String)

SetBucketPolicy

public static final S3Actions SetBucketPolicy
Action for setting the access control policy for an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.setBucketPolicy(String, String)

GetBucketNotificationConfiguration

public static final S3Actions GetBucketNotificationConfiguration
Action for retrieving the bucket notification configuration for an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.getBucketNotificationConfiguration(String)

SetBucketNotificationConfiguration

public static final S3Actions SetBucketNotificationConfiguration
Action for setting the bucket notification configuration for an Amazon S3 bucket.

Valid for use with S3BucketResource resources.

See Also:
AmazonS3.setBucketNotificationConfiguration(String, com.amazonaws.services.s3.model.BucketNotificationConfiguration)
Method Detail

values

public static S3Actions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (S3Actions c : S3Actions.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static S3Actions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getActionName

public String getActionName()
Description copied from interface: Action
Returns the name of this action. For example, 'sqs:SendMessage' is the name corresponding to the SQS action that enables users to send a message to an SQS queue.

Specified by:
getActionName in interface Action
Returns:
The name of this action.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.