aws_sdk_voiceid/client/
create_domain.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDomain`](crate::operation::create_domain::builders::CreateDomainFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::set_name):<br>required: **true**<br><p>The name of the domain.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::set_description):<br>required: **false**<br><p>A brief description of this domain.</p><br>
    ///   - [`server_side_encryption_configuration(ServerSideEncryptionConfiguration)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::server_side_encryption_configuration) / [`set_server_side_encryption_configuration(Option<ServerSideEncryptionConfiguration>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::set_server_side_encryption_configuration):<br>required: **true**<br><p>The configuration, containing the KMS key identifier, to be used by Voice ID for the server-side encryption of your data. Refer to <a href="https://docs.aws.amazon.com/connect/latest/adminguide/encryption-at-rest.html#encryption-at-rest-voiceid"> Amazon Connect Voice ID encryption at rest</a> for more details on how the KMS key is used.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_domain::builders::CreateDomainFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags you want added to the domain.</p><br>
    /// - On success, responds with [`CreateDomainOutput`](crate::operation::create_domain::CreateDomainOutput) with field(s):
    ///   - [`domain(Option<Domain>)`](crate::operation::create_domain::CreateDomainOutput::domain): <p>Information about the newly created domain.</p>
    /// - On failure, responds with [`SdkError<CreateDomainError>`](crate::operation::create_domain::CreateDomainError)
    pub fn create_domain(&self) -> crate::operation::create_domain::builders::CreateDomainFluentBuilder {
        crate::operation::create_domain::builders::CreateDomainFluentBuilder::new(self.handle.clone())
    }
}