1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetClusterSessionCredentials`](crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`cluster_id(impl Into<String>)`](crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder::set_cluster_id):<br>required: **true**<br><p>The unique identifier of the cluster.</p><br>
    ///   - [`execution_role_arn(impl Into<String>)`](crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder::execution_role_arn) / [`set_execution_role_arn(Option<String>)`](crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder::set_execution_role_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the runtime role for interactive workload submission on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format: <code>arn:partition:service:region:account:resource</code>.</p><br>
    /// - On success, responds with [`GetClusterSessionCredentialsOutput`](crate::operation::get_cluster_session_credentials::GetClusterSessionCredentialsOutput) with field(s):
    ///   - [`credentials(Option<Credentials>)`](crate::operation::get_cluster_session_credentials::GetClusterSessionCredentialsOutput::credentials): <p>The credentials that you can use to connect to cluster endpoints that support username and password authentication.</p>
    ///   - [`expires_at(Option<DateTime>)`](crate::operation::get_cluster_session_credentials::GetClusterSessionCredentialsOutput::expires_at): <p>The time when the credentials that are returned by the <code>GetClusterSessionCredentials</code> API expire.</p>
    /// - On failure, responds with [`SdkError<GetClusterSessionCredentialsError>`](crate::operation::get_cluster_session_credentials::GetClusterSessionCredentialsError)
    pub fn get_cluster_session_credentials(
        &self,
    ) -> crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder {
        crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder::new(self.handle.clone())
    }
}