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 |
Imports security findings generated from an integrated product into Security Hub. This action is requested by the integrated product to import its findings into Security Hub.
The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.
After a finding is created, BatchImportFindings
cannot be used to
update the following finding fields and objects, which Security Hub
customers use to manage their investigation workflow.
Note
UserDefinedFields
VerificationState
Workflow
Finding providers also should not use BatchImportFindings
to update
the following attributes.
Confidence
Criticality
RelatedFindings
Severity
Types
Instead, finding providers use FindingProviderFields
to provide values
for these attributes.
Synopsis
- data BatchImportFindings = BatchImportFindings' {}
- newBatchImportFindings :: NonEmpty AwsSecurityFinding -> BatchImportFindings
- batchImportFindings_findings :: Lens' BatchImportFindings (NonEmpty AwsSecurityFinding)
- data BatchImportFindingsResponse = BatchImportFindingsResponse' {}
- newBatchImportFindingsResponse :: Int -> Int -> Int -> BatchImportFindingsResponse
- batchImportFindingsResponse_failedFindings :: Lens' BatchImportFindingsResponse (Maybe [ImportFindingsError])
- batchImportFindingsResponse_httpStatus :: Lens' BatchImportFindingsResponse Int
- batchImportFindingsResponse_failedCount :: Lens' BatchImportFindingsResponse Int
- batchImportFindingsResponse_successCount :: Lens' BatchImportFindingsResponse Int
Creating a Request
data BatchImportFindings Source #
See: newBatchImportFindings
smart constructor.
BatchImportFindings' | |
|
Instances
newBatchImportFindings Source #
Create a value of BatchImportFindings
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:BatchImportFindings'
, batchImportFindings_findings
- A list of findings to import. To successfully import a finding, it must
follow the
Amazon Web Services Security Finding Format.
Maximum of 100 findings per request.
Request Lenses
batchImportFindings_findings :: Lens' BatchImportFindings (NonEmpty AwsSecurityFinding) Source #
A list of findings to import. To successfully import a finding, it must follow the Amazon Web Services Security Finding Format. Maximum of 100 findings per request.
Destructuring the Response
data BatchImportFindingsResponse Source #
See: newBatchImportFindingsResponse
smart constructor.
BatchImportFindingsResponse' | |
|
Instances
newBatchImportFindingsResponse Source #
:: Int | |
-> Int | |
-> Int | |
-> BatchImportFindingsResponse |
Create a value of BatchImportFindingsResponse
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:failedFindings:BatchImportFindingsResponse'
, batchImportFindingsResponse_failedFindings
- The list of findings that failed to import.
$sel:httpStatus:BatchImportFindingsResponse'
, batchImportFindingsResponse_httpStatus
- The response's http status code.
$sel:failedCount:BatchImportFindingsResponse'
, batchImportFindingsResponse_failedCount
- The number of findings that failed to import.
$sel:successCount:BatchImportFindingsResponse'
, batchImportFindingsResponse_successCount
- The number of findings that were successfully imported.
Response Lenses
batchImportFindingsResponse_failedFindings :: Lens' BatchImportFindingsResponse (Maybe [ImportFindingsError]) Source #
The list of findings that failed to import.
batchImportFindingsResponse_httpStatus :: Lens' BatchImportFindingsResponse Int Source #
The response's http status code.
batchImportFindingsResponse_failedCount :: Lens' BatchImportFindingsResponse Int Source #
The number of findings that failed to import.
batchImportFindingsResponse_successCount :: Lens' BatchImportFindingsResponse Int Source #
The number of findings that were successfully imported.