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 |
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
Synopsis
- data AddAttributesToFindings = AddAttributesToFindings' {
- findingArns :: NonEmpty Text
- attributes :: [Attribute]
- newAddAttributesToFindings :: NonEmpty Text -> AddAttributesToFindings
- addAttributesToFindings_findingArns :: Lens' AddAttributesToFindings (NonEmpty Text)
- addAttributesToFindings_attributes :: Lens' AddAttributesToFindings [Attribute]
- data AddAttributesToFindingsResponse = AddAttributesToFindingsResponse' {}
- newAddAttributesToFindingsResponse :: Int -> AddAttributesToFindingsResponse
- addAttributesToFindingsResponse_httpStatus :: Lens' AddAttributesToFindingsResponse Int
- addAttributesToFindingsResponse_failedItems :: Lens' AddAttributesToFindingsResponse (HashMap Text FailedItemDetails)
Creating a Request
data AddAttributesToFindings Source #
See: newAddAttributesToFindings
smart constructor.
AddAttributesToFindings' | |
|
Instances
newAddAttributesToFindings Source #
Create a value of AddAttributesToFindings
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:findingArns:AddAttributesToFindings'
, addAttributesToFindings_findingArns
- The ARNs that specify the findings that you want to assign attributes
to.
$sel:attributes:AddAttributesToFindings'
, addAttributesToFindings_attributes
- The array of attributes that you want to assign to specified findings.
Request Lenses
addAttributesToFindings_findingArns :: Lens' AddAttributesToFindings (NonEmpty Text) Source #
The ARNs that specify the findings that you want to assign attributes to.
addAttributesToFindings_attributes :: Lens' AddAttributesToFindings [Attribute] Source #
The array of attributes that you want to assign to specified findings.
Destructuring the Response
data AddAttributesToFindingsResponse Source #
See: newAddAttributesToFindingsResponse
smart constructor.
AddAttributesToFindingsResponse' | |
|
Instances
newAddAttributesToFindingsResponse Source #
Create a value of AddAttributesToFindingsResponse
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:AddAttributesToFindingsResponse'
, addAttributesToFindingsResponse_httpStatus
- The response's http status code.
$sel:failedItems:AddAttributesToFindingsResponse'
, addAttributesToFindingsResponse_failedItems
- Attribute details that cannot be described. An error code is provided
for each failed item.
Response Lenses
addAttributesToFindingsResponse_httpStatus :: Lens' AddAttributesToFindingsResponse Int Source #
The response's http status code.
addAttributesToFindingsResponse_failedItems :: Lens' AddAttributesToFindingsResponse (HashMap Text FailedItemDetails) Source #
Attribute details that cannot be described. An error code is provided for each failed item.