amazonka-inspector-1.6.1: Amazon Inspector SDK.

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

Network.AWS.Inspector.SubscribeToEvent

Contents

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

subscribeToEvent Source #

Creates a value of SubscribeToEvent with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • steResourceARN - The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
  • steEvent - The event for which you want to receive SNS notifications.
  • steTopicARN - The ARN of the SNS topic to which the SNS notifications are sent.

data SubscribeToEvent Source #

See: subscribeToEvent smart constructor.

Instances
Eq SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Data SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SubscribeToEvent -> c SubscribeToEvent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SubscribeToEvent #

toConstr :: SubscribeToEvent -> Constr #

dataTypeOf :: SubscribeToEvent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SubscribeToEvent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SubscribeToEvent) #

gmapT :: (forall b. Data b => b -> b) -> SubscribeToEvent -> SubscribeToEvent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SubscribeToEvent -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SubscribeToEvent -> r #

gmapQ :: (forall d. Data d => d -> u) -> SubscribeToEvent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SubscribeToEvent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SubscribeToEvent -> m SubscribeToEvent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscribeToEvent -> m SubscribeToEvent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscribeToEvent -> m SubscribeToEvent #

Read SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Show SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Generic SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Associated Types

type Rep SubscribeToEvent :: Type -> Type #

Hashable SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

ToJSON SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

AWSRequest SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Associated Types

type Rs SubscribeToEvent :: Type #

ToHeaders SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

ToPath SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

ToQuery SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

NFData SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Methods

rnf :: SubscribeToEvent -> () #

type Rep SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

type Rep SubscribeToEvent = D1 (MetaData "SubscribeToEvent" "Network.AWS.Inspector.SubscribeToEvent" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "SubscribeToEvent'" PrefixI True) (S1 (MetaSel (Just "_steResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_steEvent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InspectorEvent) :*: S1 (MetaSel (Just "_steTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs SubscribeToEvent Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Request Lenses

steResourceARN :: Lens' SubscribeToEvent Text Source #

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

steEvent :: Lens' SubscribeToEvent InspectorEvent Source #

The event for which you want to receive SNS notifications.

steTopicARN :: Lens' SubscribeToEvent Text Source #

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

Destructuring the Response

subscribeToEventResponse :: SubscribeToEventResponse Source #

Creates a value of SubscribeToEventResponse with the minimum fields required to make a request.

data SubscribeToEventResponse Source #

See: subscribeToEventResponse smart constructor.

Instances
Eq SubscribeToEventResponse Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Data SubscribeToEventResponse Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SubscribeToEventResponse -> c SubscribeToEventResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SubscribeToEventResponse #

toConstr :: SubscribeToEventResponse -> Constr #

dataTypeOf :: SubscribeToEventResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SubscribeToEventResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SubscribeToEventResponse) #

gmapT :: (forall b. Data b => b -> b) -> SubscribeToEventResponse -> SubscribeToEventResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SubscribeToEventResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SubscribeToEventResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SubscribeToEventResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SubscribeToEventResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SubscribeToEventResponse -> m SubscribeToEventResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscribeToEventResponse -> m SubscribeToEventResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscribeToEventResponse -> m SubscribeToEventResponse #

Read SubscribeToEventResponse Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Show SubscribeToEventResponse Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Generic SubscribeToEventResponse Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

Associated Types

type Rep SubscribeToEventResponse :: Type -> Type #

NFData SubscribeToEventResponse Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

type Rep SubscribeToEventResponse Source # 
Instance details

Defined in Network.AWS.Inspector.SubscribeToEvent

type Rep SubscribeToEventResponse = D1 (MetaData "SubscribeToEventResponse" "Network.AWS.Inspector.SubscribeToEvent" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "SubscribeToEventResponse'" PrefixI False) (U1 :: Type -> Type))