// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateUserPoolDomain`](crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain(impl Into<String>)`](crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder::set_domain):<br>required: **true**<br><p>The domain string. For custom domains, this is the fully-qualified domain name, such as <code>auth.example.com</code>. For Amazon Cognito prefix domains, this is the prefix alone, such as <code>auth</code>.</p><br>
/// - [`user_pool_id(impl Into<String>)`](crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder::user_pool_id) / [`set_user_pool_id(Option<String>)`](crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder::set_user_pool_id):<br>required: **true**<br><p>The user pool ID.</p><br>
/// - [`custom_domain_config(CustomDomainConfigType)`](crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder::custom_domain_config) / [`set_custom_domain_config(Option<CustomDomainConfigType>)`](crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder::set_custom_domain_config):<br>required: **false**<br><p>The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.</p> <p>Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.</p> <p>For more information about the hosted domain and custom domains, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-assign-domain.html">Configuring a User Pool Domain</a>.</p><br>
/// - On success, responds with [`CreateUserPoolDomainOutput`](crate::operation::create_user_pool_domain::CreateUserPoolDomainOutput) with field(s):
/// - [`cloud_front_domain(Option<String>)`](crate::operation::create_user_pool_domain::CreateUserPoolDomainOutput::cloud_front_domain): <p>The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider.</p>
/// - On failure, responds with [`SdkError<CreateUserPoolDomainError>`](crate::operation::create_user_pool_domain::CreateUserPoolDomainError)
pub fn create_user_pool_domain(&self) -> crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder {
crate::operation::create_user_pool_domain::builders::CreateUserPoolDomainFluentBuilder::new(self.handle.clone())
}
}