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
sourceimpl CreateSlackChannelConfiguration
impl CreateSlackChannelConfiguration
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.
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.
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
sourceimpl Clone for CreateSlackChannelConfiguration
impl Clone for CreateSlackChannelConfiguration
sourcefn clone(&self) -> CreateSlackChannelConfiguration
fn clone(&self) -> CreateSlackChannelConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateSlackChannelConfiguration
impl Send for CreateSlackChannelConfiguration
impl Sync for CreateSlackChannelConfiguration
impl Unpin for CreateSlackChannelConfiguration
impl !UnwindSafe for CreateSlackChannelConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more