| 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 |
Amazonka.Inspector2.UpdateFilter
Description
Specifies the action that is to be applied to the findings that match the filter.
Synopsis
- data UpdateFilter = UpdateFilter' {}
- newUpdateFilter :: Text -> UpdateFilter
- updateFilter_action :: Lens' UpdateFilter (Maybe FilterAction)
- updateFilter_description :: Lens' UpdateFilter (Maybe Text)
- updateFilter_filterCriteria :: Lens' UpdateFilter (Maybe FilterCriteria)
- updateFilter_name :: Lens' UpdateFilter (Maybe Text)
- updateFilter_reason :: Lens' UpdateFilter (Maybe Text)
- updateFilter_filterArn :: Lens' UpdateFilter Text
- data UpdateFilterResponse = UpdateFilterResponse' {
- httpStatus :: Int
- arn :: Text
- newUpdateFilterResponse :: Int -> Text -> UpdateFilterResponse
- updateFilterResponse_httpStatus :: Lens' UpdateFilterResponse Int
- updateFilterResponse_arn :: Lens' UpdateFilterResponse Text
Creating a Request
data UpdateFilter Source #
See: newUpdateFilter smart constructor.
Constructors
| UpdateFilter' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateFilter |
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:
UpdateFilter, updateFilter_action - Specifies the action that is to be applied to the findings that match
the filter.
UpdateFilter, updateFilter_description - A description of the filter.
$sel:filterCriteria:UpdateFilter', updateFilter_filterCriteria - Defines the criteria to be update in the filter.
UpdateFilter, updateFilter_name - The name of the filter.
UpdateFilter, updateFilter_reason - The reason the filter was updated.
$sel:filterArn:UpdateFilter', updateFilter_filterArn - The Amazon Resource Number (ARN) of the filter to update.
Request Lenses
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 #
A description of the filter.
updateFilter_filterCriteria :: Lens' UpdateFilter (Maybe FilterCriteria) Source #
Defines the criteria to be update in the filter.
updateFilter_name :: Lens' UpdateFilter (Maybe Text) Source #
The name of the filter.
updateFilter_reason :: Lens' UpdateFilter (Maybe Text) Source #
The reason the filter was updated.
updateFilter_filterArn :: Lens' UpdateFilter Text Source #
The Amazon Resource Number (ARN) of the filter to update.
Destructuring the Response
data UpdateFilterResponse Source #
See: newUpdateFilterResponse smart constructor.
Constructors
| UpdateFilterResponse' | |
Fields
| |
Instances
newUpdateFilterResponse Source #
Arguments
| :: 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.
UpdateFilterResponse, updateFilterResponse_arn - The Amazon Resource Number (ARN) of the successfully updated filter.
Response Lenses
updateFilterResponse_httpStatus :: Lens' UpdateFilterResponse Int Source #
The response's http status code.
updateFilterResponse_arn :: Lens' UpdateFilterResponse Text Source #
The Amazon Resource Number (ARN) of the successfully updated filter.