Class CfnAccessGrant.GranteeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnAccessGrant.GranteeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessGrant.GranteeProperty>
- Enclosing interface:
CfnAccessGrant.GranteeProperty
@Stability(Stable)
public static final class CfnAccessGrant.GranteeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessGrant.GranteeProperty>
A builder for
CfnAccessGrant.GranteeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.granteeIdentifier
(String granteeIdentifier) Sets the value ofCfnAccessGrant.GranteeProperty.getGranteeIdentifier()
granteeType
(String granteeType) Sets the value ofCfnAccessGrant.GranteeProperty.getGranteeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
granteeIdentifier
@Stability(Stable) public CfnAccessGrant.GranteeProperty.Builder granteeIdentifier(String granteeIdentifier) Sets the value ofCfnAccessGrant.GranteeProperty.getGranteeIdentifier()
- Parameters:
granteeIdentifier
- The unique identifier of theGrantee
. This parameter is required. 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
Sets the value ofCfnAccessGrant.GranteeProperty.getGranteeType()
- Parameters:
granteeType
- The type of the grantee to which access has been granted. It can be one of the following values:. This parameter is required.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnAccessGrant.GranteeProperty>
- Returns:
- a new instance of
CfnAccessGrant.GranteeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-