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 |
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.
GetFindings' | |
|
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. You can specify as many as 50 unique identifiers in this
array.
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. You can specify as many as 50 unique identifiers in this array.
Destructuring the Response
data GetFindingsResponse Source #
See: newGetFindingsResponse
smart constructor.
GetFindingsResponse' | |
|
Instances
newGetFindingsResponse Source #
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 matches 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 matches the criteria specified in the request.
getFindingsResponse_httpStatus :: Lens' GetFindingsResponse Int Source #
The response's http status code.