amazonka-support-app-2.0: Amazon Support App SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Description

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:

  1. 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.
  2. Call the RegisterSlackWorkspaceForOrganization API 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:

Synopsis

Creating a Request

data RegisterSlackWorkspaceForOrganization Source #

Constructors

RegisterSlackWorkspaceForOrganization' 

Fields

  • teamId :: Text

    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.

Instances

Instances details
ToJSON RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

ToHeaders RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

ToPath RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

ToQuery RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

AWSRequest RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Generic RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Read RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Show RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

NFData RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Eq RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Hashable RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

type AWSResponse RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

type Rep RegisterSlackWorkspaceForOrganization Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

type Rep RegisterSlackWorkspaceForOrganization = D1 ('MetaData "RegisterSlackWorkspaceForOrganization" "Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization" "amazonka-support-app-2.0-K70l4Z7c1tk36e2ucvecLC" 'False) (C1 ('MetaCons "RegisterSlackWorkspaceForOrganization'" 'PrefixI 'True) (S1 ('MetaSel ('Just "teamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newRegisterSlackWorkspaceForOrganization Source #

Create a value of RegisterSlackWorkspaceForOrganization with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

RegisterSlackWorkspaceForOrganization, registerSlackWorkspaceForOrganization_teamId - 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.

Request Lenses

registerSlackWorkspaceForOrganization_teamId :: Lens' RegisterSlackWorkspaceForOrganization Text Source #

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.

Destructuring the Response

data RegisterSlackWorkspaceForOrganizationResponse Source #

Constructors

RegisterSlackWorkspaceForOrganizationResponse' 

Fields

  • accountType :: Maybe AccountType

    Whether the Amazon Web Services account is a management or member account that's part of an organization in Organizations.

  • teamId :: Maybe Text

    The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.

  • teamName :: Maybe Text

    The name of the Slack workspace.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic RegisterSlackWorkspaceForOrganizationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Read RegisterSlackWorkspaceForOrganizationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Show RegisterSlackWorkspaceForOrganizationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

NFData RegisterSlackWorkspaceForOrganizationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

Eq RegisterSlackWorkspaceForOrganizationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

type Rep RegisterSlackWorkspaceForOrganizationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization

type Rep RegisterSlackWorkspaceForOrganizationResponse = D1 ('MetaData "RegisterSlackWorkspaceForOrganizationResponse" "Amazonka.SupportApp.RegisterSlackWorkspaceForOrganization" "amazonka-support-app-2.0-K70l4Z7c1tk36e2ucvecLC" 'False) (C1 ('MetaCons "RegisterSlackWorkspaceForOrganizationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccountType)) :*: S1 ('MetaSel ('Just "teamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "teamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newRegisterSlackWorkspaceForOrganizationResponse Source #

Create a value of RegisterSlackWorkspaceForOrganizationResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:accountType:RegisterSlackWorkspaceForOrganizationResponse', registerSlackWorkspaceForOrganizationResponse_accountType - Whether the Amazon Web Services account is a management or member account that's part of an organization in Organizations.

RegisterSlackWorkspaceForOrganization, registerSlackWorkspaceForOrganizationResponse_teamId - The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.

RegisterSlackWorkspaceForOrganizationResponse, registerSlackWorkspaceForOrganizationResponse_teamName - The name of the Slack workspace.

$sel:httpStatus:RegisterSlackWorkspaceForOrganizationResponse', registerSlackWorkspaceForOrganizationResponse_httpStatus - The response's http status code.

Response Lenses

registerSlackWorkspaceForOrganizationResponse_accountType :: Lens' RegisterSlackWorkspaceForOrganizationResponse (Maybe AccountType) Source #

Whether the Amazon Web Services account is a management or member account that's part of an organization in Organizations.

registerSlackWorkspaceForOrganizationResponse_teamId :: Lens' RegisterSlackWorkspaceForOrganizationResponse (Maybe Text) Source #

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.