AclGrantee

sealed class AclGrantee

You specify each grantee as a type-value pair using one of these types. You can specify only one type of grantee. For more information, see PutBucketAcl.

Inheritors

Types

Link copied to clipboard
data class Id(val value: String) : AclGrantee

The value specified is the canonical user ID of an Amazon Web Services account.

Link copied to clipboard
Link copied to clipboard
data class Uri(val value: String) : AclGrantee

Used for granting permissions to a predefined group.

Functions

Link copied to clipboard
fun asId(): String

Casts this AclGrantee as a Id and retrieves its kotlin.String value. Throws an exception if the AclGrantee is not a Id.

Link copied to clipboard

Casts this AclGrantee as a Id and retrieves its kotlin.String value. Returns null if the AclGrantee is not a Id.

Link copied to clipboard
fun asUri(): String

Casts this AclGrantee as a Uri and retrieves its kotlin.String value. Throws an exception if the AclGrantee is not a Uri.

Link copied to clipboard

Casts this AclGrantee as a Uri and retrieves its kotlin.String value. Returns null if the AclGrantee is not a Uri.