Class CfnAccessGrantPropsMixin.GranteeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnAccessGrantPropsMixin.GranteeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessGrantPropsMixin.GranteeProperty>
- Enclosing interface:
CfnAccessGrantPropsMixin.GranteeProperty
@Stability(Stable)
public static final class CfnAccessGrantPropsMixin.GranteeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessGrantPropsMixin.GranteeProperty>
A builder for
CfnAccessGrantPropsMixin.GranteeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.granteeIdentifier(String granteeIdentifier) Sets the value ofCfnAccessGrantPropsMixin.GranteeProperty.getGranteeIdentifier()granteeType(String granteeType) Sets the value ofCfnAccessGrantPropsMixin.GranteeProperty.getGranteeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
granteeIdentifier
@Stability(Stable) public CfnAccessGrantPropsMixin.GranteeProperty.Builder granteeIdentifier(String granteeIdentifier) Sets the value ofCfnAccessGrantPropsMixin.GranteeProperty.getGranteeIdentifier()- Parameters:
granteeIdentifier- The unique identifier of theGrantee. If the grantee type isIAM, 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 formata1b2c3d4-5678-90ab-cdef-EXAMPLE11111. You can obtain this UUID from your AWS IAM Identity Center instance.- Returns:
this
-
granteeType
@Stability(Stable) public CfnAccessGrantPropsMixin.GranteeProperty.Builder granteeType(String granteeType) Sets the value ofCfnAccessGrantPropsMixin.GranteeProperty.getGranteeType()- Parameters:
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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessGrantPropsMixin.GranteeProperty>- Returns:
- a new instance of
CfnAccessGrantPropsMixin.GranteeProperty - Throws:
NullPointerException- if any required attribute was not provided
-