aws_sdk_emr/client/get_cluster_session_credentials.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 [`GetClusterSessionCredentials`](crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`GetClusterSessionCredentialsOutput`](crate::operation::get_cluster_session_credentials::GetClusterSessionCredentialsOutput) with field(s):
9 /// - [`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>
10 /// - [`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>
11 /// - On failure, responds with [`SdkError<GetClusterSessionCredentialsError>`](crate::operation::get_cluster_session_credentials::GetClusterSessionCredentialsError)
12 pub fn get_cluster_session_credentials(
13 &self,
14 ) -> crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder {
15 crate::operation::get_cluster_session_credentials::builders::GetClusterSessionCredentialsFluentBuilder::new(self.handle.clone())
16 }
17}