Struct aws_sdk_iam::operation::set_security_token_service_preferences::builders::SetSecurityTokenServicePreferencesInputBuilder
source · #[non_exhaustive]pub struct SetSecurityTokenServicePreferencesInputBuilder { /* private fields */ }Expand description
A builder for SetSecurityTokenServicePreferencesInput.
Implementations§
source§impl SetSecurityTokenServicePreferencesInputBuilder
impl SetSecurityTokenServicePreferencesInputBuilder
sourcepub fn global_endpoint_token_version(
self,
input: GlobalEndpointTokenVersion,
) -> Self
pub fn global_endpoint_token_version( self, input: GlobalEndpointTokenVersion, ) -> Self
The version of the global endpoint token. Version 1 tokens are valid only in Amazon Web Services Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in all Regions. However, version 2 tokens are longer and might affect systems where you temporarily store tokens.
For information, see Activating and deactivating STS in an Amazon Web Services Region in the IAM User Guide.
This field is required.sourcepub fn set_global_endpoint_token_version(
self,
input: Option<GlobalEndpointTokenVersion>,
) -> Self
pub fn set_global_endpoint_token_version( self, input: Option<GlobalEndpointTokenVersion>, ) -> Self
The version of the global endpoint token. Version 1 tokens are valid only in Amazon Web Services Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in all Regions. However, version 2 tokens are longer and might affect systems where you temporarily store tokens.
For information, see Activating and deactivating STS in an Amazon Web Services Region in the IAM User Guide.
sourcepub fn get_global_endpoint_token_version(
&self,
) -> &Option<GlobalEndpointTokenVersion>
pub fn get_global_endpoint_token_version( &self, ) -> &Option<GlobalEndpointTokenVersion>
The version of the global endpoint token. Version 1 tokens are valid only in Amazon Web Services Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in all Regions. However, version 2 tokens are longer and might affect systems where you temporarily store tokens.
For information, see Activating and deactivating STS in an Amazon Web Services Region in the IAM User Guide.
sourcepub fn build(
self,
) -> Result<SetSecurityTokenServicePreferencesInput, BuildError>
pub fn build( self, ) -> Result<SetSecurityTokenServicePreferencesInput, BuildError>
Consumes the builder and constructs a SetSecurityTokenServicePreferencesInput.
source§impl SetSecurityTokenServicePreferencesInputBuilder
impl SetSecurityTokenServicePreferencesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<SetSecurityTokenServicePreferencesOutput, SdkError<SetSecurityTokenServicePreferencesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<SetSecurityTokenServicePreferencesOutput, SdkError<SetSecurityTokenServicePreferencesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetSecurityTokenServicePreferencesInputBuilder
impl Clone for SetSecurityTokenServicePreferencesInputBuilder
source§fn clone(&self) -> SetSecurityTokenServicePreferencesInputBuilder
fn clone(&self) -> SetSecurityTokenServicePreferencesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SetSecurityTokenServicePreferencesInputBuilder
impl Default for SetSecurityTokenServicePreferencesInputBuilder
source§fn default() -> SetSecurityTokenServicePreferencesInputBuilder
fn default() -> SetSecurityTokenServicePreferencesInputBuilder
source§impl PartialEq for SetSecurityTokenServicePreferencesInputBuilder
impl PartialEq for SetSecurityTokenServicePreferencesInputBuilder
source§fn eq(&self, other: &SetSecurityTokenServicePreferencesInputBuilder) -> bool
fn eq(&self, other: &SetSecurityTokenServicePreferencesInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SetSecurityTokenServicePreferencesInputBuilder
Auto Trait Implementations§
impl Freeze for SetSecurityTokenServicePreferencesInputBuilder
impl RefUnwindSafe for SetSecurityTokenServicePreferencesInputBuilder
impl Send for SetSecurityTokenServicePreferencesInputBuilder
impl Sync for SetSecurityTokenServicePreferencesInputBuilder
impl Unpin for SetSecurityTokenServicePreferencesInputBuilder
impl UnwindSafe for SetSecurityTokenServicePreferencesInputBuilder
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