@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:47.812Z") @Stability(value=Stable) public class CfnStudioSessionMapping extends CfnResource implements IInspectable
The AWS::EMR::StudioSessionMapping
resource is an Amazon EMR resource type that maps a user or group to the Amazon EMR Studio specified by StudioId
, and applies a session policy that defines Studio permissions for that user or group.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.emr.*; CfnStudioSessionMapping cfnStudioSessionMapping = CfnStudioSessionMapping.Builder.create(this, "MyCfnStudioSessionMapping") .identityName("identityName") .identityType("identityType") .sessionPolicyArn("sessionPolicyArn") .studioId("studioId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnStudioSessionMapping.Builder
A fluent builder for
CfnStudioSessionMapping . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnStudioSessionMapping(software.constructs.Construct scope,
String id,
CfnStudioSessionMappingProps props)
Create a new `AWS::EMR::StudioSessionMapping`.
|
protected |
CfnStudioSessionMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStudioSessionMapping(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getIdentityName()
The name of the user or group.
|
String |
getIdentityType()
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
|
String |
getSessionPolicyArn()
The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group.
|
String |
getStudioId()
The ID of the Amazon EMR Studio to which the user or group will be mapped.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setIdentityName(String value)
The name of the user or group.
|
void |
setIdentityType(String value)
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
|
void |
setSessionPolicyArn(String value)
The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group.
|
void |
setStudioId(String value)
The ID of the Amazon EMR Studio to which the user or group will be mapped.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnStudioSessionMapping(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStudioSessionMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnStudioSessionMapping(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStudioSessionMappingProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public String getIdentityName()
For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference .
@Stability(value=Stable) public void setIdentityName(@NotNull String value)
For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference .
@Stability(value=Stable) @NotNull public String getIdentityType()
@Stability(value=Stable) public void setIdentityType(@NotNull String value)
@Stability(value=Stable) @NotNull public String getSessionPolicyArn()
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 .
@Stability(value=Stable) public void setSessionPolicyArn(@NotNull String value)
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 .
@Stability(value=Stable) @NotNull public String getStudioId()
@Stability(value=Stable) public void setStudioId(@NotNull String value)
Copyright © 2022. All rights reserved.