pub struct LogoutFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to Logout
.
Removes the locally stored SSO tokens from the client-side cache and sends an API call to the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in session.
If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM Identity Center sign in session is used to obtain an IAM session, as specified in the corresponding IAM Identity Center permission set. More specifically, IAM Identity Center assumes an IAM role in the target account on behalf of the user, and the corresponding temporary AWS credentials are returned to the client.
After user logout, any existing IAM role sessions that were created by using IAM Identity Center permission sets continue based on the duration configured in the permission set. For more information, see User authentications in the IAM Identity Center User Guide.
Implementations§
Source§impl LogoutFluentBuilder
impl LogoutFluentBuilder
Sourcepub fn as_input(&self) -> &LogoutInputBuilder
pub fn as_input(&self) -> &LogoutInputBuilder
Access the Logout as a reference.
Sourcepub async fn send(
self,
) -> Result<LogoutOutput, SdkError<LogoutError, HttpResponse>>
pub async fn send( self, ) -> Result<LogoutOutput, SdkError<LogoutError, HttpResponse>>
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 customize(self) -> CustomizableOperation<LogoutOutput, LogoutError, Self>
pub fn customize(self) -> CustomizableOperation<LogoutOutput, LogoutError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn access_token(self, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Sourcepub fn set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Sourcepub fn get_access_token(&self) -> &Option<String>
pub fn get_access_token(&self) -> &Option<String>
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Trait Implementations§
Source§impl Clone for LogoutFluentBuilder
impl Clone for LogoutFluentBuilder
Source§fn clone(&self) -> LogoutFluentBuilder
fn clone(&self) -> LogoutFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for LogoutFluentBuilder
impl !RefUnwindSafe for LogoutFluentBuilder
impl Send for LogoutFluentBuilder
impl Sync for LogoutFluentBuilder
impl Unpin for LogoutFluentBuilder
impl !UnwindSafe for LogoutFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)