Class CfnStudioSessionMappingMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnStudioSessionMappingMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStudioSessionMappingMixinProps>
- Enclosing interface:
CfnStudioSessionMappingMixinProps
@Stability(Stable)
public static final class CfnStudioSessionMappingMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStudioSessionMappingMixinProps>
A builder for
CfnStudioSessionMappingMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.identityName(String identityName) Sets the value ofCfnStudioSessionMappingMixinProps.getIdentityName()identityType(String identityType) Sets the value ofCfnStudioSessionMappingMixinProps.getIdentityType()sessionPolicyArn(String sessionPolicyArn) Sets the value ofCfnStudioSessionMappingMixinProps.getSessionPolicyArn()sessionPolicyArn(IManagedPolicyRef sessionPolicyArn) Sets the value ofCfnStudioSessionMappingMixinProps.getSessionPolicyArn()Sets the value ofCfnStudioSessionMappingMixinProps.getStudioId()studioId(IStudioRef studioId) Sets the value ofCfnStudioSessionMappingMixinProps.getStudioId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identityName
@Stability(Stable) public CfnStudioSessionMappingMixinProps.Builder identityName(String identityName) Sets the value ofCfnStudioSessionMappingMixinProps.getIdentityName()- Parameters:
identityName- The name of the user or group. For more information, see UserName and DisplayName in the Identity Store API Reference .- Returns:
this
-
identityType
@Stability(Stable) public CfnStudioSessionMappingMixinProps.Builder identityType(String identityType) Sets the value ofCfnStudioSessionMappingMixinProps.getIdentityType()- Parameters:
identityType- Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.- Returns:
this
-
sessionPolicyArn
@Stability(Stable) public CfnStudioSessionMappingMixinProps.Builder sessionPolicyArn(String sessionPolicyArn) Sets the value ofCfnStudioSessionMappingMixinProps.getSessionPolicyArn()- Parameters:
sessionPolicyArn- The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. 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
-
sessionPolicyArn
@Stability(Stable) public CfnStudioSessionMappingMixinProps.Builder sessionPolicyArn(IManagedPolicyRef sessionPolicyArn) Sets the value ofCfnStudioSessionMappingMixinProps.getSessionPolicyArn()- Parameters:
sessionPolicyArn- The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. 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 ofCfnStudioSessionMappingMixinProps.getStudioId()- Parameters:
studioId- The ID of the Amazon EMR Studio to which the user or group will be mapped.- Returns:
this
-
studioId
Sets the value ofCfnStudioSessionMappingMixinProps.getStudioId()- Parameters:
studioId- The ID of the Amazon EMR Studio to which the user or group will be mapped.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStudioSessionMappingMixinProps>- Returns:
- a new instance of
CfnStudioSessionMappingMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-