amazonka-devops-guru-2.0: Amazon DevOps Guru 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.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

Creating a Request

data AddNotificationChannel Source #

See: newAddNotificationChannel smart constructor.

Constructors

AddNotificationChannel' 

Fields

  • config :: NotificationChannelConfig

    A NotificationChannelConfig object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).

Instances

Instances details
ToJSON AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

ToHeaders AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

ToPath AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

ToQuery AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

AWSRequest AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Associated Types

type AWSResponse AddNotificationChannel #

Generic AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Associated Types

type Rep AddNotificationChannel :: Type -> Type #

Read AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Show AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

NFData AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Methods

rnf :: AddNotificationChannel -> () #

Eq AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Hashable AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

type AWSResponse AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

type Rep AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

type Rep AddNotificationChannel = D1 ('MetaData "AddNotificationChannel" "Amazonka.DevOpsGuru.AddNotificationChannel" "amazonka-devops-guru-2.0-C03FLSgo73f1Pu5ftIREHS" 'False) (C1 ('MetaCons "AddNotificationChannel'" 'PrefixI 'True) (S1 ('MetaSel ('Just "config") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NotificationChannelConfig)))

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

  • httpStatus :: Int

    The response's http status code.

  • id :: Text

    The ID of the added notification channel.

Instances

Instances details
Generic AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Associated Types

type Rep AddNotificationChannelResponse :: Type -> Type #

Read AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Show AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

NFData AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Eq AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

type Rep AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

type Rep AddNotificationChannelResponse = D1 ('MetaData "AddNotificationChannelResponse" "Amazonka.DevOpsGuru.AddNotificationChannel" "amazonka-devops-guru-2.0-C03FLSgo73f1Pu5ftIREHS" '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.

AddNotificationChannelResponse, addNotificationChannelResponse_id - The ID of the added notification channel.

Response Lenses