aws_sdk_redshiftserverless/client/
get_identity_center_auth_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 [`GetIdentityCenterAuthToken`](crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`workgroup_names(impl Into<String>)`](crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder::workgroup_names) / [`set_workgroup_names(Option<Vec::<String>>)`](crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder::set_workgroup_names):<br>required: **true**<br><p>A list of workgroup names for which to generate the Identity Center authentication token.</p> <p>Constraints:</p> <ul>  <li>   <p>Must contain between 1 and 20 workgroup names.</p></li>  <li>   <p>Each workgroup name must be a valid Amazon Redshift Serverless workgroup identifier.</p></li>  <li>   <p>All specified workgroups must have Identity Center integration enabled.</p></li> </ul><br>
7    /// - On success, responds with [`GetIdentityCenterAuthTokenOutput`](crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenOutput) with field(s):
8    ///   - [`token(Option<String>)`](crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenOutput::token): <p>The Identity Center authentication token that can be used to access data in the specified workgroups.</p> <p>This token contains the Identity Center identity information and is encrypted for secure transmission.</p>
9    ///   - [`expiration_time(Option<DateTime>)`](crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenOutput::expiration_time): <p>The date and time when the Identity Center authentication token expires.</p> <p>After this time, a new token must be requested for continued access.</p>
10    /// - On failure, responds with [`SdkError<GetIdentityCenterAuthTokenError>`](crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError)
11    pub fn get_identity_center_auth_token(
12        &self,
13    ) -> crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder {
14        crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder::new(self.handle.clone())
15    }
16}