aws_sdk_cognitoidentityprovider/client/
revoke_token.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`RevokeToken`](crate::operation::revoke_token::builders::RevokeTokenFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`token(impl Into<String>)`](crate::operation::revoke_token::builders::RevokeTokenFluentBuilder::token) / [`set_token(Option<String>)`](crate::operation::revoke_token::builders::RevokeTokenFluentBuilder::set_token):<br>required: **true**<br><p>The refresh token that you want to revoke.</p><br>
7    ///   - [`client_id(impl Into<String>)`](crate::operation::revoke_token::builders::RevokeTokenFluentBuilder::client_id) / [`set_client_id(Option<String>)`](crate::operation::revoke_token::builders::RevokeTokenFluentBuilder::set_client_id):<br>required: **true**<br><p>The ID of the app client where the token that you want to revoke was issued.</p><br>
8    ///   - [`client_secret(impl Into<String>)`](crate::operation::revoke_token::builders::RevokeTokenFluentBuilder::client_secret) / [`set_client_secret(Option<String>)`](crate::operation::revoke_token::builders::RevokeTokenFluentBuilder::set_client_secret):<br>required: **false**<br><p>The client secret of the requested app client, if the client has a secret.</p><br>
9    /// - On success, responds with [`RevokeTokenOutput`](crate::operation::revoke_token::RevokeTokenOutput)
10    /// - On failure, responds with [`SdkError<RevokeTokenError>`](crate::operation::revoke_token::RevokeTokenError)
11    pub fn revoke_token(&self) -> crate::operation::revoke_token::builders::RevokeTokenFluentBuilder {
12        crate::operation::revoke_token::builders::RevokeTokenFluentBuilder::new(self.handle.clone())
13    }
14}