aws_sdk_repostspace/client/
create_space.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 [`CreateSpace`](crate::operation::create_space::builders::CreateSpaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_name):<br>required: **true**<br><p>The name for the private re:Post. This must be unique in your account.</p><br>
7    ///   - [`subdomain(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::subdomain) / [`set_subdomain(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_subdomain):<br>required: **true**<br><p>The subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use.</p><br>
8    ///   - [`tier(TierLevel)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::tier) / [`set_tier(Option<TierLevel>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_tier):<br>required: **true**<br><p>The pricing tier for the private re:Post.</p><br>
9    ///   - [`description(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_description):<br>required: **false**<br><p>A description for the private re:Post. This is used only to help you identify this private re:Post.</p><br>
10    ///   - [`user_kms_key(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::user_kms_key) / [`set_user_kms_key(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_user_kms_key):<br>required: **false**<br><p>The AWS KMS key ARN that’s used for the AWS KMS encryption. If you don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you.</p><br>
11    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_tags):<br>required: **false**<br><p>The list of tags associated with the private re:Post.</p><br>
12    ///   - [`role_arn(impl Into<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_role_arn):<br>required: **false**<br><p>The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.</p><br>
13    ///   - [`supported_email_domains(SupportedEmailDomainsParameters)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::supported_email_domains) / [`set_supported_email_domains(Option<SupportedEmailDomainsParameters>)`](crate::operation::create_space::builders::CreateSpaceFluentBuilder::set_supported_email_domains):<br>required: **false**<br><p></p><br>
14    /// - On success, responds with [`CreateSpaceOutput`](crate::operation::create_space::CreateSpaceOutput) with field(s):
15    ///   - [`space_id(String)`](crate::operation::create_space::CreateSpaceOutput::space_id): <p>The unique ID of the private re:Post.</p>
16    /// - On failure, responds with [`SdkError<CreateSpaceError>`](crate::operation::create_space::CreateSpaceError)
17    pub fn create_space(&self) -> crate::operation::create_space::builders::CreateSpaceFluentBuilder {
18        crate::operation::create_space::builders::CreateSpaceFluentBuilder::new(self.handle.clone())
19    }
20}