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 |
Updates the filter specified by the filter name.
Synopsis
- data UpdateFilter = UpdateFilter' {}
- newUpdateFilter :: Text -> Text -> UpdateFilter
- updateFilter_findingCriteria :: Lens' UpdateFilter (Maybe FindingCriteria)
- updateFilter_action :: Lens' UpdateFilter (Maybe FilterAction)
- updateFilter_description :: Lens' UpdateFilter (Maybe Text)
- updateFilter_rank :: Lens' UpdateFilter (Maybe Natural)
- updateFilter_detectorId :: Lens' UpdateFilter Text
- updateFilter_filterName :: Lens' UpdateFilter Text
- data UpdateFilterResponse = UpdateFilterResponse' {
- httpStatus :: Int
- name :: Text
- newUpdateFilterResponse :: Int -> Text -> UpdateFilterResponse
- updateFilterResponse_httpStatus :: Lens' UpdateFilterResponse Int
- updateFilterResponse_name :: Lens' UpdateFilterResponse Text
Creating a Request
data UpdateFilter Source #
See: newUpdateFilter
smart constructor.
UpdateFilter' | |
|
Instances
Create a value of UpdateFilter
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:findingCriteria:UpdateFilter'
, updateFilter_findingCriteria
- Represents the criteria to be used in the filter for querying findings.
$sel:action:UpdateFilter'
, updateFilter_action
- Specifies the action that is to be applied to the findings that match
the filter.
$sel:description:UpdateFilter'
, updateFilter_description
- The description of the filter.
$sel:rank:UpdateFilter'
, updateFilter_rank
- Specifies the position of the filter in the list of current filters.
Also specifies the order in which this filter is applied to the
findings.
$sel:detectorId:UpdateFilter'
, updateFilter_detectorId
- The unique ID of the detector that specifies the GuardDuty service where
you want to update a filter.
$sel:filterName:UpdateFilter'
, updateFilter_filterName
- The name of the filter.
Request Lenses
updateFilter_findingCriteria :: Lens' UpdateFilter (Maybe FindingCriteria) Source #
Represents the criteria to be used in the filter for querying findings.
updateFilter_action :: Lens' UpdateFilter (Maybe FilterAction) Source #
Specifies the action that is to be applied to the findings that match the filter.
updateFilter_description :: Lens' UpdateFilter (Maybe Text) Source #
The description of the filter.
updateFilter_rank :: Lens' UpdateFilter (Maybe Natural) Source #
Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
updateFilter_detectorId :: Lens' UpdateFilter Text Source #
The unique ID of the detector that specifies the GuardDuty service where you want to update a filter.
updateFilter_filterName :: Lens' UpdateFilter Text Source #
The name of the filter.
Destructuring the Response
data UpdateFilterResponse Source #
See: newUpdateFilterResponse
smart constructor.
UpdateFilterResponse' | |
|
Instances
newUpdateFilterResponse Source #
:: Int | |
-> Text | |
-> UpdateFilterResponse |
Create a value of UpdateFilterResponse
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:UpdateFilterResponse'
, updateFilterResponse_httpStatus
- The response's http status code.
$sel:name:UpdateFilterResponse'
, updateFilterResponse_name
- The name of the filter.
Response Lenses
updateFilterResponse_httpStatus :: Lens' UpdateFilterResponse Int Source #
The response's http status code.
updateFilterResponse_name :: Lens' UpdateFilterResponse Text Source #
The name of the filter.