Struct aws_sdk_iam::client::fluent_builders::UpdateRole
source · pub struct UpdateRole { /* private fields */ }Expand description
Fluent builder constructing a request to UpdateRole.
Updates the description or maximum session duration setting of a role.
Implementations§
source§impl UpdateRole
impl UpdateRole
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateRole, AwsResponseRetryClassifier>, SdkError<UpdateRoleError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateRole, AwsResponseRetryClassifier>, SdkError<UpdateRoleError>>
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<UpdateRoleOutput, SdkError<UpdateRoleError>>
pub async fn send(self) -> Result<UpdateRoleOutput, SdkError<UpdateRoleError>>
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 role_name(self, input: impl Into<String>) -> Self
pub fn role_name(self, input: impl Into<String>) -> Self
The name of the role that you want to modify.
sourcepub fn set_role_name(self, input: Option<String>) -> Self
pub fn set_role_name(self, input: Option<String>) -> Self
The name of the role that you want to modify.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The new description that you want to apply to the specified role.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The new description that you want to apply to the specified role.
sourcepub fn max_session_duration(self, input: i32) -> Self
pub fn max_session_duration(self, input: i32) -> Self
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 value 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.
sourcepub fn set_max_session_duration(self, input: Option<i32>) -> Self
pub fn set_max_session_duration(self, input: Option<i32>) -> Self
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 value 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§
source§impl Clone for UpdateRole
impl Clone for UpdateRole
source§fn clone(&self) -> UpdateRole
fn clone(&self) -> UpdateRole
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more