Class CfnStudioSessionMappingProps.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnStudioSessionMappingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStudioSessionMappingProps>
- Enclosing interface:
CfnStudioSessionMappingProps
@Stability(Stable)
public static final class CfnStudioSessionMappingProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStudioSessionMappingProps>
A builder for
CfnStudioSessionMappingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.identityName
(String identityName) Sets the value ofCfnStudioSessionMappingProps.getIdentityName()
identityType
(String identityType) Sets the value ofCfnStudioSessionMappingProps.getIdentityType()
sessionPolicyArn
(String sessionPolicyArn) Sets the value ofCfnStudioSessionMappingProps.getSessionPolicyArn()
Sets the value ofCfnStudioSessionMappingProps.getStudioId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identityName
Sets the value ofCfnStudioSessionMappingProps.getIdentityName()
- Parameters:
identityName
- The name of the user or group. This parameter is required. For more information, see UserName and DisplayName in the IAM Identity Center Identity Store API Reference .- Returns:
this
-
identityType
Sets the value ofCfnStudioSessionMappingProps.getIdentityType()
- Parameters:
identityType
- Specifies whether the identity to map to the Amazon EMR Studio is a user or a group. This parameter is required.- Returns:
this
-
sessionPolicyArn
@Stability(Stable) public CfnStudioSessionMappingProps.Builder sessionPolicyArn(String sessionPolicyArn) Sets the value ofCfnStudioSessionMappingProps.getSessionPolicyArn()
- Parameters:
sessionPolicyArn
- The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. This parameter is required. Session policies refine Studio user permissions without the need to use multiple IAM user roles. For more information, see Create an EMR Studio user role with session policies in the Amazon EMR Management Guide .- Returns:
this
-
studioId
Sets the value ofCfnStudioSessionMappingProps.getStudioId()
- Parameters:
studioId
- The ID of the Amazon EMR Studio to which the user or group will be mapped. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStudioSessionMappingProps>
- Returns:
- a new instance of
CfnStudioSessionMappingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-