Struct aws_sdk_iot::client::fluent_builders::CreateRoleAlias [−][src]
pub struct CreateRoleAlias<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateRoleAlias
.
Creates a role alias.
Requires permission to access the CreateRoleAlias action.
Implementations
impl<C, M, R> CreateRoleAlias<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateRoleAlias<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateRoleAliasOutput, SdkError<CreateRoleAliasError>> where
R::Policy: SmithyRetryPolicy<CreateRoleAliasInputOperationOutputAlias, CreateRoleAliasOutput, CreateRoleAliasError, CreateRoleAliasInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateRoleAliasOutput, SdkError<CreateRoleAliasError>> where
R::Policy: SmithyRetryPolicy<CreateRoleAliasInputOperationOutputAlias, CreateRoleAliasOutput, CreateRoleAliasError, CreateRoleAliasInputOperationRetryAlias>,
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.
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
The role ARN.
How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.
How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
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..."
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
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateRoleAlias<C, M, R>
impl<C, M, R> Send for CreateRoleAlias<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateRoleAlias<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateRoleAlias<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateRoleAlias<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more