pub struct CreateImpersonationRole { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateImpersonationRole
.
Creates an impersonation role for the given WorkMail organization.
Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries also complete successfully without performing any further actions.
Implementations§
source§impl CreateImpersonationRole
impl CreateImpersonationRole
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateImpersonationRole, AwsResponseRetryClassifier>, SdkError<CreateImpersonationRoleError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateImpersonationRole, AwsResponseRetryClassifier>, SdkError<CreateImpersonationRoleError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateImpersonationRoleOutput, SdkError<CreateImpersonationRoleError>>
pub async fn send(
self
) -> Result<CreateImpersonationRoleOutput, SdkError<CreateImpersonationRoleError>>
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.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token for the client request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token for the client request.
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The WorkMail organization to create the new impersonation role within.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The WorkMail organization to create the new impersonation role within.
sourcepub fn type(self, input: ImpersonationRoleType) -> Self
pub fn type(self, input: ImpersonationRoleType) -> Self
The impersonation role's type. The available impersonation role types are READ_ONLY
or FULL_ACCESS
.
sourcepub fn set_type(self, input: Option<ImpersonationRoleType>) -> Self
pub fn set_type(self, input: Option<ImpersonationRoleType>) -> Self
The impersonation role's type. The available impersonation role types are READ_ONLY
or FULL_ACCESS
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the new impersonation role.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the new impersonation role.
sourcepub fn rules(self, input: ImpersonationRule) -> Self
pub fn rules(self, input: ImpersonationRule) -> Self
Appends an item to Rules
.
To override the contents of this collection use set_rules
.
The list of rules for the impersonation role.
sourcepub fn set_rules(self, input: Option<Vec<ImpersonationRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ImpersonationRule>>) -> Self
The list of rules for the impersonation role.
Trait Implementations§
source§impl Clone for CreateImpersonationRole
impl Clone for CreateImpersonationRole
source§fn clone(&self) -> CreateImpersonationRole
fn clone(&self) -> CreateImpersonationRole
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more