1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RegisterDomain`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_name):<br>required: **true**<br><p>Name of the domain to register. The name must be unique in the region that the domain is registered in.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must <i>not</i> be the literal string <code>arn</code>.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_description):<br>required: **false**<br><p>A text description of the domain.</p><br>
    ///   - [`workflow_execution_retention_period_in_days(impl Into<String>)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::workflow_execution_retention_period_in_days) / [`set_workflow_execution_retention_period_in_days(Option<String>)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_workflow_execution_retention_period_in_days):<br>required: **true**<br><p>The duration (in days) that records and histories of workflow executions on the domain should be kept by the service. After the retention period, the workflow execution isn't available in the results of visibility calls.</p> <p>If you pass the value <code>NONE</code> or <code>0</code> (zero), then the workflow execution history isn't retained. As soon as the workflow execution completes, the execution record and its history are deleted.</p> <p>The maximum workflow execution retention period is 90 days. For more information about Amazon SWF service limits, see: <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html">Amazon SWF Service Limits</a> in the <i>Amazon SWF Developer Guide</i>.</p><br>
    ///   - [`tags(ResourceTag)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::tags) / [`set_tags(Option<Vec::<ResourceTag>>)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to be added when registering a domain.</p> <p>Tags may only contain unicode letters, digits, whitespace, or these symbols: <code>_ . : / = + - @</code>.</p><br>
    /// - On success, responds with [`RegisterDomainOutput`](crate::operation::register_domain::RegisterDomainOutput)
    /// - On failure, responds with [`SdkError<RegisterDomainError>`](crate::operation::register_domain::RegisterDomainError)
    pub fn register_domain(&self) -> crate::operation::register_domain::builders::RegisterDomainFluentBuilder {
        crate::operation::register_domain::builders::RegisterDomainFluentBuilder::new(self.handle.clone())
    }
}