libZSservicesZSamazonka-fmsZSamazonka-fms
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.FMS.ListPolicies

Description

Returns an array of PolicySummary objects.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPolicies Source #

See: newListPolicies smart constructor.

Constructors

ListPolicies' 

Fields

  • nextToken :: Maybe Text

    If you specify a value for MaxResults and you have more PolicySummary objects than the number that you specify for MaxResults, Firewall Manager returns a NextToken value in the response that allows you to list another group of PolicySummary objects. For the second and subsequent ListPolicies requests, specify the value of NextToken from the previous response to get information about another batch of PolicySummary objects.

  • maxResults :: Maybe Natural

    Specifies the number of PolicySummary objects that you want Firewall Manager to return for this request. If you have more PolicySummary objects than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of PolicySummary objects.

Instances

Instances details
Eq ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Read ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Show ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Generic ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Associated Types

type Rep ListPolicies :: Type -> Type #

NFData ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Methods

rnf :: ListPolicies -> () #

Hashable ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

ToJSON ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

AWSPager ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

AWSRequest ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Associated Types

type AWSResponse ListPolicies #

ToHeaders ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

ToPath ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

ToQuery ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

type Rep ListPolicies Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

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

Defined in Amazonka.FMS.ListPolicies

newListPolicies :: ListPolicies Source #

Create a value of ListPolicies 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:ListPolicies', listPolicies_nextToken - If you specify a value for MaxResults and you have more PolicySummary objects than the number that you specify for MaxResults, Firewall Manager returns a NextToken value in the response that allows you to list another group of PolicySummary objects. For the second and subsequent ListPolicies requests, specify the value of NextToken from the previous response to get information about another batch of PolicySummary objects.

$sel:maxResults:ListPolicies', listPolicies_maxResults - Specifies the number of PolicySummary objects that you want Firewall Manager to return for this request. If you have more PolicySummary objects than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of PolicySummary objects.

Request Lenses

listPolicies_nextToken :: Lens' ListPolicies (Maybe Text) Source #

If you specify a value for MaxResults and you have more PolicySummary objects than the number that you specify for MaxResults, Firewall Manager returns a NextToken value in the response that allows you to list another group of PolicySummary objects. For the second and subsequent ListPolicies requests, specify the value of NextToken from the previous response to get information about another batch of PolicySummary objects.

listPolicies_maxResults :: Lens' ListPolicies (Maybe Natural) Source #

Specifies the number of PolicySummary objects that you want Firewall Manager to return for this request. If you have more PolicySummary objects than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of PolicySummary objects.

Destructuring the Response

data ListPoliciesResponse Source #

See: newListPoliciesResponse smart constructor.

Constructors

ListPoliciesResponse' 

Fields

  • nextToken :: Maybe Text

    If you have more PolicySummary objects than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more PolicySummary objects, submit another ListPolicies request, and specify the NextToken value from the response in the NextToken value in the next request.

  • policyList :: Maybe [PolicySummary]

    An array of PolicySummary objects.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListPoliciesResponse Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Read ListPoliciesResponse Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Show ListPoliciesResponse Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Generic ListPoliciesResponse Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Associated Types

type Rep ListPoliciesResponse :: Type -> Type #

NFData ListPoliciesResponse Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

Methods

rnf :: ListPoliciesResponse -> () #

type Rep ListPoliciesResponse Source # 
Instance details

Defined in Amazonka.FMS.ListPolicies

type Rep ListPoliciesResponse = D1 ('MetaData "ListPoliciesResponse" "Amazonka.FMS.ListPolicies" "libZSservicesZSamazonka-fmsZSamazonka-fms" 'False) (C1 ('MetaCons "ListPoliciesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "policyList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PolicySummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListPoliciesResponse Source #

Create a value of ListPoliciesResponse 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:ListPolicies', listPoliciesResponse_nextToken - If you have more PolicySummary objects than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more PolicySummary objects, submit another ListPolicies request, and specify the NextToken value from the response in the NextToken value in the next request.

$sel:policyList:ListPoliciesResponse', listPoliciesResponse_policyList - An array of PolicySummary objects.

$sel:httpStatus:ListPoliciesResponse', listPoliciesResponse_httpStatus - The response's http status code.

Response Lenses

listPoliciesResponse_nextToken :: Lens' ListPoliciesResponse (Maybe Text) Source #

If you have more PolicySummary objects than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more PolicySummary objects, submit another ListPolicies request, and specify the NextToken value from the response in the NextToken value in the next request.