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 |
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.
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
Generic AddAttributesToFindingsResponse Source # | |
Read AddAttributesToFindingsResponse Source # | |
Show AddAttributesToFindingsResponse Source # | |
Defined in Amazonka.Inspector.AddAttributesToFindings | |
NFData AddAttributesToFindingsResponse Source # | |
Defined in Amazonka.Inspector.AddAttributesToFindings rnf :: AddAttributesToFindingsResponse -> () # | |
Eq AddAttributesToFindingsResponse Source # | |
type Rep AddAttributesToFindingsResponse Source # | |
Defined in Amazonka.Inspector.AddAttributesToFindings type Rep AddAttributesToFindingsResponse = D1 ('MetaData "AddAttributesToFindingsResponse" "Amazonka.Inspector.AddAttributesToFindings" "amazonka-inspector-2.0-DbkSB2KDR0U54GYFqTMz6L" 'False) (C1 ('MetaCons "AddAttributesToFindingsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "failedItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text FailedItemDetails)))) |
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.