aws_sdk_emrcontainers/client/
get_managed_endpoint_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 [`GetManagedEndpointSessionCredentials`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`endpoint_identifier(impl Into<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::endpoint_identifier) / [`set_endpoint_identifier(Option<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::set_endpoint_identifier):<br>required: **true**<br><p>The ARN of the managed endpoint for which the request is submitted.</p><br>
7    ///   - [`virtual_cluster_identifier(impl Into<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::virtual_cluster_identifier) / [`set_virtual_cluster_identifier(Option<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::set_virtual_cluster_identifier):<br>required: **true**<br><p>The ARN of the Virtual Cluster which the Managed Endpoint belongs to.</p><br>
8    ///   - [`execution_role_arn(impl Into<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::execution_role_arn) / [`set_execution_role_arn(Option<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::set_execution_role_arn):<br>required: **true**<br><p>The IAM Execution Role ARN that will be used by the job run.</p><br>
9    ///   - [`credential_type(impl Into<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::credential_type) / [`set_credential_type(Option<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::set_credential_type):<br>required: **true**<br><p>Type of the token requested. Currently supported and default value of this field is “TOKEN.”</p><br>
10    ///   - [`duration_in_seconds(i32)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::duration_in_seconds) / [`set_duration_in_seconds(Option<i32>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::set_duration_in_seconds):<br>required: **false**<br><p>Duration in seconds for which the session token is valid. The default duration is 15 minutes and the maximum is 12 hours.</p><br>
11    ///   - [`log_context(impl Into<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::log_context) / [`set_log_context(Option<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::set_log_context):<br>required: **false**<br><p>String identifier used to separate sections of the execution logs uploaded to S3.</p><br>
12    ///   - [`client_token(impl Into<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::set_client_token):<br>required: **false**<br><p>The client idempotency token of the job run request.</p><br>
13    /// - On success, responds with [`GetManagedEndpointSessionCredentialsOutput`](crate::operation::get_managed_endpoint_session_credentials::GetManagedEndpointSessionCredentialsOutput) with field(s):
14    ///   - [`id(Option<String>)`](crate::operation::get_managed_endpoint_session_credentials::GetManagedEndpointSessionCredentialsOutput::id): <p>The identifier of the session token returned.</p>
15    ///   - [`credentials(Option<Credentials>)`](crate::operation::get_managed_endpoint_session_credentials::GetManagedEndpointSessionCredentialsOutput::credentials): <p>The structure containing the session credentials.</p>
16    ///   - [`expires_at(Option<DateTime>)`](crate::operation::get_managed_endpoint_session_credentials::GetManagedEndpointSessionCredentialsOutput::expires_at): <p>The date and time when the session token will expire.</p>
17    /// - On failure, responds with [`SdkError<GetManagedEndpointSessionCredentialsError>`](crate::operation::get_managed_endpoint_session_credentials::GetManagedEndpointSessionCredentialsError)
18    pub fn get_managed_endpoint_session_credentials(
19        &self,
20    ) -> crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder {
21        crate::operation::get_managed_endpoint_session_credentials::builders::GetManagedEndpointSessionCredentialsFluentBuilder::new(
22            self.handle.clone(),
23        )
24    }
25}