Struct aws_sdk_iam::operation::update_role::builders::UpdateRoleInputBuilder
source · #[non_exhaustive]pub struct UpdateRoleInputBuilder { /* private fields */ }Expand description
A builder for UpdateRoleInput.
Implementations§
source§impl UpdateRoleInputBuilder
impl UpdateRoleInputBuilder
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.
This field is required.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 get_role_name(&self) -> &Option<String>
pub fn get_role_name(&self) -> &Option<String>
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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
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.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
sourcepub fn get_max_session_duration(&self) -> &Option<i32>
pub fn get_max_session_duration(&self) -> &Option<i32>
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.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
sourcepub fn build(self) -> Result<UpdateRoleInput, BuildError>
pub fn build(self) -> Result<UpdateRoleInput, BuildError>
Consumes the builder and constructs a UpdateRoleInput.
source§impl UpdateRoleInputBuilder
impl UpdateRoleInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateRoleOutput, SdkError<UpdateRoleError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateRoleOutput, SdkError<UpdateRoleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRoleInputBuilder
impl Clone for UpdateRoleInputBuilder
source§fn clone(&self) -> UpdateRoleInputBuilder
fn clone(&self) -> UpdateRoleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateRoleInputBuilder
impl Debug for UpdateRoleInputBuilder
source§impl Default for UpdateRoleInputBuilder
impl Default for UpdateRoleInputBuilder
source§fn default() -> UpdateRoleInputBuilder
fn default() -> UpdateRoleInputBuilder
source§impl PartialEq for UpdateRoleInputBuilder
impl PartialEq for UpdateRoleInputBuilder
source§fn eq(&self, other: &UpdateRoleInputBuilder) -> bool
fn eq(&self, other: &UpdateRoleInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateRoleInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateRoleInputBuilder
impl RefUnwindSafe for UpdateRoleInputBuilder
impl Send for UpdateRoleInputBuilder
impl Sync for UpdateRoleInputBuilder
impl Unpin for UpdateRoleInputBuilder
impl UnwindSafe for UpdateRoleInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more