Package com.amazonaws.services.s3.model
Enum GroupGrantee
- All Implemented Interfaces:
Grantee
,Serializable
,Comparable<GroupGrantee>
,java.lang.constant.Constable
Specifies constants defining a group of Amazon S3 users
who can be granted permissions to
Amazon S3 buckets and objects. This enumeration contains all the valid Amazon S3
group grantees.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGrants anonymous access to any Amazon S3 object or bucket.Grants access to buckets or objects to anyone with an Amazon AWS account.Grants access to Amazon S3 log delivery so that an S3 bucket can receive server access logs. -
Method Summary
Modifier and TypeMethodDescriptionGets the group grantee's URI.Returns the identifier for the type of this grant, to be used when specifying grants in the header of a request.static GroupGrantee
parseGroupGrantee
(String groupUri) Gets theGroupGrantee
enumeration value with the specified Amazon S3 group URI (eg.void
setIdentifier
(String id) For internal use only.toString()
static GroupGrantee
Returns the enum constant of this type with the specified name.static GroupGrantee[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AllUsers
Grants anonymous access to any Amazon S3 object or bucket. Any user will be able to access the object by omitting the AWS Key ID and Signature from a request.Amazon highly recommends that users do not grant the
AllUsers
group write access to their buckets. If granted, users will have no control over the objects others can store and their associated charges. -
AuthenticatedUsers
Grants access to buckets or objects to anyone with an Amazon AWS account. Although this is inherently insecure as any AWS user who is aware of the bucket or object will be able to access it, users may find this authentication method useful. -
LogDelivery
Grants access to Amazon S3 log delivery so that an S3 bucket can receive server access logs. Turning on server access logging for an Amazon S3 bucket requires that the bucket receiving the logs is granted permission for the log delivery group to deliver logs.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
getTypeIdentifier
Description copied from interface:Grantee
Returns the identifier for the type of this grant, to be used when specifying grants in the header of a request.- Specified by:
getTypeIdentifier
in interfaceGrantee
-
getIdentifier
Gets the group grantee's URI.- Specified by:
getIdentifier
in interfaceGrantee
- Returns:
- The group grantee's URI.
- See Also:
-
setIdentifier
For internal use only. Group grantees have preset identifiers that cannot be modified.- Specified by:
setIdentifier
in interfaceGrantee
- Parameters:
id
- The identifier for this grantee.- See Also:
-
toString
- Overrides:
toString
in classEnum<GroupGrantee>
- See Also:
-
parseGroupGrantee
Gets theGroupGrantee
enumeration value with the specified Amazon S3 group URI (eg. http://acs.amazonaws.com/groups/global/AllUsers). Returnsnull
if an invalid Amazon S3 group URI is specified.- Parameters:
groupUri
- A string representation of an Amazon S3 group URI (eg. http://acs.amazonaws.com/groups/global/AllUsers)- Returns:
- The
GroupGrantee
object represented by the given Amazon S3 group URI string. Returnsnull
if the string isn't a valid Amazon S3 group URI.
-