aws-sdk-redshiftserverless 1.103.0

AWS SDK for Redshift Serverless
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetIdentityCenterAuthToken`](crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    /// - On success, responds with [`GetIdentityCenterAuthTokenOutput`](crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenOutput) with field(s):
    ///   - [`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>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<GetIdentityCenterAuthTokenError>`](crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError)
    pub fn get_identity_center_auth_token(
        &self,
    ) -> crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder {
        crate::operation::get_identity_center_auth_token::builders::GetIdentityCenterAuthTokenFluentBuilder::new(self.handle.clone())
    }
}