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

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

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

Instances

Instances details
Eq ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Read ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Show ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Generic ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Associated Types

type Rep ListEventSubscriptions :: Type -> Type #

NFData ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Methods

rnf :: ListEventSubscriptions -> () #

Hashable ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

ToJSON 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 #

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

type Rep ListEventSubscriptions Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

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

Defined in Amazonka.Inspector.ListEventSubscriptions

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

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

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

Request Lenses

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.

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.

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

Defined in Amazonka.Inspector.ListEventSubscriptions

Read ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Show ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Generic ListEventSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListEventSubscriptions

Associated Types

type Rep ListEventSubscriptionsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" '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:

$sel:nextToken: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.