/AWS1/IF_SUA=>REGISTERSLACKWORKSPACEFORORG()¶
About RegisterSlackWorkspaceForOrganization¶
Registers a Slack workspace for your Amazon Web Services account. To call this API, your account must be part of an organization in Organizations.
If you're the management account and you want to register Slack workspaces for your organization, you must complete the following tasks:
-
Sign in to the Amazon Web Services Support Center and authorize the Slack workspaces where you want your organization to have access to. See Authorize a Slack workspace in the Amazon Web Services Support User Guide.
-
Call the
RegisterSlackWorkspaceForOrganizationAPI to authorize each Slack workspace for the organization.
After the management account authorizes the Slack workspace, member accounts can call this API to authorize the same Slack workspace for their individual accounts. Member accounts don't need to authorize the Slack workspace manually through the Amazon Web Services Support Center.
To use the Amazon Web Services Support App, each account must then complete the following tasks:
-
Create an Identity and Access Management (IAM) role with the required permission. For more information, see Managing access to the Amazon Web Services Support App.
-
Configure a Slack channel to use the Amazon Web Services Support App for support cases for that account. For more information, see Configuring a Slack channel.
Method Signature¶
METHODS /AWS1/IF_SUA~REGISTERSLACKWORKSPACEFORORG
IMPORTING
!IV_TEAMID TYPE /AWS1/SUATEAMID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_suaregslackworkspac01
RAISING
/AWS1/CX_SUAACCESSDENIEDEX
/AWS1/CX_SUACONFLICTEXCEPTION
/AWS1/CX_SUAINTERNALSERVEREX
/AWS1/CX_SUARESOURCENOTFOUNDEX
/AWS1/CX_SUAVALIDATIONEX
/AWS1/CX_SUACLIENTEXC
/AWS1/CX_SUASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_teamid TYPE /AWS1/SUATEAMID /AWS1/SUATEAMID¶
The team ID in Slack. This ID uniquely identifies a Slack workspace, such as
T012ABCDEFG. Specify the Slack workspace that you want to use for your organization.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_suaregslackworkspac01 /AWS1/CL_SUAREGSLACKWORKSPAC01¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->registerslackworkspacefororg( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_teamid = lo_result->get_teamid( ).
lv_teamname = lo_result->get_teamname( ).
lv_accounttype = lo_result->get_accounttype( ).
ENDIF.