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

Description

Retrieves the ProtectionGroup objects for the account.

Synopsis

Creating a Request

data ListProtectionGroups Source #

See: newListProtectionGroups smart constructor.

Constructors

ListProtectionGroups' 

Fields

  • nextToken :: Maybe Text

    The next token value from a previous call to ListProtectionGroups. Pass null if this is the first call.

  • maxResults :: Maybe Natural

    The maximum number of ProtectionGroup 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 ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Read ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Show ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Generic ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Associated Types

type Rep ListProtectionGroups :: Type -> Type #

NFData ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Methods

rnf :: ListProtectionGroups -> () #

Hashable ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

ToJSON ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

AWSRequest ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Associated Types

type AWSResponse ListProtectionGroups #

ToHeaders ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

ToPath ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

ToQuery ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

type Rep ListProtectionGroups Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

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

Defined in Amazonka.Shield.ListProtectionGroups

newListProtectionGroups :: ListProtectionGroups Source #

Create a value of ListProtectionGroups 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:ListProtectionGroups', listProtectionGroups_nextToken - The next token value from a previous call to ListProtectionGroups. Pass null if this is the first call.

$sel:maxResults:ListProtectionGroups', listProtectionGroups_maxResults - The maximum number of ProtectionGroup 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

listProtectionGroups_nextToken :: Lens' ListProtectionGroups (Maybe Text) Source #

The next token value from a previous call to ListProtectionGroups. Pass null if this is the first call.

listProtectionGroups_maxResults :: Lens' ListProtectionGroups (Maybe Natural) Source #

The maximum number of ProtectionGroup 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 ListProtectionGroupsResponse Source #

See: newListProtectionGroupsResponse smart constructor.

Constructors

ListProtectionGroupsResponse' 

Fields

  • nextToken :: Maybe Text

    If you specify a value for MaxResults and you have more protection groups than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

  • httpStatus :: Int

    The response's http status code.

  • protectionGroups :: [ProtectionGroup]
     

Instances

Instances details
Eq ListProtectionGroupsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Read ListProtectionGroupsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Show ListProtectionGroupsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Generic ListProtectionGroupsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

Associated Types

type Rep ListProtectionGroupsResponse :: Type -> Type #

NFData ListProtectionGroupsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

type Rep ListProtectionGroupsResponse Source # 
Instance details

Defined in Amazonka.Shield.ListProtectionGroups

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

newListProtectionGroupsResponse Source #

Create a value of ListProtectionGroupsResponse 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:ListProtectionGroups', listProtectionGroupsResponse_nextToken - If you specify a value for MaxResults and you have more protection groups than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

$sel:httpStatus:ListProtectionGroupsResponse', listProtectionGroupsResponse_httpStatus - The response's http status code.

$sel:protectionGroups:ListProtectionGroupsResponse', listProtectionGroupsResponse_protectionGroups -

Response Lenses

listProtectionGroupsResponse_nextToken :: Lens' ListProtectionGroupsResponse (Maybe Text) Source #

If you specify a value for MaxResults and you have more protection groups than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.