amazonka-fms-1.6.1: Amazon Firewall Management Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.FMS.ListPolicies

Contents

Description

Returns an array of PolicySummary objects in the response.

Synopsis

Creating a Request

listPolicies :: ListPolicies Source #

Creates a value of ListPolicies with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lpNextToken - If you specify a value for MaxResults and you have more PolicySummary objects than the number that you specify for MaxResults , AWS 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.
  • lpMaxResults - Specifies the number of PolicySummary objects that you want AWS 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.

data ListPolicies Source #

See: listPolicies smart constructor.

Instances
Eq ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Data ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListPolicies -> c ListPolicies #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListPolicies #

toConstr :: ListPolicies -> Constr #

dataTypeOf :: ListPolicies -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListPolicies) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListPolicies) #

gmapT :: (forall b. Data b => b -> b) -> ListPolicies -> ListPolicies #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListPolicies -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListPolicies -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListPolicies -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListPolicies -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListPolicies -> m ListPolicies #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPolicies -> m ListPolicies #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPolicies -> m ListPolicies #

Read ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Show ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Generic ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Associated Types

type Rep ListPolicies :: Type -> Type #

Hashable ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

ToJSON ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

AWSRequest ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Associated Types

type Rs ListPolicies :: Type #

ToHeaders ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

ToPath ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

ToQuery ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

NFData ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Methods

rnf :: ListPolicies -> () #

type Rep ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

type Rep ListPolicies = D1 (MetaData "ListPolicies" "Network.AWS.FMS.ListPolicies" "amazonka-fms-1.6.1-Jqf0mlmXXTcC8Iu5gYWu1a" False) (C1 (MetaCons "ListPolicies'" PrefixI True) (S1 (MetaSel (Just "_lpNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lpMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))
type Rs ListPolicies Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Request Lenses

lpNextToken :: 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 , AWS 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.

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

Specifies the number of PolicySummary objects that you want AWS 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

listPoliciesResponse Source #

Creates a value of ListPoliciesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lprsNextToken - 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.
  • lprsPolicyList - An array of PolicySummary objects.
  • lprsResponseStatus - -- | The response status code.

data ListPoliciesResponse Source #

See: listPoliciesResponse smart constructor.

Instances
Eq ListPoliciesResponse Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Data ListPoliciesResponse Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListPoliciesResponse -> c ListPoliciesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListPoliciesResponse #

toConstr :: ListPoliciesResponse -> Constr #

dataTypeOf :: ListPoliciesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListPoliciesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListPoliciesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListPoliciesResponse -> ListPoliciesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListPoliciesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListPoliciesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListPoliciesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListPoliciesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListPoliciesResponse -> m ListPoliciesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPoliciesResponse -> m ListPoliciesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPoliciesResponse -> m ListPoliciesResponse #

Read ListPoliciesResponse Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Show ListPoliciesResponse Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Generic ListPoliciesResponse Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Associated Types

type Rep ListPoliciesResponse :: Type -> Type #

NFData ListPoliciesResponse Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

Methods

rnf :: ListPoliciesResponse -> () #

type Rep ListPoliciesResponse Source # 
Instance details

Defined in Network.AWS.FMS.ListPolicies

type Rep ListPoliciesResponse = D1 (MetaData "ListPoliciesResponse" "Network.AWS.FMS.ListPolicies" "amazonka-fms-1.6.1-Jqf0mlmXXTcC8Iu5gYWu1a" False) (C1 (MetaCons "ListPoliciesResponse'" PrefixI True) (S1 (MetaSel (Just "_lprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lprsPolicyList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PolicySummary])) :*: S1 (MetaSel (Just "_lprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

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

lprsPolicyList :: Lens' ListPoliciesResponse [PolicySummary] Source #

An array of PolicySummary objects.

lprsResponseStatus :: Lens' ListPoliciesResponse Int Source #

  • - | The response status code.