create_slack_channel_configuration
async
¶
create_slack_channel_configuration(
team_id: teamId,
channel_id: channelId,
notify_on_case_severity: NotificationSeverityLevel,
channel_role_arn: roleArn,
*,
config_overrides: Optional[AsyncSupportAppClientConfig] = None,
channel_name: Optional[channelName] = None,
notify_on_create_or_reopen_case: Optional[booleanValue] = None,
notify_on_add_correspondence_to_case: Optional[booleanValue] = None,
notify_on_resolve_case: Optional[booleanValue] = None,
) -> CreateSlackChannelConfigurationResult
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.
Parameters:
-
team_id(teamId) –The team ID in Slack. This ID uniquely identifies a Slack workspace, such as
T012ABCDEFG. -
channel_id(channelId) –The channel ID in Slack. This ID identifies a channel within a Slack workspace.
-
channel_name(Optional[channelName], default:None) –The name of the Slack channel that you configure for the Amazon Web Services Support App.
-
notify_on_create_or_reopen_case(Optional[booleanValue], default:None) –Whether you want to get notified when a support case is created or reopened.
-
notify_on_add_correspondence_to_case(Optional[booleanValue], default:None) –Whether you want to get notified when a support case has a new correspondence.
-
notify_on_resolve_case(Optional[booleanValue], default:None) –Whether you want to get notified when a support case is resolved.
-
notify_on_case_severity(NotificationSeverityLevel) –The case severity for a support case that you want to receive notifications.
If you specify
highorall, you must specifytruefor at least one of the following parameters:-
notifyOnAddCorrespondenceToCase -
notifyOnCreateOrReopenCase -
notifyOnResolveCase
If you specify
none, the following parameters must be null orfalse:-
notifyOnAddCorrespondenceToCase -
notifyOnCreateOrReopenCase -
notifyOnResolveCase
If you don't specify these parameters in your request, they default to
false. -
-
channel_role_arn(roleArn) –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.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
ConflictException–Your request has a conflict. For example, you might receive this error if you try the following:
-
Add, update, or delete a Slack channel configuration before you add a Slack workspace to your Amazon Web Services account.
-
Add a Slack channel configuration that already exists in your Amazon Web Services account.
-
Delete a Slack channel configuration for a live chat channel.
-
Delete a Slack workspace from your Amazon Web Services account that has an active live chat channel.
-
Call the
RegisterSlackWorkspaceForOrganizationAPI from an Amazon Web Services account that doesn't belong to an organization. -
Call the
RegisterSlackWorkspaceForOrganizationAPI from a member account, but the management account hasn't registered that workspace yet for the organization.
-
-
InternalServerException–We can’t process your request right now because of a server issue. Try again later.
-
ServiceQuotaExceededException–Your Service Quotas request exceeds the quota for the service. For example, your Service Quotas request to Amazon Web Services Support App might exceed the maximum number of workspaces or channels per account, or the maximum number of accounts per Slack channel.
-
ValidationException–Your request input doesn't meet the constraints that the Amazon Web Services Support App specifies.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_support_app/_services/async_support_app.py
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | |