Class CfnAssignment.Builder

java.lang.Object
software.amazon.awscdk.services.sso.CfnAssignment.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssignment>
Enclosing class:
CfnAssignment

@Stability(Stable) public static final class CfnAssignment.Builder extends Object implements software.amazon.jsii.Builder<CfnAssignment>
A fluent builder for CfnAssignment.
  • Method Details

    • create

      @Stability(Stable) public static CfnAssignment.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAssignment.Builder.
    • instanceArn

      @Stability(Stable) public CfnAssignment.Builder instanceArn(String instanceArn)
      The ARN of the IAM Identity Center instance under which the operation will be executed.

      For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

      Parameters:
      instanceArn - The ARN of the IAM Identity Center instance under which the operation will be executed. This parameter is required.
      Returns:
      this
    • permissionSetArn

      @Stability(Stable) public CfnAssignment.Builder permissionSetArn(String permissionSetArn)
      The ARN of the permission set.

      Parameters:
      permissionSetArn - The ARN of the permission set. This parameter is required.
      Returns:
      this
    • principalId

      @Stability(Stable) public CfnAssignment.Builder principalId(String principalId)
      An identifier for an object in IAM Identity Center, such as a user or group.

      PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the IAM Identity Center Identity Store API Reference .

      Parameters:
      principalId - An identifier for an object in IAM Identity Center, such as a user or group. This parameter is required.
      Returns:
      this
    • principalType

      @Stability(Stable) public CfnAssignment.Builder principalType(String principalType)
      The entity type for which the assignment will be created.

      Parameters:
      principalType - The entity type for which the assignment will be created. This parameter is required.
      Returns:
      this
    • targetId

      @Stability(Stable) public CfnAssignment.Builder targetId(String targetId)
      TargetID is an AWS account identifier, (For example, 123456789012).

      Parameters:
      targetId - TargetID is an AWS account identifier, (For example, 123456789012). This parameter is required.
      Returns:
      this
    • targetType

      @Stability(Stable) public CfnAssignment.Builder targetType(String targetType)
      The entity type for which the assignment will be created.

      Parameters:
      targetType - The entity type for which the assignment will be created. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAssignment build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssignment>
      Returns:
      a newly built instance of CfnAssignment.