CfnStudioSessionMappingProps Struct
Properties for defining a CfnStudioSessionMapping.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const cfnStudioSessionMappingProps: emr.CfnStudioSessionMappingProps = {
identityName: 'identityName',
identityType: 'identityType',
sessionPolicyArn: 'sessionPolicyArn',
studioId: 'studioId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emr as emr
cfn_studio_session_mapping_props = emr.CfnStudioSessionMappingProps(
identity_name="identityName",
identity_type="identityType",
session_policy_arn="sessionPolicyArn",
studio_id="studioId"
)
java
// 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.*;
CfnStudioSessionMappingProps cfnStudioSessionMappingProps = CfnStudioSessionMappingProps.builder()
.identityName("identityName")
.identityType("identityType")
.sessionPolicyArn("sessionPolicyArn")
.studioId("studioId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var cfnStudioSessionMappingProps = new CfnStudioSessionMappingProps {
IdentityName = "identityName",
IdentityType = "identityType",
SessionPolicyArn = "sessionPolicyArn",
StudioId = "studioId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnStudioSessionMappingProps := &CfnStudioSessionMappingProps{
IdentityName: jsii.String("identityName"),
IdentityType: jsii.String("identityType"),
SessionPolicyArn: jsii.String("sessionPolicyArn"),
StudioId: jsii.String("studioId"),
}
Properties
identityNamestringidentity_namestridentityNameStringIdentityNamestringIdentityName*string required #The name of the user or group.
notes
For more information, see UserName and DisplayName in the Identity Store API Reference .
identityTypestringidentity_typestridentityTypeStringIdentityTypestringIdentityType*string required #Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
sessionPolicyArnstring | IManagedPolicyRefsession_policy_arntyping.Union[str, IManagedPolicyRef]sessionPolicyArnStringSessionPolicyArnstringSessionPolicyArninterface{} required #The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group.
notes
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 .
studioIdstring | IStudioRefstudio_idtyping.Union[str, IStudioRef]studioIdStringStudioIdstringStudioIdinterface{} required #The ID of the Amazon EMR Studio to which the user or group will be mapped.