amazonka-resourcegroups-1.6.1: Amazon Resource Groups 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.ResourceGroups.SearchResources

Contents

Description

Returns a list of AWS resource identifiers that matches a specified query. The query uses the same format as a resource query in a CreateGroup or UpdateGroupQuery operation.

This operation returns paginated results.

Synopsis

Creating a Request

searchResources Source #

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

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

  • srNextToken - The NextToken value that is returned in a paginated SearchResources request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.
  • srMaxResults - The maximum number of group member ARNs returned by SearchResources in paginated output. By default, this number is 50.
  • srResourceQuery - The search query, using the same formats that are supported for resource group definition.

data SearchResources Source #

See: searchResources smart constructor.

Instances
Eq SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Data SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Methods

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

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

toConstr :: SearchResources -> Constr #

dataTypeOf :: SearchResources -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Show SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Generic SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Associated Types

type Rep SearchResources :: Type -> Type #

Hashable SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

ToJSON SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

AWSPager SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

AWSRequest SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Associated Types

type Rs SearchResources :: Type #

ToHeaders SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

ToPath SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

ToQuery SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

NFData SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Methods

rnf :: SearchResources -> () #

type Rep SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

type Rep SearchResources = D1 (MetaData "SearchResources" "Network.AWS.ResourceGroups.SearchResources" "amazonka-resourcegroups-1.6.1-ESIAO7l4Zjz1j0LGvWxGeP" False) (C1 (MetaCons "SearchResources'" PrefixI True) (S1 (MetaSel (Just "_srNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_srMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_srResourceQuery") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceQuery))))
type Rs SearchResources Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Request Lenses

srNextToken :: Lens' SearchResources (Maybe Text) Source #

The NextToken value that is returned in a paginated SearchResources request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.

srMaxResults :: Lens' SearchResources (Maybe Natural) Source #

The maximum number of group member ARNs returned by SearchResources in paginated output. By default, this number is 50.

srResourceQuery :: Lens' SearchResources ResourceQuery Source #

The search query, using the same formats that are supported for resource group definition.

Destructuring the Response

searchResourcesResponse Source #

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

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

  • srrsNextToken - The NextToken value to include in a subsequent SearchResources request, to get more results.
  • srrsResourceIdentifiers - The ARNs and resource types of resources that are members of the group that you specified.
  • srrsResponseStatus - -- | The response status code.

data SearchResourcesResponse Source #

See: searchResourcesResponse smart constructor.

Instances
Eq SearchResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Data SearchResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Methods

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

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

toConstr :: SearchResourcesResponse -> Constr #

dataTypeOf :: SearchResourcesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SearchResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Show SearchResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Generic SearchResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Associated Types

type Rep SearchResourcesResponse :: Type -> Type #

NFData SearchResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

Methods

rnf :: SearchResourcesResponse -> () #

type Rep SearchResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.SearchResources

type Rep SearchResourcesResponse = D1 (MetaData "SearchResourcesResponse" "Network.AWS.ResourceGroups.SearchResources" "amazonka-resourcegroups-1.6.1-ESIAO7l4Zjz1j0LGvWxGeP" False) (C1 (MetaCons "SearchResourcesResponse'" PrefixI True) (S1 (MetaSel (Just "_srrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_srrsResourceIdentifiers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ResourceIdentifier])) :*: S1 (MetaSel (Just "_srrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

srrsNextToken :: Lens' SearchResourcesResponse (Maybe Text) Source #

The NextToken value to include in a subsequent SearchResources request, to get more results.

srrsResourceIdentifiers :: Lens' SearchResourcesResponse [ResourceIdentifier] Source #

The ARNs and resource types of resources that are members of the group that you specified.