Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds a notification channel to DevOps Guru. A notification channel is used to notify you about important DevOps Guru events, such as when an insight is generated.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.
If you use an Amazon SNS topic that is encrypted by an AWS Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for AWS KMS–encrypted Amazon SNS topics.
Synopsis
- data AddNotificationChannel = AddNotificationChannel' {}
- newAddNotificationChannel :: NotificationChannelConfig -> AddNotificationChannel
- addNotificationChannel_config :: Lens' AddNotificationChannel NotificationChannelConfig
- data AddNotificationChannelResponse = AddNotificationChannelResponse' {
- httpStatus :: Int
- id :: Text
- newAddNotificationChannelResponse :: Int -> Text -> AddNotificationChannelResponse
- addNotificationChannelResponse_httpStatus :: Lens' AddNotificationChannelResponse Int
- addNotificationChannelResponse_id :: Lens' AddNotificationChannelResponse Text
Creating a Request
data AddNotificationChannel Source #
See: newAddNotificationChannel
smart constructor.
AddNotificationChannel' | |
|
Instances
newAddNotificationChannel Source #
Create a value of AddNotificationChannel
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:config:AddNotificationChannel'
, addNotificationChannel_config
- A NotificationChannelConfig
object that specifies what type of
notification channel to add. The one supported notification channel is
Amazon Simple Notification Service (Amazon SNS).
Request Lenses
addNotificationChannel_config :: Lens' AddNotificationChannel NotificationChannelConfig Source #
A NotificationChannelConfig
object that specifies what type of
notification channel to add. The one supported notification channel is
Amazon Simple Notification Service (Amazon SNS).
Destructuring the Response
data AddNotificationChannelResponse Source #
See: newAddNotificationChannelResponse
smart constructor.
AddNotificationChannelResponse' | |
|
Instances
Eq AddNotificationChannelResponse Source # | |
Read AddNotificationChannelResponse Source # | |
Show AddNotificationChannelResponse Source # | |
Defined in Amazonka.DevOpsGuru.AddNotificationChannel | |
Generic AddNotificationChannelResponse Source # | |
NFData AddNotificationChannelResponse Source # | |
Defined in Amazonka.DevOpsGuru.AddNotificationChannel rnf :: AddNotificationChannelResponse -> () # | |
type Rep AddNotificationChannelResponse Source # | |
Defined in Amazonka.DevOpsGuru.AddNotificationChannel type Rep AddNotificationChannelResponse = D1 ('MetaData "AddNotificationChannelResponse" "Amazonka.DevOpsGuru.AddNotificationChannel" "libZSservicesZSamazonka-devops-guruZSamazonka-devops-guru" 'False) (C1 ('MetaCons "AddNotificationChannelResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newAddNotificationChannelResponse Source #
Create a value of AddNotificationChannelResponse
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:AddNotificationChannelResponse'
, addNotificationChannelResponse_httpStatus
- The response's http status code.
$sel:id:AddNotificationChannelResponse'
, addNotificationChannelResponse_id
- The ID of the added notification channel.
Response Lenses
addNotificationChannelResponse_httpStatus :: Lens' AddNotificationChannelResponse Int Source #
The response's http status code.
addNotificationChannelResponse_id :: Lens' AddNotificationChannelResponse Text Source #
The ID of the added notification channel.