Struct aws_sdk_iot::input::CreateRoleAliasInput
source · #[non_exhaustive]pub struct CreateRoleAliasInput { /* private fields */ }
Implementations§
source§impl CreateRoleAliasInput
impl CreateRoleAliasInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRoleAlias, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRoleAlias, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateRoleAlias
>
Examples found in repository?
src/client.rs (line 7697)
7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateRoleAlias,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateRoleAliasError>,
> {
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::CreateRoleAliasOutput,
aws_smithy_http::result::SdkError<crate::error::CreateRoleAliasError>,
> {
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 CreateRoleAliasInput
.
source§impl CreateRoleAliasInput
impl CreateRoleAliasInput
sourcepub fn role_alias(&self) -> Option<&str>
pub fn role_alias(&self) -> Option<&str>
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
sourcepub fn credential_duration_seconds(&self) -> Option<i32>
pub fn credential_duration_seconds(&self) -> Option<i32>
How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Trait Implementations§
source§impl Clone for CreateRoleAliasInput
impl Clone for CreateRoleAliasInput
source§fn clone(&self) -> CreateRoleAliasInput
fn clone(&self) -> CreateRoleAliasInput
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