libZSservicesZSamazonka-shieldZSamazonka-shield
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.Shield.ListProtections

Description

Lists all Protection objects for the account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListProtections Source #

See: newListProtections smart constructor.

Constructors

ListProtections' 

Fields

  • nextToken :: Maybe Text

    The ListProtectionsRequest.NextToken value from a previous call to ListProtections. Pass null if this is the first call.

  • maxResults :: Maybe Natural

    The maximum number of Protection objects to return. If you leave this blank, Shield Advanced returns the first 20 results.

    This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken that you can use in your next request, to get the next batch of objects.

Instances

Instances details
Eq ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Read ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Show ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Generic ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Associated Types

type Rep ListProtections :: Type -> Type #

NFData ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Methods

rnf :: ListProtections -> () #

Hashable ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

ToJSON ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

AWSPager ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

AWSRequest ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Associated Types

type AWSResponse ListProtections #

ToHeaders ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

ToPath ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

ToQuery ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

type Rep ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

type Rep ListProtections = D1 ('MetaData "ListProtections" "Amazonka.Shield.ListProtections" "libZSservicesZSamazonka-shieldZSamazonka-shield" 'False) (C1 ('MetaCons "ListProtections'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListProtections Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

newListProtections :: ListProtections Source #

Create a value of ListProtections 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:ListProtections', listProtections_nextToken - The ListProtectionsRequest.NextToken value from a previous call to ListProtections. Pass null if this is the first call.

$sel:maxResults:ListProtections', listProtections_maxResults - The maximum number of Protection objects to return. If you leave this blank, Shield Advanced returns the first 20 results.

This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken that you can use in your next request, to get the next batch of objects.

Request Lenses

listProtections_nextToken :: Lens' ListProtections (Maybe Text) Source #

The ListProtectionsRequest.NextToken value from a previous call to ListProtections. Pass null if this is the first call.

listProtections_maxResults :: Lens' ListProtections (Maybe Natural) Source #

The maximum number of Protection objects to return. If you leave this blank, Shield Advanced returns the first 20 results.

This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken that you can use in your next request, to get the next batch of objects.

Destructuring the Response

data ListProtectionsResponse Source #

See: newListProtectionsResponse smart constructor.

Constructors

ListProtectionsResponse' 

Fields

  • protections :: Maybe [Protection]

    The array of enabled Protection objects.

  • nextToken :: Maybe Text

    If you specify a value for MaxResults and you have more Protections than the value of MaxResults, Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

    Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListProtectionsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Read ListProtectionsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Show ListProtectionsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Generic ListProtectionsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Associated Types

type Rep ListProtectionsResponse :: Type -> Type #

NFData ListProtectionsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

Methods

rnf :: ListProtectionsResponse -> () #

type Rep ListProtectionsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtections

type Rep ListProtectionsResponse = D1 ('MetaData "ListProtectionsResponse" "Amazonka.Shield.ListProtections" "libZSservicesZSamazonka-shieldZSamazonka-shield" 'False) (C1 ('MetaCons "ListProtectionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "protections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Protection])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListProtectionsResponse Source #

Create a value of ListProtectionsResponse 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:protections:ListProtectionsResponse', listProtectionsResponse_protections - The array of enabled Protection objects.

$sel:nextToken:ListProtections', listProtectionsResponse_nextToken - If you specify a value for MaxResults and you have more Protections than the value of MaxResults, Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken.

$sel:httpStatus:ListProtectionsResponse', listProtectionsResponse_httpStatus - The response's http status code.

Response Lenses

listProtectionsResponse_nextToken :: Lens' ListProtectionsResponse (Maybe Text) Source #

If you specify a value for MaxResults and you have more Protections than the value of MaxResults, Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken.