Struct aws_sdk_iot::input::UpdateRoleAliasInput
source · #[non_exhaustive]pub struct UpdateRoleAliasInput { /* private fields */ }
Implementations§
source§impl UpdateRoleAliasInput
impl UpdateRoleAliasInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateRoleAlias, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateRoleAlias, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateRoleAlias
>
Examples found in repository?
src/client.rs (line 26798)
26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 26794 26795 26796 26797 26798 26799 26800 26801 26802 26803 26804 26805 26806 26807 26808 26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateRoleAlias,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateRoleAliasError>,
> {
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::UpdateRoleAliasOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateRoleAliasError>,
> {
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 UpdateRoleAliasInput
.
source§impl UpdateRoleAliasInput
impl UpdateRoleAliasInput
sourcepub fn role_alias(&self) -> Option<&str>
pub fn role_alias(&self) -> Option<&str>
The role alias to update.
sourcepub fn credential_duration_seconds(&self) -> Option<i32>
pub fn credential_duration_seconds(&self) -> Option<i32>
The number of seconds the credential will be valid.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
Trait Implementations§
source§impl Clone for UpdateRoleAliasInput
impl Clone for UpdateRoleAliasInput
source§fn clone(&self) -> UpdateRoleAliasInput
fn clone(&self) -> UpdateRoleAliasInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more