libZSservicesZSamazonka-devops-guruZSamazonka-devops-guru
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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. 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

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
Eq AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Read AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Show AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Generic AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Associated Types

type Rep AddNotificationChannel :: Type -> Type #

NFData AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Methods

rnf :: AddNotificationChannel -> () #

Hashable AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

ToJSON AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

AWSRequest AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Associated Types

type AWSResponse 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

type Rep AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

type Rep AddNotificationChannel = D1 ('MetaData "AddNotificationChannel" "Amazonka.DevOpsGuru.AddNotificationChannel" "libZSservicesZSamazonka-devops-guruZSamazonka-devops-guru" 'False) (C1 ('MetaCons "AddNotificationChannel'" 'PrefixI 'True) (S1 ('MetaSel ('Just "config") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NotificationChannelConfig)))
type AWSResponse AddNotificationChannel Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

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.

Constructors

AddNotificationChannelResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • id :: Text

    The ID of the added notification channel.

Instances

Instances details
Eq AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Read AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Show AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Generic AddNotificationChannelResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.AddNotificationChannel

Associated Types

type Rep AddNotificationChannelResponse :: Type -> Type #

NFData 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" "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