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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • granteeIdentifier

      @Stability(Stable) public CfnAccessGrant.GranteeProperty.Builder granteeIdentifier(String granteeIdentifier)
      Parameters:
      granteeIdentifier - The unique identifier of the Grantee . This parameter is required. 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 AWS IAM Identity Center instance.
      Returns:
      this
    • granteeType

      @Stability(Stable) public CfnAccessGrant.GranteeProperty.Builder granteeType(String granteeType)
      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

      @Stability(Stable) public CfnAccessGrant.GranteeProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAccessGrant.GranteeProperty>
      Returns:
      a new instance of CfnAccessGrant.GranteeProperty
      Throws:
      NullPointerException - if any required attribute was not provided