Struct aws_sdk_iam::client::fluent_builders::UpdateRole [−][src]
pub struct UpdateRole<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateRole
.
Updates the description or maximum session duration setting of a role.
Implementations
impl<C, M, R> UpdateRole<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateRole<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<UpdateRoleOutput, SdkError<UpdateRoleError>> where
R::Policy: SmithyRetryPolicy<UpdateRoleInputOperationOutputAlias, UpdateRoleOutput, UpdateRoleError, UpdateRoleInputOperationRetryAlias>,
pub async fn send(self) -> Result<UpdateRoleOutput, SdkError<UpdateRoleError>> where
R::Policy: SmithyRetryPolicy<UpdateRoleInputOperationOutputAlias, UpdateRoleOutput, UpdateRoleError, UpdateRoleInputOperationRetryAlias>,
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 name of the role that you want to modify.
The name of the role that you want to modify.
The new description that you want to apply to the specified role.
The new description that you want to apply to the specified role.
The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the
DurationSeconds
API parameter or the duration-seconds
CLI
parameter to request a longer session. The MaxSessionDuration
setting
determines the maximum duration that can be requested using the
DurationSeconds
parameter. If users don't specify a value for the
DurationSeconds
parameter, their security credentials are valid for one
hour by default. This applies when you use the AssumeRole*
API operations
or the assume-role*
CLI operations but does not apply when you use those
operations to create a console URL. For more information, see Using IAM
roles in the IAM User Guide.
The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the
DurationSeconds
API parameter or the duration-seconds
CLI
parameter to request a longer session. The MaxSessionDuration
setting
determines the maximum duration that can be requested using the
DurationSeconds
parameter. If users don't specify a value for the
DurationSeconds
parameter, their security credentials are valid for one
hour by default. This applies when you use the AssumeRole*
API operations
or the assume-role*
CLI operations but does not apply when you use those
operations to create a console URL. For more information, see Using IAM
roles in the IAM User Guide.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for UpdateRole<C, M, R>
impl<C, M, R> Unpin for UpdateRole<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for UpdateRole<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