aws_sdk_directory/client/create_microsoft_ad.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 [`CreateMicrosoftAD`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_name):<br>required: **true**<br><p>The fully qualified domain name for the Managed Microsoft AD directory, such as <code>corp.example.com</code>. This name will resolve inside your VPC only. It does not need to be publicly resolvable.</p><br>
7 /// - [`short_name(impl Into<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::short_name) / [`set_short_name(Option<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_short_name):<br>required: **false**<br><p>The NetBIOS name for your domain, such as <code>CORP</code>. If you don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example, <code>CORP</code> for the directory DNS <code>corp.example.com</code>.</p><br>
8 /// - [`password(impl Into<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::password) / [`set_password(Option<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_password):<br>required: **true**<br><p>The password for the default administrative user named <code>Admin</code>.</p> <p>If you need to change the password for the administrator account, you can use the <code>ResetUserPassword</code> API call.</p><br>
9 /// - [`description(impl Into<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_description):<br>required: **false**<br><p>A description for the directory. This label will appear on the Amazon Web Services console <code>Directory Details</code> page after the directory is created.</p><br>
10 /// - [`vpc_settings(DirectoryVpcSettings)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::vpc_settings) / [`set_vpc_settings(Option<DirectoryVpcSettings>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_vpc_settings):<br>required: **true**<br><p>Contains VPC information for the <code>CreateDirectory</code> or <code>CreateMicrosoftAD</code> operation.</p><br>
11 /// - [`edition(DirectoryEdition)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::edition) / [`set_edition(Option<DirectoryEdition>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_edition):<br>required: **false**<br><p>Managed Microsoft AD is available in two editions: <code>Standard</code> and <code>Enterprise</code>. <code>Enterprise</code> is the default.</p><br>
12 /// - [`tags(Tag)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to be assigned to the Managed Microsoft AD directory.</p><br>
13 /// - [`network_type(NetworkType)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::network_type) / [`set_network_type(Option<NetworkType>)`](crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::set_network_type):<br>required: **false**<br><p>The network type for your domain. The default value is <code>IPv4</code> or <code>IPv6</code> based on the provided subnet capabilities.</p><br>
14 /// - On success, responds with [`CreateMicrosoftAdOutput`](crate::operation::create_microsoft_ad::CreateMicrosoftAdOutput) with field(s):
15 /// - [`directory_id(Option<String>)`](crate::operation::create_microsoft_ad::CreateMicrosoftAdOutput::directory_id): <p>The identifier of the directory that was created.</p>
16 /// - On failure, responds with [`SdkError<CreateMicrosoftADError>`](crate::operation::create_microsoft_ad::CreateMicrosoftADError)
17 pub fn create_microsoft_ad(&self) -> crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder {
18 crate::operation::create_microsoft_ad::builders::CreateMicrosoftADFluentBuilder::new(self.handle.clone())
19 }
20}