Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Maps a user or group to the Amazon EMR Studio specified by StudioId
,
and applies a session policy to refine Studio permissions for that user
or group. Use CreateStudioSessionMapping
to assign users to a Studio
when you use Amazon Web Services SSO authentication. For instructions on
how to assign users to a Studio when you use IAM authentication, see
Assign a user or group to your EMR Studio.
Synopsis
- data CreateStudioSessionMapping = CreateStudioSessionMapping' {}
- newCreateStudioSessionMapping :: Text -> IdentityType -> Text -> CreateStudioSessionMapping
- createStudioSessionMapping_identityId :: Lens' CreateStudioSessionMapping (Maybe Text)
- createStudioSessionMapping_identityName :: Lens' CreateStudioSessionMapping (Maybe Text)
- createStudioSessionMapping_studioId :: Lens' CreateStudioSessionMapping Text
- createStudioSessionMapping_identityType :: Lens' CreateStudioSessionMapping IdentityType
- createStudioSessionMapping_sessionPolicyArn :: Lens' CreateStudioSessionMapping Text
- data CreateStudioSessionMappingResponse = CreateStudioSessionMappingResponse' {
- newCreateStudioSessionMappingResponse :: CreateStudioSessionMappingResponse
Creating a Request
data CreateStudioSessionMapping Source #
See: newCreateStudioSessionMapping
smart constructor.
CreateStudioSessionMapping' | |
|
Instances
newCreateStudioSessionMapping Source #
:: Text | |
-> IdentityType | |
-> Text | |
-> CreateStudioSessionMapping |
Create a value of CreateStudioSessionMapping
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:identityId:CreateStudioSessionMapping'
, createStudioSessionMapping_identityId
- The globally unique identifier (GUID) of the user or group from the
Amazon Web Services SSO Identity Store. For more information, see
UserId
and
GroupId
in the Amazon Web Services SSO Identity Store API Reference. Either
IdentityName
or IdentityId
must be specified, but not both.
$sel:identityName:CreateStudioSessionMapping'
, createStudioSessionMapping_identityName
- The name of the user or group. For more information, see
UserName
and
DisplayName
in the Amazon Web Services SSO Identity Store API Reference. Either
IdentityName
or IdentityId
must be specified, but not both.
$sel:studioId:CreateStudioSessionMapping'
, createStudioSessionMapping_studioId
- The ID of the Amazon EMR Studio to which the user or group will be
mapped.
$sel:identityType:CreateStudioSessionMapping'
, createStudioSessionMapping_identityType
- Specifies whether the identity to map to the Amazon EMR Studio is a user
or a group.
$sel:sessionPolicyArn:CreateStudioSessionMapping'
, createStudioSessionMapping_sessionPolicyArn
- The Amazon Resource Name (ARN) for the session policy that will be
applied to the user or group. You should specify the ARN for the session
policy that you want to apply, not the ARN of your user role. For more
information, see
Create an EMR Studio User Role with Session Policies.
Request Lenses
createStudioSessionMapping_identityName :: Lens' CreateStudioSessionMapping (Maybe Text) Source #
The name of the user or group. For more information, see
UserName
and
DisplayName
in the Amazon Web Services SSO Identity Store API Reference. Either
IdentityName
or IdentityId
must be specified, but not both.
createStudioSessionMapping_studioId :: Lens' CreateStudioSessionMapping Text Source #
The ID of the Amazon EMR Studio to which the user or group will be mapped.
createStudioSessionMapping_identityType :: Lens' CreateStudioSessionMapping IdentityType Source #
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
createStudioSessionMapping_sessionPolicyArn :: Lens' CreateStudioSessionMapping Text Source #
The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. You should specify the ARN for the session policy that you want to apply, not the ARN of your user role. For more information, see Create an EMR Studio User Role with Session Policies.
Destructuring the Response
data CreateStudioSessionMappingResponse Source #
See: newCreateStudioSessionMappingResponse
smart constructor.
Instances
newCreateStudioSessionMappingResponse :: CreateStudioSessionMappingResponse Source #
Create a value of CreateStudioSessionMappingResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.