pub struct UpdateImpersonationRole { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateImpersonationRole
.
Updates an impersonation role for the given WorkMail organization.
Implementations§
source§impl UpdateImpersonationRole
impl UpdateImpersonationRole
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateImpersonationRole, AwsResponseRetryClassifier>, SdkError<UpdateImpersonationRoleError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateImpersonationRole, AwsResponseRetryClassifier>, SdkError<UpdateImpersonationRoleError>>
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<UpdateImpersonationRoleOutput, SdkError<UpdateImpersonationRoleError>>
pub async fn send(
self
) -> Result<UpdateImpersonationRoleOutput, SdkError<UpdateImpersonationRoleError>>
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 organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The WorkMail organization that contains the impersonation role to update.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The WorkMail organization that contains the impersonation role to update.
sourcepub fn impersonation_role_id(self, input: impl Into<String>) -> Self
pub fn impersonation_role_id(self, input: impl Into<String>) -> Self
The ID of the impersonation role to update.
sourcepub fn set_impersonation_role_id(self, input: Option<String>) -> Self
pub fn set_impersonation_role_id(self, input: Option<String>) -> Self
The ID of the impersonation role to update.
sourcepub fn type(self, input: ImpersonationRoleType) -> Self
pub fn type(self, input: ImpersonationRoleType) -> Self
The updated impersonation role type.
sourcepub fn set_type(self, input: Option<ImpersonationRoleType>) -> Self
pub fn set_type(self, input: Option<ImpersonationRoleType>) -> Self
The updated impersonation role type.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The updated impersonation role description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The updated impersonation role description.
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 updated list of rules.
sourcepub fn set_rules(self, input: Option<Vec<ImpersonationRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ImpersonationRule>>) -> Self
The updated list of rules.
Trait Implementations§
source§impl Clone for UpdateImpersonationRole
impl Clone for UpdateImpersonationRole
source§fn clone(&self) -> UpdateImpersonationRole
fn clone(&self) -> UpdateImpersonationRole
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more