aws_sdk_lightsail/client/
create_domain_entry.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 [`CreateDomainEntry`](crate::operation::create_domain_entry::builders::CreateDomainEntryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain_name(impl Into<String>)`](crate::operation::create_domain_entry::builders::CreateDomainEntryFluentBuilder::domain_name) / [`set_domain_name(Option<String>)`](crate::operation::create_domain_entry::builders::CreateDomainEntryFluentBuilder::set_domain_name):<br>required: **true**<br><p>The domain name (<code>example.com</code>) for which you want to create the domain entry.</p><br>
7    ///   - [`domain_entry(DomainEntry)`](crate::operation::create_domain_entry::builders::CreateDomainEntryFluentBuilder::domain_entry) / [`set_domain_entry(Option<DomainEntry>)`](crate::operation::create_domain_entry::builders::CreateDomainEntryFluentBuilder::set_domain_entry):<br>required: **true**<br><p>An array of key-value pairs containing information about the domain entry request.</p><br>
8    /// - On success, responds with [`CreateDomainEntryOutput`](crate::operation::create_domain_entry::CreateDomainEntryOutput) with field(s):
9    ///   - [`operation(Option<Operation>)`](crate::operation::create_domain_entry::CreateDomainEntryOutput::operation): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10    /// - On failure, responds with [`SdkError<CreateDomainEntryError>`](crate::operation::create_domain_entry::CreateDomainEntryError)
11    pub fn create_domain_entry(&self) -> crate::operation::create_domain_entry::builders::CreateDomainEntryFluentBuilder {
12        crate::operation::create_domain_entry::builders::CreateDomainEntryFluentBuilder::new(self.handle.clone())
13    }
14}