aws_sdk_workmail/client/
get_personal_access_token_metadata.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetPersonalAccessTokenMetadata`](crate::operation::get_personal_access_token_metadata::builders::GetPersonalAccessTokenMetadataFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::get_personal_access_token_metadata::builders::GetPersonalAccessTokenMetadataFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::get_personal_access_token_metadata::builders::GetPersonalAccessTokenMetadataFluentBuilder::set_organization_id):<br>required: **true**<br><p>The Organization ID.</p><br>
    ///   - [`personal_access_token_id(impl Into<String>)`](crate::operation::get_personal_access_token_metadata::builders::GetPersonalAccessTokenMetadataFluentBuilder::personal_access_token_id) / [`set_personal_access_token_id(Option<String>)`](crate::operation::get_personal_access_token_metadata::builders::GetPersonalAccessTokenMetadataFluentBuilder::set_personal_access_token_id):<br>required: **true**<br><p>The Personal Access Token ID.</p><br>
    /// - On success, responds with [`GetPersonalAccessTokenMetadataOutput`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput) with field(s):
    ///   - [`personal_access_token_id(Option<String>)`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput::personal_access_token_id): <p>The Personal Access Token ID.</p>
    ///   - [`user_id(Option<String>)`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput::user_id): <p>The WorkMail User ID.</p>
    ///   - [`name(Option<String>)`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput::name): <p>The Personal Access Token name.</p>
    ///   - [`date_created(Option<DateTime>)`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput::date_created): <p>The date when the Personal Access Token ID was created.</p>
    ///   - [`date_last_used(Option<DateTime>)`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput::date_last_used): <p>The date when the Personal Access Token ID was last used.</p>
    ///   - [`expires_time(Option<DateTime>)`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput::expires_time): <p>The time when the Personal Access Token ID will expire.</p>
    ///   - [`scopes(Option<Vec::<String>>)`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataOutput::scopes): <p>Lists all the Personal Access Token permissions for a mailbox.</p>
    /// - On failure, responds with [`SdkError<GetPersonalAccessTokenMetadataError>`](crate::operation::get_personal_access_token_metadata::GetPersonalAccessTokenMetadataError)
    pub fn get_personal_access_token_metadata(
        &self,
    ) -> crate::operation::get_personal_access_token_metadata::builders::GetPersonalAccessTokenMetadataFluentBuilder {
        crate::operation::get_personal_access_token_metadata::builders::GetPersonalAccessTokenMetadataFluentBuilder::new(self.handle.clone())
    }
}