#[non_exhaustive]pub struct CreateStudioSessionMappingInput { /* private fields */ }Implementations§
source§impl CreateStudioSessionMappingInput
impl CreateStudioSessionMappingInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateStudioSessionMapping, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateStudioSessionMapping, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateStudioSessionMapping>
Examples found in repository?
1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateStudioSessionMapping,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateStudioSessionMappingError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateStudioSessionMappingOutput,
aws_smithy_http::result::SdkError<crate::error::CreateStudioSessionMappingError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateStudioSessionMappingInput.
source§impl CreateStudioSessionMappingInput
impl CreateStudioSessionMappingInput
sourcepub fn studio_id(&self) -> Option<&str>
pub fn studio_id(&self) -> Option<&str>
The ID of the Amazon EMR Studio to which the user or group will be mapped.
sourcepub fn identity_id(&self) -> Option<&str>
pub fn identity_id(&self) -> Option<&str>
sourcepub fn identity_name(&self) -> Option<&str>
pub fn identity_name(&self) -> Option<&str>
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.
sourcepub fn identity_type(&self) -> Option<&IdentityType>
pub fn identity_type(&self) -> Option<&IdentityType>
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
sourcepub fn session_policy_arn(&self) -> Option<&str>
pub fn session_policy_arn(&self) -> Option<&str>
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§
source§impl Clone for CreateStudioSessionMappingInput
impl Clone for CreateStudioSessionMappingInput
source§fn clone(&self) -> CreateStudioSessionMappingInput
fn clone(&self) -> CreateStudioSessionMappingInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more