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 |
Creates a filter resource using specified filter criteria.
Synopsis
- data CreateFilter = CreateFilter' {
- description :: Maybe Text
- reason :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- action :: FilterAction
- filterCriteria :: FilterCriteria
- name :: Text
- newCreateFilter :: FilterAction -> FilterCriteria -> Text -> CreateFilter
- createFilter_description :: Lens' CreateFilter (Maybe Text)
- createFilter_reason :: Lens' CreateFilter (Maybe Text)
- createFilter_tags :: Lens' CreateFilter (Maybe (HashMap Text Text))
- createFilter_action :: Lens' CreateFilter FilterAction
- createFilter_filterCriteria :: Lens' CreateFilter FilterCriteria
- createFilter_name :: Lens' CreateFilter Text
- data CreateFilterResponse = CreateFilterResponse' {
- httpStatus :: Int
- arn :: Text
- newCreateFilterResponse :: Int -> Text -> CreateFilterResponse
- createFilterResponse_httpStatus :: Lens' CreateFilterResponse Int
- createFilterResponse_arn :: Lens' CreateFilterResponse Text
Creating a Request
data CreateFilter Source #
See: newCreateFilter
smart constructor.
CreateFilter' | |
|
Instances
:: FilterAction | |
-> FilterCriteria | |
-> Text | |
-> CreateFilter |
Create a value of CreateFilter
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:
CreateFilter
, createFilter_description
- A description of the filter.
CreateFilter
, createFilter_reason
- The reason for creating the filter.
CreateFilter
, createFilter_tags
- A list of tags for the filter.
CreateFilter
, createFilter_action
- Defines the action that is to be applied to the findings that match the
filter.
$sel:filterCriteria:CreateFilter'
, createFilter_filterCriteria
- Defines the criteria to be used in the filter for querying findings.
CreateFilter
, createFilter_name
- The name of the filter. Minimum length of 3. Maximum length of 64. Valid
characters include alphanumeric characters, dot (.), underscore (_), and
dash (-). Spaces are not allowed.
Request Lenses
createFilter_description :: Lens' CreateFilter (Maybe Text) Source #
A description of the filter.
createFilter_reason :: Lens' CreateFilter (Maybe Text) Source #
The reason for creating the filter.
createFilter_tags :: Lens' CreateFilter (Maybe (HashMap Text Text)) Source #
A list of tags for the filter.
createFilter_action :: Lens' CreateFilter FilterAction Source #
Defines the action that is to be applied to the findings that match the filter.
createFilter_filterCriteria :: Lens' CreateFilter FilterCriteria Source #
Defines the criteria to be used in the filter for querying findings.
createFilter_name :: Lens' CreateFilter Text Source #
The name of the filter. Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.
Destructuring the Response
data CreateFilterResponse Source #
See: newCreateFilterResponse
smart constructor.
CreateFilterResponse' | |
|
Instances
newCreateFilterResponse Source #
Create a value of CreateFilterResponse
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:CreateFilterResponse'
, createFilterResponse_httpStatus
- The response's http status code.
CreateFilterResponse
, createFilterResponse_arn
- The Amazon Resource Number (ARN) of the successfully created filter.
Response Lenses
createFilterResponse_httpStatus :: Lens' CreateFilterResponse Int Source #
The response's http status code.
createFilterResponse_arn :: Lens' CreateFilterResponse Text Source #
The Amazon Resource Number (ARN) of the successfully created filter.