update_slack_channel_configuration
async
¶
update_slack_channel_configuration(
team_id: teamId,
channel_id: channelId,
*,
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,
notify_on_case_severity: Optional[NotificationSeverityLevel] = None,
channel_role_arn: Optional[roleArn] = None,
) -> UpdateSlackChannelConfigurationResult
Updates the configuration for a Slack channel, such as case update notifications.
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 Slack channel name that you want to update.
-
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(Optional[NotificationSeverityLevel], default:None) –The case severity for a support case that you want to receive notifications.
If you specify
highorall, at least one of the following parameters must betrue:-
notifyOnAddCorrespondenceToCase -
notifyOnCreateOrReopenCase -
notifyOnResolveCase
If you specify
none, any of the following parameters that you specify in your request must befalse:-
notifyOnAddCorrespondenceToCase -
notifyOnCreateOrReopenCase -
notifyOnResolveCase
If you don't specify these parameters in your request, the Amazon Web Services Support App uses the current values by default.
-
-
channel_role_arn(Optional[roleArn], default:None) –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.
-
ResourceNotFoundException–The specified resource is missing or doesn't exist, such as an account alias, Slack channel configuration, or Slack workspace configuration.
-
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
673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 | |