Skip to main content

aws_sdk_endusermessaging/client/
create_brand_profile.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 [`CreateBrandProfile`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`brand_profile_name(impl Into<String>)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::brand_profile_name) / [`set_brand_profile_name(Option<String>)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::set_brand_profile_name):<br>required: **true**<br><p>The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.</p><br>
8    ///   - [`deletion_protection_enabled(bool)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::deletion_protection_enabled) / [`set_deletion_protection_enabled(Option<bool>)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::set_deletion_protection_enabled):<br>required: **false**<br><p>Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::set_tags):<br>required: **false**<br><p>An array of key and value pair tags that are associated with the resource.</p><br>
10    /// - On success, responds with [`CreateBrandProfileOutput`](crate::operation::create_brand_profile::CreateBrandProfileOutput) with field(s):
11    ///   - [`brand_profile_id(String)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::brand_profile_id): <p>The unique identifier of the brand profile.</p>
12    ///   - [`brand_profile_arn(String)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::brand_profile_arn): <p>The Amazon Resource Name (ARN) of the brand profile.</p>
13    ///   - [`brand_profile_name(String)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::brand_profile_name): <p>The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.</p>
14    ///   - [`status(Status)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::status): <p>The current lifecycle status of the brand profile.</p>
15    ///   - [`deletion_protection_enabled(bool)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::deletion_protection_enabled): <p>Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.</p>
16    ///   - [`created_at(DateTime)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::created_at): <p>The time when the resource was created, in Unix epoch time.</p>
17    ///   - [`updated_at(DateTime)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::updated_at): <p>The time when the resource was last updated, in Unix epoch time.</p>
18    ///   - [`attributes_created(i32)`](crate::operation::create_brand_profile::CreateBrandProfileOutput::attributes_created): <p>The number of default attributes that were created for the brand profile.</p>
19    /// - On failure, responds with [`SdkError<CreateBrandProfileError>`](crate::operation::create_brand_profile::CreateBrandProfileError)
20    pub fn create_brand_profile(&self) -> crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder {
21        crate::operation::create_brand_profile::builders::CreateBrandProfileFluentBuilder::new(self.handle.clone())
22    }
23}