#include <libs3.h>
Public Attributes | |
| S3GranteeType | granteeType |
| union { | |
| struct { | |
| char emailAddress [S3_MAX_GRANTEE_EMAIL_ADDRESS_SIZE] | |
| } amazonCustomerByEmail | |
| struct { | |
| char id [S3_MAX_GRANTEE_USER_ID_SIZE] | |
| char displayName [S3_MAX_GRANTEE_DISPLAY_NAME_SIZE] | |
| } canonicalUser | |
| } | grantee |
| S3Permission | permission |
The granteeType gives the type of grantee specified by this grant.
| char S3AclGrant::emailAddress[S3_MAX_GRANTEE_EMAIL_ADDRESS_SIZE] |
This is the email address of the Amazon Customer being granted permissions by this S3AclGrant.
| struct { ... } S3AclGrant::amazonCustomerByEmail |
This structure is used iff the granteeType is S3GranteeTypeAmazonCustomerByEmail.
| char S3AclGrant::id[S3_MAX_GRANTEE_USER_ID_SIZE] |
This is the CanonicalUser ID of the grantee
| char S3AclGrant::displayName[S3_MAX_GRANTEE_DISPLAY_NAME_SIZE] |
This is the display name of the grantee
| struct { ... } S3AclGrant::canonicalUser |
This structure is used iff the granteeType is S3GranteeTypeCanonicalUser.
| union { ... } S3AclGrant::grantee |
The identifier of the grantee that is set is determined by the granteeType:
S3GranteeTypeAmazonCustomerByEmail - amazonCustomerByEmail.emailAddress S3GranteeTypeCanonicalUser - canonicalUser.id, canonicalUser.displayName S3GranteeTypeAllAwsUsers - none S3GranteeTypeAllUsers - none
This is the S3Permission to be granted to the grantee
1.5.7.1