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 |
Amazonka.DevOpsGuru.AddNotificationChannel
Description
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. DevOps Guru only supports standard SNS topics. For more information, see Permissions for cross account Amazon SNS topics.
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 Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for Amazon Web Services 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.
Constructors
AddNotificationChannel' | |
Fields
|
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:
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.
Constructors
AddNotificationChannelResponse' | |
Fields
|
Instances
newAddNotificationChannelResponse Source #
Arguments
:: Int | |
-> Text | |
-> AddNotificationChannelResponse |
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.
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.