aws-sdk-connect 1.166.0

AWS SDK for Amazon Connect Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateNotification`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
    ///   - [`expires_at(DateTime)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::expires_at) / [`set_expires_at(Option<DateTime>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::set_expires_at):<br>required: **false**<br><p>The timestamp when the notification should expire and no longer be displayed to users. If not specified, defaults to one week from creation.</p><br>
    ///   - [`recipients(impl Into<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::recipients) / [`set_recipients(Option<Vec::<String>>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::set_recipients):<br>required: **true**<br><p>A list of Amazon Resource Names (ARNs) identifying the recipients of the notification. Can include user ARNs or instance ARNs to target all users in an instance. Maximum of 200 recipients.</p><br>
    ///   - [`priority(ConfigurableNotificationPriority)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::priority) / [`set_priority(Option<ConfigurableNotificationPriority>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::set_priority):<br>required: **false**<br><p>The priority level of the notification. Valid values are HIGH and LOW. High priority notifications are displayed above low priority notifications.</p><br>
    ///   - [`content(LocaleCode, impl Into<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::content) / [`set_content(Option<HashMap::<LocaleCode, String>>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::set_content):<br>required: **true**<br><p>The localized content of the notification. A map where keys are locale codes and values are the notification text in that locale. Content supports links. Maximum 250 characters per locale.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource. For example, <code>{ "Tags": {"key1":"value1", "key2":"value2"} }</code>.</p><br>
    ///   - [`predefined_notification_id(impl Into<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::predefined_notification_id) / [`set_predefined_notification_id(Option<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::set_predefined_notification_id):<br>required: **false**<br><p>The unique identifier for a notification.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_notification::builders::CreateNotificationFluentBuilder::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>
    /// - On success, responds with [`CreateNotificationOutput`](crate::operation::create_notification::CreateNotificationOutput) with field(s):
    ///   - [`notification_id(String)`](crate::operation::create_notification::CreateNotificationOutput::notification_id): <p>The unique identifier assigned to the created notification.</p>
    ///   - [`notification_arn(String)`](crate::operation::create_notification::CreateNotificationOutput::notification_arn): <p>The Amazon Resource Name (ARN) of the created notification.</p>
    /// - On failure, responds with [`SdkError<CreateNotificationError>`](crate::operation::create_notification::CreateNotificationError)
    pub fn create_notification(&self) -> crate::operation::create_notification::builders::CreateNotificationFluentBuilder {
        crate::operation::create_notification::builders::CreateNotificationFluentBuilder::new(self.handle.clone())
    }
}