amazonka-inspector-2.0: Amazon Inspector 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.Inspector.ListEventSubscriptions

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

data ListEventSubscriptions Source #

See: newListEventSubscriptions smart constructor.

Constructors

ListEventSubscriptions' 

Fields

  • maxResults :: Maybe Int

    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.

  • nextToken :: Maybe Text

    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.

  • resourceArn :: Maybe Text

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

Instances

Instances details
ToJSON ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

ToHeaders ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

ToPath ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

ToQuery ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

AWSPager ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

AWSRequest ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Associated Types

type AWSResponse ListEventSubscriptions #

Generic ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Associated Types

type Rep ListEventSubscriptions :: Type -> Type #

Read ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Show ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

NFData ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Methods

rnf :: ListEventSubscriptions -> () #

Eq ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Hashable ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

type AWSResponse ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

type Rep ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

type Rep ListEventSubscriptions = D1 ('MetaData "ListEventSubscriptions" "Amazonka.Inspector.ListEventSubscriptions" "amazonka-inspector-2.0-DbkSB2KDR0U54GYFqTMz6L" 'False) (C1 ('MetaCons "ListEventSubscriptions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListEventSubscriptions :: ListEventSubscriptions Source #

Create a value of ListEventSubscriptions 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:maxResults:ListEventSubscriptions', listEventSubscriptions_maxResults - 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.

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

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

Request Lenses

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

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

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

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

Destructuring the Response

data ListEventSubscriptionsResponse Source #

See: newListEventSubscriptionsResponse smart constructor.

Constructors

ListEventSubscriptionsResponse' 

Fields

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

  • subscriptions :: [Subscription]

    Details of the returned event subscriptions.

Instances

Instances details
Generic ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Associated Types

type Rep ListEventSubscriptionsResponse :: Type -> Type #

Read ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Show ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

NFData ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Eq ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

type Rep ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

type Rep ListEventSubscriptionsResponse = D1 ('MetaData "ListEventSubscriptionsResponse" "Amazonka.Inspector.ListEventSubscriptions" "amazonka-inspector-2.0-DbkSB2KDR0U54GYFqTMz6L" 'False) (C1 ('MetaCons "ListEventSubscriptionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "subscriptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Subscription]))))

newListEventSubscriptionsResponse Source #

Create a value of ListEventSubscriptionsResponse 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:

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

$sel:httpStatus:ListEventSubscriptionsResponse', listEventSubscriptionsResponse_httpStatus - The response's http status code.

$sel:subscriptions:ListEventSubscriptionsResponse', listEventSubscriptionsResponse_subscriptions - Details of the returned event subscriptions.

Response Lenses

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