Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- searchResources :: ResourceQuery -> SearchResources
- data SearchResources
- srNextToken :: Lens' SearchResources (Maybe Text)
- srMaxResults :: Lens' SearchResources (Maybe Natural)
- srResourceQuery :: Lens' SearchResources ResourceQuery
- searchResourcesResponse :: Int -> SearchResourcesResponse
- data SearchResourcesResponse
- srrsNextToken :: Lens' SearchResourcesResponse (Maybe Text)
- srrsResourceIdentifiers :: Lens' SearchResourcesResponse [ResourceIdentifier]
- srrsResponseStatus :: Lens' SearchResourcesResponse Int
Creating a Request
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 paginatedSearchResources
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 bySearchResources
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
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 subsequentSearchResources
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
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.
srrsResponseStatus :: Lens' SearchResourcesResponse Int Source #
- - | The response status code.