aws_sdk_supportapp/client/
create_slack_channel_configuration.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSlackChannelConfiguration`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`team_id(impl Into<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::team_id) / [`set_team_id(Option<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_team_id):<br>required: **true**<br><p>The team ID in Slack. This ID uniquely identifies a Slack workspace, such as <code>T012ABCDEFG</code>.</p><br>
    ///   - [`channel_id(impl Into<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::channel_id) / [`set_channel_id(Option<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_channel_id):<br>required: **true**<br><p>The channel ID in Slack. This ID identifies a channel within a Slack workspace.</p><br>
    ///   - [`channel_name(impl Into<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::channel_name) / [`set_channel_name(Option<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_channel_name):<br>required: **false**<br><p>The name of the Slack channel that you configure for the Amazon Web Services Support App.</p><br>
    ///   - [`notify_on_create_or_reopen_case(bool)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::notify_on_create_or_reopen_case) / [`set_notify_on_create_or_reopen_case(Option<bool>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_notify_on_create_or_reopen_case):<br>required: **false**<br><p>Whether you want to get notified when a support case is created or reopened.</p><br>
    ///   - [`notify_on_add_correspondence_to_case(bool)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::notify_on_add_correspondence_to_case) / [`set_notify_on_add_correspondence_to_case(Option<bool>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_notify_on_add_correspondence_to_case):<br>required: **false**<br><p>Whether you want to get notified when a support case has a new correspondence.</p><br>
    ///   - [`notify_on_resolve_case(bool)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::notify_on_resolve_case) / [`set_notify_on_resolve_case(Option<bool>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_notify_on_resolve_case):<br>required: **false**<br><p>Whether you want to get notified when a support case is resolved.</p><br>
    ///   - [`notify_on_case_severity(NotificationSeverityLevel)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::notify_on_case_severity) / [`set_notify_on_case_severity(Option<NotificationSeverityLevel>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_notify_on_case_severity):<br>required: **true**<br><p>The case severity for a support case that you want to receive notifications.</p> <p>If you specify <code>high</code> or <code>all</code>, you must specify <code>true</code> for at least one of the following parameters:</p> <ul>  <li>   <p><code>notifyOnAddCorrespondenceToCase</code></p></li>  <li>   <p><code>notifyOnCreateOrReopenCase</code></p></li>  <li>   <p><code>notifyOnResolveCase</code></p></li> </ul> <p>If you specify <code>none</code>, the following parameters must be null or <code>false</code>:</p> <ul>  <li>   <p><code>notifyOnAddCorrespondenceToCase</code></p></li>  <li>   <p><code>notifyOnCreateOrReopenCase</code></p></li>  <li>   <p><code>notifyOnResolveCase</code></p></li> </ul><note>  <p>If you don't specify these parameters in your request, they default to <code>false</code>.</p> </note><br>
    ///   - [`channel_role_arn(impl Into<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::channel_role_arn) / [`set_channel_role_arn(Option<String>)`](crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::set_channel_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations on Amazon Web Services. For more information, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/support-app-permissions.html">Managing access to the Amazon Web Services Support App</a> in the <i>Amazon Web Services Support User Guide</i>.</p><br>
    /// - On success, responds with [`CreateSlackChannelConfigurationOutput`](crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationOutput)
    /// - On failure, responds with [`SdkError<CreateSlackChannelConfigurationError>`](crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError)
    pub fn create_slack_channel_configuration(
        &self,
    ) -> crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder {
        crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationFluentBuilder::new(self.handle.clone())
    }
}