aws_sdk_datazone/client/create_domain_unit.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateDomainUnit`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_identifier(impl Into<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain where you want to crate a domain unit.</p><br>
/// - [`name(impl Into<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::set_name):<br>required: **true**<br><p>The name of the domain unit.</p><br>
/// - [`parent_domain_unit_identifier(impl Into<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::parent_domain_unit_identifier) / [`set_parent_domain_unit_identifier(Option<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::set_parent_domain_unit_identifier):<br>required: **true**<br><p>The ID of the parent domain unit.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::set_description):<br>required: **false**<br><p>The description of the domain unit.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p><br>
/// - On success, responds with [`CreateDomainUnitOutput`](crate::operation::create_domain_unit::CreateDomainUnitOutput) with field(s):
/// - [`id(String)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::id): <p>The ID of the domain unit.</p>
/// - [`domain_id(String)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::domain_id): <p>The ID of the domain where the domain unit was created.</p>
/// - [`name(String)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::name): <p>The name of the domain unit.</p>
/// - [`parent_domain_unit_id(Option<String>)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::parent_domain_unit_id): <p>The ID of the parent domain unit.</p>
/// - [`description(Option<String>)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::description): <p>The description of the domain unit.</p>
/// - [`owners(Vec::<DomainUnitOwnerProperties>)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::owners): <p>The owners of the domain unit.</p>
/// - [`ancestor_domain_unit_ids(Vec::<String>)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::ancestor_domain_unit_ids): <p>The IDs of the ancestor domain units.</p>
/// - [`created_at(Option<DateTime>)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::created_at): <p>The timestamp at which the domain unit was created.</p>
/// - [`created_by(Option<String>)`](crate::operation::create_domain_unit::CreateDomainUnitOutput::created_by): <p>The user who created the domain unit.</p>
/// - On failure, responds with [`SdkError<CreateDomainUnitError>`](crate::operation::create_domain_unit::CreateDomainUnitError)
pub fn create_domain_unit(&self) -> crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder {
crate::operation::create_domain_unit::builders::CreateDomainUnitFluentBuilder::new(self.handle.clone())
}
}