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.AccessAnalyzer.UpdateFindings
Description
Updates the status for the specified findings.
Synopsis
- data UpdateFindings = UpdateFindings' {
- clientToken :: Maybe Text
- ids :: Maybe [Text]
- resourceArn :: Maybe Text
- analyzerArn :: Text
- status :: FindingStatusUpdate
- newUpdateFindings :: Text -> FindingStatusUpdate -> UpdateFindings
- updateFindings_clientToken :: Lens' UpdateFindings (Maybe Text)
- updateFindings_ids :: Lens' UpdateFindings (Maybe [Text])
- updateFindings_resourceArn :: Lens' UpdateFindings (Maybe Text)
- updateFindings_analyzerArn :: Lens' UpdateFindings Text
- updateFindings_status :: Lens' UpdateFindings FindingStatusUpdate
- data UpdateFindingsResponse = UpdateFindingsResponse' {
- newUpdateFindingsResponse :: UpdateFindingsResponse
Creating a Request
data UpdateFindings Source #
Updates findings with the new values provided in the request.
See: newUpdateFindings
smart constructor.
Constructors
UpdateFindings' | |
Fields
|
Instances
Arguments
:: Text | |
-> FindingStatusUpdate | |
-> UpdateFindings |
Create a value of UpdateFindings
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:clientToken:UpdateFindings'
, updateFindings_clientToken
- A client token.
$sel:ids:UpdateFindings'
, updateFindings_ids
- The IDs of the findings to update.
$sel:resourceArn:UpdateFindings'
, updateFindings_resourceArn
- The ARN of the resource identified in the finding.
$sel:analyzerArn:UpdateFindings'
, updateFindings_analyzerArn
- The
ARN of the analyzer
that generated the findings to update.
$sel:status:UpdateFindings'
, updateFindings_status
- The state represents the action to take to update the finding Status.
Use ARCHIVE
to change an Active finding to an Archived finding. Use
ACTIVE
to change an Archived finding to an Active finding.
Request Lenses
updateFindings_clientToken :: Lens' UpdateFindings (Maybe Text) Source #
A client token.
updateFindings_ids :: Lens' UpdateFindings (Maybe [Text]) Source #
The IDs of the findings to update.
updateFindings_resourceArn :: Lens' UpdateFindings (Maybe Text) Source #
The ARN of the resource identified in the finding.
updateFindings_analyzerArn :: Lens' UpdateFindings Text Source #
The ARN of the analyzer that generated the findings to update.
updateFindings_status :: Lens' UpdateFindings FindingStatusUpdate Source #
The state represents the action to take to update the finding Status.
Use ARCHIVE
to change an Active finding to an Archived finding. Use
ACTIVE
to change an Archived finding to an Active finding.
Destructuring the Response
data UpdateFindingsResponse Source #
See: newUpdateFindingsResponse
smart constructor.
Constructors
UpdateFindingsResponse' | |
Instances
newUpdateFindingsResponse :: UpdateFindingsResponse Source #
Create a value of UpdateFindingsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.