Struct aws_sdk_s3control::types::builders::GranteeBuilder
source · #[non_exhaustive]pub struct GranteeBuilder { /* private fields */ }
Expand description
A builder for Grantee
.
Implementations§
source§impl GranteeBuilder
impl GranteeBuilder
sourcepub fn grantee_type(self, input: GranteeType) -> Self
pub fn grantee_type(self, input: GranteeType) -> Self
The type of the grantee to which access has been granted. It can be one of the following values:
-
IAM
- An IAM user or role. -
DIRECTORY_USER
- Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance. -
DIRECTORY_GROUP
- Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.
sourcepub fn set_grantee_type(self, input: Option<GranteeType>) -> Self
pub fn set_grantee_type(self, input: Option<GranteeType>) -> Self
The type of the grantee to which access has been granted. It can be one of the following values:
-
IAM
- An IAM user or role. -
DIRECTORY_USER
- Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance. -
DIRECTORY_GROUP
- Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.
sourcepub fn get_grantee_type(&self) -> &Option<GranteeType>
pub fn get_grantee_type(&self) -> &Option<GranteeType>
The type of the grantee to which access has been granted. It can be one of the following values:
-
IAM
- An IAM user or role. -
DIRECTORY_USER
- Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance. -
DIRECTORY_GROUP
- Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.
sourcepub fn grantee_identifier(self, input: impl Into<String>) -> Self
pub fn grantee_identifier(self, input: impl Into<String>) -> Self
The unique identifier of the Grantee
. If the grantee type is IAM
, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the format a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance.
sourcepub fn set_grantee_identifier(self, input: Option<String>) -> Self
pub fn set_grantee_identifier(self, input: Option<String>) -> Self
The unique identifier of the Grantee
. If the grantee type is IAM
, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the format a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance.
sourcepub fn get_grantee_identifier(&self) -> &Option<String>
pub fn get_grantee_identifier(&self) -> &Option<String>
The unique identifier of the Grantee
. If the grantee type is IAM
, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the format a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance.
Trait Implementations§
source§impl Clone for GranteeBuilder
impl Clone for GranteeBuilder
source§fn clone(&self) -> GranteeBuilder
fn clone(&self) -> GranteeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GranteeBuilder
impl Debug for GranteeBuilder
source§impl Default for GranteeBuilder
impl Default for GranteeBuilder
source§fn default() -> GranteeBuilder
fn default() -> GranteeBuilder
source§impl PartialEq for GranteeBuilder
impl PartialEq for GranteeBuilder
source§fn eq(&self, other: &GranteeBuilder) -> bool
fn eq(&self, other: &GranteeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.