pub struct CreateSlackChannelConfiguration { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSlackChannelConfiguration
.
Creates a Slack channel configuration for your Amazon Web Services account.
-
You can add up to 5 Slack workspaces for your account.
-
You can add up to 20 Slack channels for your account.
A Slack channel can have up to 100 Amazon Web Services accounts. This means that only 100 accounts can add the same Slack channel to the Amazon Web Services Support App. We recommend that you only add the accounts that you need to manage support cases for your organization. This can reduce the notifications about case updates that you receive in the Slack channel.
We recommend that you choose a private Slack channel so that only members in that channel have read and write access to your support cases. Anyone in your Slack channel can create, update, or resolve support cases for your account. Users require an invitation to join private channels.
Implementations§
source§impl CreateSlackChannelConfiguration
impl CreateSlackChannelConfiguration
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateSlackChannelConfiguration, AwsResponseRetryClassifier>, SdkError<CreateSlackChannelConfigurationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateSlackChannelConfiguration, AwsResponseRetryClassifier>, SdkError<CreateSlackChannelConfigurationError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateSlackChannelConfigurationOutput, SdkError<CreateSlackChannelConfigurationError>>
pub async fn send(
self
) -> Result<CreateSlackChannelConfigurationOutput, SdkError<CreateSlackChannelConfigurationError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn team_id(self, input: impl Into<String>) -> Self
pub fn team_id(self, input: impl Into<String>) -> Self
The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG
.
sourcepub fn set_team_id(self, input: Option<String>) -> Self
pub fn set_team_id(self, input: Option<String>) -> Self
The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG
.
sourcepub fn channel_id(self, input: impl Into<String>) -> Self
pub fn channel_id(self, input: impl Into<String>) -> Self
The channel ID in Slack. This ID identifies a channel within a Slack workspace.
sourcepub fn set_channel_id(self, input: Option<String>) -> Self
pub fn set_channel_id(self, input: Option<String>) -> Self
The channel ID in Slack. This ID identifies a channel within a Slack workspace.
sourcepub fn channel_name(self, input: impl Into<String>) -> Self
pub fn channel_name(self, input: impl Into<String>) -> Self
The name of the Slack channel that you configure for the Amazon Web Services Support App.
sourcepub fn set_channel_name(self, input: Option<String>) -> Self
pub fn set_channel_name(self, input: Option<String>) -> Self
The name of the Slack channel that you configure for the Amazon Web Services Support App.
sourcepub fn notify_on_create_or_reopen_case(self, input: bool) -> Self
pub fn notify_on_create_or_reopen_case(self, input: bool) -> Self
Whether you want to get notified when a support case is created or reopened.
sourcepub fn set_notify_on_create_or_reopen_case(self, input: Option<bool>) -> Self
pub fn set_notify_on_create_or_reopen_case(self, input: Option<bool>) -> Self
Whether you want to get notified when a support case is created or reopened.
sourcepub fn notify_on_add_correspondence_to_case(self, input: bool) -> Self
pub fn notify_on_add_correspondence_to_case(self, input: bool) -> Self
Whether you want to get notified when a support case has a new correspondence.
sourcepub fn set_notify_on_add_correspondence_to_case(
self,
input: Option<bool>
) -> Self
pub fn set_notify_on_add_correspondence_to_case(
self,
input: Option<bool>
) -> Self
Whether you want to get notified when a support case has a new correspondence.
sourcepub fn notify_on_resolve_case(self, input: bool) -> Self
pub fn notify_on_resolve_case(self, input: bool) -> Self
Whether you want to get notified when a support case is resolved.
sourcepub fn set_notify_on_resolve_case(self, input: Option<bool>) -> Self
pub fn set_notify_on_resolve_case(self, input: Option<bool>) -> Self
Whether you want to get notified when a support case is resolved.
sourcepub fn notify_on_case_severity(self, input: NotificationSeverityLevel) -> Self
pub fn notify_on_case_severity(self, input: NotificationSeverityLevel) -> Self
The case severity for a support case that you want to receive notifications.
If you specify high
or all
, you must specify true
for at least one of the following parameters:
-
notifyOnAddCorrespondenceToCase
-
notifyOnCreateOrReopenCase
-
notifyOnResolveCase
If you specify none
, the following parameters must be null or false
:
-
notifyOnAddCorrespondenceToCase
-
notifyOnCreateOrReopenCase
-
notifyOnResolveCase
If you don't specify these parameters in your request, they default to false
.
sourcepub fn set_notify_on_case_severity(
self,
input: Option<NotificationSeverityLevel>
) -> Self
pub fn set_notify_on_case_severity(
self,
input: Option<NotificationSeverityLevel>
) -> Self
The case severity for a support case that you want to receive notifications.
If you specify high
or all
, you must specify true
for at least one of the following parameters:
-
notifyOnAddCorrespondenceToCase
-
notifyOnCreateOrReopenCase
-
notifyOnResolveCase
If you specify none
, the following parameters must be null or false
:
-
notifyOnAddCorrespondenceToCase
-
notifyOnCreateOrReopenCase
-
notifyOnResolveCase
If you don't specify these parameters in your request, they default to false
.
sourcepub fn channel_role_arn(self, input: impl Into<String>) -> Self
pub fn channel_role_arn(self, input: impl Into<String>) -> Self
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 Managing access to the Amazon Web Services Support App in the Amazon Web Services Support User Guide.
sourcepub fn set_channel_role_arn(self, input: Option<String>) -> Self
pub fn set_channel_role_arn(self, input: Option<String>) -> Self
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 Managing access to the Amazon Web Services Support App in the Amazon Web Services Support User Guide.
Trait Implementations§
source§impl Clone for CreateSlackChannelConfiguration
impl Clone for CreateSlackChannelConfiguration
source§fn clone(&self) -> CreateSlackChannelConfiguration
fn clone(&self) -> CreateSlackChannelConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more