pub struct CreateStudioSessionMapping<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }Expand description
Fluent builder constructing a request to CreateStudioSessionMapping.
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.
Implementations
impl<C, M, R> CreateStudioSessionMapping<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateStudioSessionMapping<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateStudioSessionMappingOutput, SdkError<CreateStudioSessionMappingError>> where
R::Policy: SmithyRetryPolicy<CreateStudioSessionMappingInputOperationOutputAlias, CreateStudioSessionMappingOutput, CreateStudioSessionMappingError, CreateStudioSessionMappingInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateStudioSessionMappingOutput, SdkError<CreateStudioSessionMappingError>> where
R::Policy: SmithyRetryPolicy<CreateStudioSessionMappingInputOperationOutputAlias, CreateStudioSessionMappingOutput, CreateStudioSessionMappingError, CreateStudioSessionMappingInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The ID of the Amazon EMR Studio to which the user or group will be mapped.
The ID of the Amazon EMR Studio to which the user or group will be mapped.
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.
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.
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateStudioSessionMapping<C, M, R>
impl<C, M, R> Send for CreateStudioSessionMapping<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateStudioSessionMapping<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateStudioSessionMapping<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateStudioSessionMapping<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more