| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MacieV2.SearchResources
Description
Retrieves (queries) statistical data and other information about Amazon Web Services resources that Amazon Macie monitors and analyzes.
This operation returns paginated results.
Synopsis
- data SearchResources = SearchResources' {}
- newSearchResources :: SearchResources
- searchResources_bucketCriteria :: Lens' SearchResources (Maybe SearchResourcesBucketCriteria)
- searchResources_maxResults :: Lens' SearchResources (Maybe Int)
- searchResources_nextToken :: Lens' SearchResources (Maybe Text)
- searchResources_sortCriteria :: Lens' SearchResources (Maybe SearchResourcesSortCriteria)
- data SearchResourcesResponse = SearchResourcesResponse' {}
- newSearchResourcesResponse :: Int -> SearchResourcesResponse
- searchResourcesResponse_matchingResources :: Lens' SearchResourcesResponse (Maybe [MatchingResource])
- searchResourcesResponse_nextToken :: Lens' SearchResourcesResponse (Maybe Text)
- searchResourcesResponse_httpStatus :: Lens' SearchResourcesResponse Int
Creating a Request
data SearchResources Source #
See: newSearchResources smart constructor.
Constructors
| SearchResources' | |
Fields
| |
Instances
newSearchResources :: SearchResources Source #
Create a value of SearchResources 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:
SearchResources, searchResources_bucketCriteria - The filter conditions that determine which S3 buckets to include or
exclude from the query results.
$sel:maxResults:SearchResources', searchResources_maxResults - The maximum number of items to include in each page of the response. The
default value is 50.
SearchResources, searchResources_nextToken - The nextToken string that specifies which page of results to return in a
paginated response.
$sel:sortCriteria:SearchResources', searchResources_sortCriteria - The criteria to use to sort the results.
Request Lenses
searchResources_bucketCriteria :: Lens' SearchResources (Maybe SearchResourcesBucketCriteria) Source #
The filter conditions that determine which S3 buckets to include or exclude from the query results.
searchResources_maxResults :: Lens' SearchResources (Maybe Int) Source #
The maximum number of items to include in each page of the response. The default value is 50.
searchResources_nextToken :: Lens' SearchResources (Maybe Text) Source #
The nextToken string that specifies which page of results to return in a paginated response.
searchResources_sortCriteria :: Lens' SearchResources (Maybe SearchResourcesSortCriteria) Source #
The criteria to use to sort the results.
Destructuring the Response
data SearchResourcesResponse Source #
See: newSearchResourcesResponse smart constructor.
Constructors
| SearchResourcesResponse' | |
Fields
| |
Instances
newSearchResourcesResponse Source #
Create a value of SearchResourcesResponse 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:matchingResources:SearchResourcesResponse', searchResourcesResponse_matchingResources - An array of objects, one for each resource that matches the filter
criteria specified in the request.
SearchResources, searchResourcesResponse_nextToken - The string to use in a subsequent request to get the next page of
results in a paginated response. This value is null if there are no
additional pages.
$sel:httpStatus:SearchResourcesResponse', searchResourcesResponse_httpStatus - The response's http status code.
Response Lenses
searchResourcesResponse_matchingResources :: Lens' SearchResourcesResponse (Maybe [MatchingResource]) Source #
An array of objects, one for each resource that matches the filter criteria specified in the request.
searchResourcesResponse_nextToken :: Lens' SearchResourcesResponse (Maybe Text) Source #
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
searchResourcesResponse_httpStatus :: Lens' SearchResourcesResponse Int Source #
The response's http status code.