aws_sdk_datazone/client/get_environment_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 [`GetEnvironmentCredentials`](crate::operation::get_environment_credentials::builders::GetEnvironmentCredentialsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`domain_identifier(impl Into<String>)`](crate::operation::get_environment_credentials::builders::GetEnvironmentCredentialsFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::get_environment_credentials::builders::GetEnvironmentCredentialsFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the Amazon DataZone domain in which this environment and its credentials exist.</p><br>
7 /// - [`environment_identifier(impl Into<String>)`](crate::operation::get_environment_credentials::builders::GetEnvironmentCredentialsFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::get_environment_credentials::builders::GetEnvironmentCredentialsFluentBuilder::set_environment_identifier):<br>required: **true**<br><p>The ID of the environment whose credentials this operation gets.</p><br>
8 /// - On success, responds with [`GetEnvironmentCredentialsOutput`](crate::operation::get_environment_credentials::GetEnvironmentCredentialsOutput) with field(s):
9 /// - [`access_key_id(Option<String>)`](crate::operation::get_environment_credentials::GetEnvironmentCredentialsOutput::access_key_id): <p>The access key ID of the environment.</p>
10 /// - [`secret_access_key(Option<String>)`](crate::operation::get_environment_credentials::GetEnvironmentCredentialsOutput::secret_access_key): <p>The secret access key of the environment credentials.</p>
11 /// - [`session_token(Option<String>)`](crate::operation::get_environment_credentials::GetEnvironmentCredentialsOutput::session_token): <p>The session token of the environment credentials.</p>
12 /// - [`expiration(Option<DateTime>)`](crate::operation::get_environment_credentials::GetEnvironmentCredentialsOutput::expiration): <p>The expiration timestamp of the environment credentials.</p>
13 /// - On failure, responds with [`SdkError<GetEnvironmentCredentialsError>`](crate::operation::get_environment_credentials::GetEnvironmentCredentialsError)
14 pub fn get_environment_credentials(&self) -> crate::operation::get_environment_credentials::builders::GetEnvironmentCredentialsFluentBuilder {
15 crate::operation::get_environment_credentials::builders::GetEnvironmentCredentialsFluentBuilder::new(self.handle.clone())
16 }
17}