Struct aws_sdk_cognitoidentityprovider::operation::revoke_token::builders::RevokeTokenFluentBuilder
source · pub struct RevokeTokenFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RevokeToken
.
Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoints.
Implementations§
source§impl RevokeTokenFluentBuilder
impl RevokeTokenFluentBuilder
sourcepub fn as_input(&self) -> &RevokeTokenInputBuilder
pub fn as_input(&self) -> &RevokeTokenInputBuilder
Access the RevokeToken as a reference.
sourcepub async fn send(
self,
) -> Result<RevokeTokenOutput, SdkError<RevokeTokenError, HttpResponse>>
pub async fn send( self, ) -> Result<RevokeTokenOutput, SdkError<RevokeTokenError, 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<RevokeTokenOutput, RevokeTokenError, Self>
pub fn customize( self, ) -> CustomizableOperation<RevokeTokenOutput, RevokeTokenError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn token(self, input: impl Into<String>) -> Self
pub fn token(self, input: impl Into<String>) -> Self
The refresh token that you want to revoke.
sourcepub fn set_token(self, input: Option<String>) -> Self
pub fn set_token(self, input: Option<String>) -> Self
The refresh token that you want to revoke.
sourcepub fn client_id(self, input: impl Into<String>) -> Self
pub fn client_id(self, input: impl Into<String>) -> Self
The client ID for the token that you want to revoke.
sourcepub fn set_client_id(self, input: Option<String>) -> Self
pub fn set_client_id(self, input: Option<String>) -> Self
The client ID for the token that you want to revoke.
sourcepub fn get_client_id(&self) -> &Option<String>
pub fn get_client_id(&self) -> &Option<String>
The client ID for the token that you want to revoke.
sourcepub fn client_secret(self, input: impl Into<String>) -> Self
pub fn client_secret(self, input: impl Into<String>) -> Self
The secret for the client ID. This is required only if the client ID has a secret.
sourcepub fn set_client_secret(self, input: Option<String>) -> Self
pub fn set_client_secret(self, input: Option<String>) -> Self
The secret for the client ID. This is required only if the client ID has a secret.
sourcepub fn get_client_secret(&self) -> &Option<String>
pub fn get_client_secret(&self) -> &Option<String>
The secret for the client ID. This is required only if the client ID has a secret.
Trait Implementations§
source§impl Clone for RevokeTokenFluentBuilder
impl Clone for RevokeTokenFluentBuilder
source§fn clone(&self) -> RevokeTokenFluentBuilder
fn clone(&self) -> RevokeTokenFluentBuilder
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 RevokeTokenFluentBuilder
impl !RefUnwindSafe for RevokeTokenFluentBuilder
impl Send for RevokeTokenFluentBuilder
impl Sync for RevokeTokenFluentBuilder
impl Unpin for RevokeTokenFluentBuilder
impl !UnwindSafe for RevokeTokenFluentBuilder
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