Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data CreateSlackChannelConfiguration = CreateSlackChannelConfiguration' {}
- newCreateSlackChannelConfiguration :: Text -> Text -> NotificationSeverityLevel -> Text -> CreateSlackChannelConfiguration
- createSlackChannelConfiguration_channelName :: Lens' CreateSlackChannelConfiguration (Maybe Text)
- createSlackChannelConfiguration_notifyOnAddCorrespondenceToCase :: Lens' CreateSlackChannelConfiguration (Maybe Bool)
- createSlackChannelConfiguration_notifyOnCreateOrReopenCase :: Lens' CreateSlackChannelConfiguration (Maybe Bool)
- createSlackChannelConfiguration_notifyOnResolveCase :: Lens' CreateSlackChannelConfiguration (Maybe Bool)
- createSlackChannelConfiguration_channelId :: Lens' CreateSlackChannelConfiguration Text
- createSlackChannelConfiguration_channelRoleArn :: Lens' CreateSlackChannelConfiguration Text
- createSlackChannelConfiguration_notifyOnCaseSeverity :: Lens' CreateSlackChannelConfiguration NotificationSeverityLevel
- createSlackChannelConfiguration_teamId :: Lens' CreateSlackChannelConfiguration Text
- data CreateSlackChannelConfigurationResponse = CreateSlackChannelConfigurationResponse' {
- httpStatus :: Int
- newCreateSlackChannelConfigurationResponse :: Int -> CreateSlackChannelConfigurationResponse
- createSlackChannelConfigurationResponse_httpStatus :: Lens' CreateSlackChannelConfigurationResponse Int
Creating a Request
data CreateSlackChannelConfiguration Source #
See: newCreateSlackChannelConfiguration
smart constructor.
CreateSlackChannelConfiguration' | |
|
Instances
newCreateSlackChannelConfiguration Source #
Create a value of CreateSlackChannelConfiguration
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:
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_channelName
- The name of the Slack channel that you configure for the Amazon Web
Services Support App.
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_notifyOnAddCorrespondenceToCase
- Whether you want to get notified when a support case has a new
correspondence.
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_notifyOnCreateOrReopenCase
- Whether you want to get notified when a support case is created or
reopened.
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_notifyOnResolveCase
- Whether you want to get notified when a support case is resolved.
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_channelId
- The channel ID in Slack. This ID identifies a channel within a Slack
workspace.
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_channelRoleArn
- 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.
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_notifyOnCaseSeverity
- 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
.
CreateSlackChannelConfiguration
, createSlackChannelConfiguration_teamId
- The team ID in Slack. This ID uniquely identifies a Slack workspace,
such as T012ABCDEFG
.
Request Lenses
createSlackChannelConfiguration_channelName :: Lens' CreateSlackChannelConfiguration (Maybe Text) Source #
The name of the Slack channel that you configure for the Amazon Web Services Support App.
createSlackChannelConfiguration_notifyOnAddCorrespondenceToCase :: Lens' CreateSlackChannelConfiguration (Maybe Bool) Source #
Whether you want to get notified when a support case has a new correspondence.
createSlackChannelConfiguration_notifyOnCreateOrReopenCase :: Lens' CreateSlackChannelConfiguration (Maybe Bool) Source #
Whether you want to get notified when a support case is created or reopened.
createSlackChannelConfiguration_notifyOnResolveCase :: Lens' CreateSlackChannelConfiguration (Maybe Bool) Source #
Whether you want to get notified when a support case is resolved.
createSlackChannelConfiguration_channelId :: Lens' CreateSlackChannelConfiguration Text Source #
The channel ID in Slack. This ID identifies a channel within a Slack workspace.
createSlackChannelConfiguration_channelRoleArn :: Lens' CreateSlackChannelConfiguration Text Source #
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.
createSlackChannelConfiguration_notifyOnCaseSeverity :: Lens' CreateSlackChannelConfiguration NotificationSeverityLevel Source #
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
.
createSlackChannelConfiguration_teamId :: Lens' CreateSlackChannelConfiguration Text Source #
The team ID in Slack. This ID uniquely identifies a Slack workspace,
such as T012ABCDEFG
.
Destructuring the Response
data CreateSlackChannelConfigurationResponse Source #
See: newCreateSlackChannelConfigurationResponse
smart constructor.
CreateSlackChannelConfigurationResponse' | |
|
Instances
Generic CreateSlackChannelConfigurationResponse Source # | |
Defined in Amazonka.SupportApp.CreateSlackChannelConfiguration type Rep CreateSlackChannelConfigurationResponse :: Type -> Type # | |
Read CreateSlackChannelConfigurationResponse Source # | |
Show CreateSlackChannelConfigurationResponse Source # | |
NFData CreateSlackChannelConfigurationResponse Source # | |
Eq CreateSlackChannelConfigurationResponse Source # | |
type Rep CreateSlackChannelConfigurationResponse Source # | |
Defined in Amazonka.SupportApp.CreateSlackChannelConfiguration type Rep CreateSlackChannelConfigurationResponse = D1 ('MetaData "CreateSlackChannelConfigurationResponse" "Amazonka.SupportApp.CreateSlackChannelConfiguration" "amazonka-support-app-2.0-K70l4Z7c1tk36e2ucvecLC" 'False) (C1 ('MetaCons "CreateSlackChannelConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateSlackChannelConfigurationResponse Source #
Create a value of CreateSlackChannelConfigurationResponse
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:httpStatus:CreateSlackChannelConfigurationResponse'
, createSlackChannelConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
createSlackChannelConfigurationResponse_httpStatus :: Lens' CreateSlackChannelConfigurationResponse Int Source #
The response's http status code.