aws_sdk_datazone/client/get_domain_unit.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 [`GetDomainUnit`](crate::operation::get_domain_unit::builders::GetDomainUnitFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`domain_identifier(impl Into<String>)`](crate::operation::get_domain_unit::builders::GetDomainUnitFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::get_domain_unit::builders::GetDomainUnitFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain where you want to get a domain unit.</p><br>
7 /// - [`identifier(impl Into<String>)`](crate::operation::get_domain_unit::builders::GetDomainUnitFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_domain_unit::builders::GetDomainUnitFluentBuilder::set_identifier):<br>required: **true**<br><p>The identifier of the domain unit that you want to get.</p><br>
8 /// - On success, responds with [`GetDomainUnitOutput`](crate::operation::get_domain_unit::GetDomainUnitOutput) with field(s):
9 /// - [`id(String)`](crate::operation::get_domain_unit::GetDomainUnitOutput::id): <p>The ID of the domain unit.</p>
10 /// - [`domain_id(String)`](crate::operation::get_domain_unit::GetDomainUnitOutput::domain_id): <p>The ID of the domain in which the domain unit lives.</p>
11 /// - [`name(String)`](crate::operation::get_domain_unit::GetDomainUnitOutput::name): <p>The name of the domain unit.</p>
12 /// - [`parent_domain_unit_id(Option<String>)`](crate::operation::get_domain_unit::GetDomainUnitOutput::parent_domain_unit_id): <p>The ID of the parent domain unit.</p>
13 /// - [`description(Option<String>)`](crate::operation::get_domain_unit::GetDomainUnitOutput::description): <p>The description of the domain unit.</p>
14 /// - [`owners(Vec::<DomainUnitOwnerProperties>)`](crate::operation::get_domain_unit::GetDomainUnitOutput::owners): <p>The owners of the domain unit.</p>
15 /// - [`created_at(Option<DateTime>)`](crate::operation::get_domain_unit::GetDomainUnitOutput::created_at): <p>The time stamp at which the domain unit was created.</p>
16 /// - [`last_updated_at(Option<DateTime>)`](crate::operation::get_domain_unit::GetDomainUnitOutput::last_updated_at): <p>The timestamp at which the domain unit was last updated.</p>
17 /// - [`created_by(Option<String>)`](crate::operation::get_domain_unit::GetDomainUnitOutput::created_by): <p>The user who created the domain unit.</p>
18 /// - [`last_updated_by(Option<String>)`](crate::operation::get_domain_unit::GetDomainUnitOutput::last_updated_by): <p>The user who last updated the domain unit.</p>
19 /// - On failure, responds with [`SdkError<GetDomainUnitError>`](crate::operation::get_domain_unit::GetDomainUnitError)
20 pub fn get_domain_unit(&self) -> crate::operation::get_domain_unit::builders::GetDomainUnitFluentBuilder {
21 crate::operation::get_domain_unit::builders::GetDomainUnitFluentBuilder::new(self.handle.clone())
22 }
23}