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 |
Generates example findings of types specified by the list of finding
types. If 'NULL' is specified for findingTypes
, the API generates
example findings of all supported finding types.
Synopsis
- data CreateSampleFindings = CreateSampleFindings' {
- findingTypes :: Maybe [Text]
- detectorId :: Text
- newCreateSampleFindings :: Text -> CreateSampleFindings
- createSampleFindings_findingTypes :: Lens' CreateSampleFindings (Maybe [Text])
- createSampleFindings_detectorId :: Lens' CreateSampleFindings Text
- data CreateSampleFindingsResponse = CreateSampleFindingsResponse' {
- httpStatus :: Int
- newCreateSampleFindingsResponse :: Int -> CreateSampleFindingsResponse
- createSampleFindingsResponse_httpStatus :: Lens' CreateSampleFindingsResponse Int
Creating a Request
data CreateSampleFindings Source #
See: newCreateSampleFindings
smart constructor.
CreateSampleFindings' | |
|
Instances
newCreateSampleFindings Source #
Create a value of CreateSampleFindings
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:findingTypes:CreateSampleFindings'
, createSampleFindings_findingTypes
- The types of sample findings to generate.
$sel:detectorId:CreateSampleFindings'
, createSampleFindings_detectorId
- The ID of the detector to create sample findings for.
Request Lenses
createSampleFindings_findingTypes :: Lens' CreateSampleFindings (Maybe [Text]) Source #
The types of sample findings to generate.
createSampleFindings_detectorId :: Lens' CreateSampleFindings Text Source #
The ID of the detector to create sample findings for.
Destructuring the Response
data CreateSampleFindingsResponse Source #
See: newCreateSampleFindingsResponse
smart constructor.
CreateSampleFindingsResponse' | |
|
Instances
newCreateSampleFindingsResponse Source #
Create a value of CreateSampleFindingsResponse
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:httpStatus:CreateSampleFindingsResponse'
, createSampleFindingsResponse_httpStatus
- The response's http status code.
Response Lenses
createSampleFindingsResponse_httpStatus :: Lens' CreateSampleFindingsResponse Int Source #
The response's http status code.