#[non_exhaustive]pub struct CreateRoleAliasInputBuilder { /* private fields */ }
Expand description
A builder for CreateRoleAliasInput
.
Implementations§
source§impl CreateRoleAliasInputBuilder
impl CreateRoleAliasInputBuilder
sourcepub fn role_alias(self, input: impl Into<String>) -> Self
pub fn role_alias(self, input: impl Into<String>) -> Self
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
This field is required.sourcepub fn set_role_alias(self, input: Option<String>) -> Self
pub fn set_role_alias(self, input: Option<String>) -> Self
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
sourcepub fn get_role_alias(&self) -> &Option<String>
pub fn get_role_alias(&self) -> &Option<String>
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The role ARN.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The role ARN.
sourcepub fn credential_duration_seconds(self, input: i32) -> Self
pub fn credential_duration_seconds(self, input: i32) -> Self
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.
sourcepub fn set_credential_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_credential_duration_seconds(self, input: Option<i32>) -> Self
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.
sourcepub fn get_credential_duration_seconds(&self) -> &Option<i32>
pub fn get_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.
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..."
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..."
sourcepub fn build(self) -> Result<CreateRoleAliasInput, BuildError>
pub fn build(self) -> Result<CreateRoleAliasInput, BuildError>
Consumes the builder and constructs a CreateRoleAliasInput
.
source§impl CreateRoleAliasInputBuilder
impl CreateRoleAliasInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateRoleAliasOutput, SdkError<CreateRoleAliasError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateRoleAliasOutput, SdkError<CreateRoleAliasError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRoleAliasInputBuilder
impl Clone for CreateRoleAliasInputBuilder
source§fn clone(&self) -> CreateRoleAliasInputBuilder
fn clone(&self) -> CreateRoleAliasInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRoleAliasInputBuilder
impl Debug for CreateRoleAliasInputBuilder
source§impl Default for CreateRoleAliasInputBuilder
impl Default for CreateRoleAliasInputBuilder
source§fn default() -> CreateRoleAliasInputBuilder
fn default() -> CreateRoleAliasInputBuilder
source§impl PartialEq for CreateRoleAliasInputBuilder
impl PartialEq for CreateRoleAliasInputBuilder
source§fn eq(&self, other: &CreateRoleAliasInputBuilder) -> bool
fn eq(&self, other: &CreateRoleAliasInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateRoleAliasInputBuilder
Auto Trait Implementations§
impl Freeze for CreateRoleAliasInputBuilder
impl RefUnwindSafe for CreateRoleAliasInputBuilder
impl Send for CreateRoleAliasInputBuilder
impl Sync for CreateRoleAliasInputBuilder
impl Unpin for CreateRoleAliasInputBuilder
impl UnwindSafe for CreateRoleAliasInputBuilder
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