| Copyright | (c) 2013-2021 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 |
Amazonka.MacieV2.GetFindings
Description
Retrieves the details of one or more findings.
Synopsis
- data GetFindings = GetFindings' {
- sortCriteria :: Maybe SortCriteria
- findingIds :: [Text]
- newGetFindings :: GetFindings
- getFindings_sortCriteria :: Lens' GetFindings (Maybe SortCriteria)
- getFindings_findingIds :: Lens' GetFindings [Text]
- data GetFindingsResponse = GetFindingsResponse' {
- findings :: Maybe [Finding]
- httpStatus :: Int
- newGetFindingsResponse :: Int -> GetFindingsResponse
- getFindingsResponse_findings :: Lens' GetFindingsResponse (Maybe [Finding])
- getFindingsResponse_httpStatus :: Lens' GetFindingsResponse Int
Creating a Request
data GetFindings Source #
See: newGetFindings smart constructor.
Constructors
| GetFindings' | |
Fields
| |
Instances
newGetFindings :: GetFindings Source #
Create a value of GetFindings 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:sortCriteria:GetFindings', getFindings_sortCriteria - The criteria for sorting the results of the request.
$sel:findingIds:GetFindings', getFindings_findingIds - An array of strings that lists the unique identifiers for the findings
to retrieve.
Request Lenses
getFindings_sortCriteria :: Lens' GetFindings (Maybe SortCriteria) Source #
The criteria for sorting the results of the request.
getFindings_findingIds :: Lens' GetFindings [Text] Source #
An array of strings that lists the unique identifiers for the findings to retrieve.
Destructuring the Response
data GetFindingsResponse Source #
See: newGetFindingsResponse smart constructor.
Constructors
| GetFindingsResponse' | |
Fields
| |
Instances
newGetFindingsResponse Source #
Arguments
| :: Int | |
| -> GetFindingsResponse |
Create a value of GetFindingsResponse 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:findings:GetFindingsResponse', getFindingsResponse_findings - An array of objects, one for each finding that meets the criteria
specified in the request.
$sel:httpStatus:GetFindingsResponse', getFindingsResponse_httpStatus - The response's http status code.
Response Lenses
getFindingsResponse_findings :: Lens' GetFindingsResponse (Maybe [Finding]) Source #
An array of objects, one for each finding that meets the criteria specified in the request.
getFindingsResponse_httpStatus :: Lens' GetFindingsResponse Int Source #
The response's http status code.