libZSservicesZSamazonka-inspectorZSamazonka-inspector
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.Inspector.SubscribeToEvent

Description

Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.

Synopsis

Creating a Request

data SubscribeToEvent Source #

See: newSubscribeToEvent smart constructor.

Constructors

SubscribeToEvent' 

Fields

  • resourceArn :: Text

    The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

  • event :: InspectorEvent

    The event for which you want to receive SNS notifications.

  • topicArn :: Text

    The ARN of the SNS topic to which the SNS notifications are sent.

Instances

Instances details
Eq SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Read SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Show SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Generic SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Associated Types

type Rep SubscribeToEvent :: Type -> Type #

NFData SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Methods

rnf :: SubscribeToEvent -> () #

Hashable SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

ToJSON SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

AWSRequest SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Associated Types

type AWSResponse SubscribeToEvent #

ToHeaders SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

ToPath SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

ToQuery SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

type Rep SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

type Rep SubscribeToEvent = D1 ('MetaData "SubscribeToEvent" "Amazonka.Inspector.SubscribeToEvent" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "SubscribeToEvent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "event") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InspectorEvent) :*: S1 ('MetaSel ('Just "topicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SubscribeToEvent Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

newSubscribeToEvent Source #

Create a value of SubscribeToEvent 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:resourceArn:SubscribeToEvent', subscribeToEvent_resourceArn - The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

$sel:event:SubscribeToEvent', subscribeToEvent_event - The event for which you want to receive SNS notifications.

$sel:topicArn:SubscribeToEvent', subscribeToEvent_topicArn - The ARN of the SNS topic to which the SNS notifications are sent.

Request Lenses

subscribeToEvent_resourceArn :: Lens' SubscribeToEvent Text Source #

The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

subscribeToEvent_event :: Lens' SubscribeToEvent InspectorEvent Source #

The event for which you want to receive SNS notifications.

subscribeToEvent_topicArn :: Lens' SubscribeToEvent Text Source #

The ARN of the SNS topic to which the SNS notifications are sent.

Destructuring the Response

data SubscribeToEventResponse Source #

See: newSubscribeToEventResponse smart constructor.

Instances

Instances details
Eq SubscribeToEventResponse Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Read SubscribeToEventResponse Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Show SubscribeToEventResponse Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Generic SubscribeToEventResponse Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

Associated Types

type Rep SubscribeToEventResponse :: Type -> Type #

NFData SubscribeToEventResponse Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

type Rep SubscribeToEventResponse Source # 
Instance details

Defined in Amazonka.Inspector.SubscribeToEvent

type Rep SubscribeToEventResponse = D1 ('MetaData "SubscribeToEventResponse" "Amazonka.Inspector.SubscribeToEvent" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "SubscribeToEventResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSubscribeToEventResponse :: SubscribeToEventResponse Source #

Create a value of SubscribeToEventResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.