accessPolicy (property)
The AccessPolicy are used to set permissions when a Bucket or an object is updated.
- (int)accessPolicy
- (void)setAccessPolicy:(int)newAccessPolicy
Possible Values
PT_PRIVATE(0), PT_PUBLIC_READ(1), PT_PUBLIC_READ_WRITE(2), PT_AUTHENTICATED_READ(3), PT_BUCKET_OWNER_READ(4), PT_BUCKET_OWNER_FULL_CONTROL(5), PT_NONE(6)
Default Value
0
Remarks
Buckets and objects can be configured to be publicly accessible by setting a suitable AccessPolicy.
Note: Setting AccessPolicy to ptNone (6) instructs the class to not explicitly set permissions when a Bucket or an object is updated.