1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreatePrivateDnsNamespace`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl ::std::convert::Into<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::set_name): <p>The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route&nbsp;53 private hosted zone that has the same name as the namespace.</p>
    ///   - [`creator_request_id(impl ::std::convert::Into<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::creator_request_id) / [`set_creator_request_id(Option<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::set_creator_request_id): <p>A unique string that identifies the request and that allows failed <code>CreatePrivateDnsNamespace</code> requests to be retried without the risk of running the operation twice. <code>CreatorRequestId</code> can be any unique string (for example, a date/timestamp).</p>
    ///   - [`description(impl ::std::convert::Into<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::set_description): <p>A description for the namespace.</p>
    ///   - [`vpc(impl ::std::convert::Into<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::vpc) / [`set_vpc(Option<String>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::set_vpc): <p>The ID of the Amazon VPC that you want to associate the namespace with.</p>
    ///   - [`tags(Vec<Tag>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::set_tags): <p>The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.</p>
    ///   - [`properties(PrivateDnsNamespaceProperties)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::properties) / [`set_properties(Option<PrivateDnsNamespaceProperties>)`](crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::set_properties): <p>Properties for the private DNS namespace.</p>
    /// - On success, responds with [`CreatePrivateDnsNamespaceOutput`](crate::operation::create_private_dns_namespace::CreatePrivateDnsNamespaceOutput) with field(s):
    ///   - [`operation_id(Option<String>)`](crate::operation::create_private_dns_namespace::CreatePrivateDnsNamespaceOutput::operation_id): <p>A value that you can use to determine whether the request completed successfully. To get the status of the operation, see <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_GetOperation.html">GetOperation</a>.</p>
    /// - On failure, responds with [`SdkError<CreatePrivateDnsNamespaceError>`](crate::operation::create_private_dns_namespace::CreatePrivateDnsNamespaceError)
    pub fn create_private_dns_namespace(&self) -> crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder {
        crate::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder::new(self.handle.clone())
    }
}