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

Contents

Description

Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent .

This operation returns paginated results.

Synopsis

Creating a Request

listEventSubscriptions :: ListEventSubscriptions Source #

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

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

  • lesNextToken - You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListEventSubscriptions action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
  • lesResourceARN - The ARN of the assessment template for which you want to list the existing event subscriptions.
  • lesMaxResults - You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

data ListEventSubscriptions Source #

See: listEventSubscriptions smart constructor.

Instances
Eq ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Data ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Methods

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

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

toConstr :: ListEventSubscriptions -> Constr #

dataTypeOf :: ListEventSubscriptions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Show ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Generic ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Associated Types

type Rep ListEventSubscriptions :: Type -> Type #

Hashable ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

ToJSON ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

AWSPager ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

AWSRequest ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Associated Types

type Rs ListEventSubscriptions :: Type #

ToHeaders ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

ToPath ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

ToQuery ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

NFData ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Methods

rnf :: ListEventSubscriptions -> () #

type Rep ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

type Rep ListEventSubscriptions = D1 (MetaData "ListEventSubscriptions" "Network.AWS.Inspector.ListEventSubscriptions" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "ListEventSubscriptions'" PrefixI True) (S1 (MetaSel (Just "_lesNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lesResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lesMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs ListEventSubscriptions Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Request Lenses

lesNextToken :: Lens' ListEventSubscriptions (Maybe Text) Source #

You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListEventSubscriptions action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

lesResourceARN :: Lens' ListEventSubscriptions (Maybe Text) Source #

The ARN of the assessment template for which you want to list the existing event subscriptions.

lesMaxResults :: Lens' ListEventSubscriptions (Maybe Int) Source #

You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

Destructuring the Response

listEventSubscriptionsResponse Source #

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

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

  • lesrsNextToken - When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
  • lesrsResponseStatus - -- | The response status code.
  • lesrsSubscriptions - Details of the returned event subscriptions.

data ListEventSubscriptionsResponse Source #

See: listEventSubscriptionsResponse smart constructor.

Instances
Eq ListEventSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Data ListEventSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Methods

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

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

toConstr :: ListEventSubscriptionsResponse -> Constr #

dataTypeOf :: ListEventSubscriptionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListEventSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Show ListEventSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Generic ListEventSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

Associated Types

type Rep ListEventSubscriptionsResponse :: Type -> Type #

NFData ListEventSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

type Rep ListEventSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListEventSubscriptions

type Rep ListEventSubscriptionsResponse = D1 (MetaData "ListEventSubscriptionsResponse" "Network.AWS.Inspector.ListEventSubscriptions" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "ListEventSubscriptionsResponse'" PrefixI True) (S1 (MetaSel (Just "_lesrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lesrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_lesrsSubscriptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Subscription]))))

Response Lenses

lesrsNextToken :: Lens' ListEventSubscriptionsResponse (Maybe Text) Source #

When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

lesrsSubscriptions :: Lens' ListEventSubscriptionsResponse [Subscription] Source #

Details of the returned event subscriptions.