Class CfnAssignmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.sso.CfnAssignmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssignmentProps>
- Enclosing interface:
CfnAssignmentProps
@Stability(Stable)
public static final class CfnAssignmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssignmentProps>
A builder for
CfnAssignmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceArn
(String instanceArn) Sets the value ofCfnAssignmentProps.getInstanceArn()
permissionSetArn
(String permissionSetArn) Sets the value ofCfnAssignmentProps.getPermissionSetArn()
principalId
(String principalId) Sets the value ofCfnAssignmentProps.getPrincipalId()
principalType
(String principalType) Sets the value ofCfnAssignmentProps.getPrincipalType()
Sets the value ofCfnAssignmentProps.getTargetId()
targetType
(String targetType) Sets the value ofCfnAssignmentProps.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceArn
Sets the value ofCfnAssignmentProps.getInstanceArn()
- Parameters:
instanceArn
- The ARN of the IAM Identity Center instance under which the operation will be executed. This parameter is required. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .- Returns:
this
-
permissionSetArn
Sets the value ofCfnAssignmentProps.getPermissionSetArn()
- Parameters:
permissionSetArn
- The ARN of the permission set. This parameter is required.- Returns:
this
-
principalId
Sets the value ofCfnAssignmentProps.getPrincipalId()
- Parameters:
principalId
- An identifier for an object in IAM Identity Center, such as a user or group. This parameter is required. 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 .- Returns:
this
-
principalType
Sets the value ofCfnAssignmentProps.getPrincipalType()
- Parameters:
principalType
- The entity type for which the assignment will be created. This parameter is required.- Returns:
this
-
targetId
Sets the value ofCfnAssignmentProps.getTargetId()
- Parameters:
targetId
- TargetID is an AWS account identifier, (For example, 123456789012). This parameter is required.- Returns:
this
-
targetType
Sets the value ofCfnAssignmentProps.getTargetType()
- Parameters:
targetType
- The entity type for which the assignment will be created. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssignmentProps>
- Returns:
- a new instance of
CfnAssignmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-