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 |
Returns the details of the filter specified by the filter name.
Synopsis
- data GetFilter = GetFilter' {
- detectorId :: Text
- filterName :: Text
- newGetFilter :: Text -> Text -> GetFilter
- getFilter_detectorId :: Lens' GetFilter Text
- getFilter_filterName :: Lens' GetFilter Text
- data GetFilterResponse = GetFilterResponse' {
- description :: Maybe Text
- rank :: Maybe Natural
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- name :: Text
- action :: FilterAction
- findingCriteria :: FindingCriteria
- newGetFilterResponse :: Int -> Text -> FilterAction -> FindingCriteria -> GetFilterResponse
- getFilterResponse_description :: Lens' GetFilterResponse (Maybe Text)
- getFilterResponse_rank :: Lens' GetFilterResponse (Maybe Natural)
- getFilterResponse_tags :: Lens' GetFilterResponse (Maybe (HashMap Text Text))
- getFilterResponse_httpStatus :: Lens' GetFilterResponse Int
- getFilterResponse_name :: Lens' GetFilterResponse Text
- getFilterResponse_action :: Lens' GetFilterResponse FilterAction
- getFilterResponse_findingCriteria :: Lens' GetFilterResponse FindingCriteria
Creating a Request
See: newGetFilter
smart constructor.
GetFilter' | |
|
Instances
Create a value of GetFilter
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:detectorId:GetFilter'
, getFilter_detectorId
- The unique ID of the detector that the filter is associated with.
$sel:filterName:GetFilter'
, getFilter_filterName
- The name of the filter you want to get.
Request Lenses
getFilter_detectorId :: Lens' GetFilter Text Source #
The unique ID of the detector that the filter is associated with.
Destructuring the Response
data GetFilterResponse Source #
See: newGetFilterResponse
smart constructor.
GetFilterResponse' | |
|
Instances
:: Int | |
-> Text | |
-> FilterAction | |
-> FindingCriteria | |
-> GetFilterResponse |
Create a value of GetFilterResponse
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:description:GetFilterResponse'
, getFilterResponse_description
- The description of the filter.
$sel:rank:GetFilterResponse'
, getFilterResponse_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:tags:GetFilterResponse'
, getFilterResponse_tags
- The tags of the filter resource.
$sel:httpStatus:GetFilterResponse'
, getFilterResponse_httpStatus
- The response's http status code.
$sel:name:GetFilterResponse'
, getFilterResponse_name
- The name of the filter.
$sel:action:GetFilterResponse'
, getFilterResponse_action
- Specifies the action that is to be applied to the findings that match
the filter.
$sel:findingCriteria:GetFilterResponse'
, getFilterResponse_findingCriteria
- Represents the criteria to be used in the filter for querying findings.
Response Lenses
getFilterResponse_description :: Lens' GetFilterResponse (Maybe Text) Source #
The description of the filter.
getFilterResponse_rank :: Lens' GetFilterResponse (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.
getFilterResponse_tags :: Lens' GetFilterResponse (Maybe (HashMap Text Text)) Source #
The tags of the filter resource.
getFilterResponse_httpStatus :: Lens' GetFilterResponse Int Source #
The response's http status code.
getFilterResponse_name :: Lens' GetFilterResponse Text Source #
The name of the filter.
getFilterResponse_action :: Lens' GetFilterResponse FilterAction Source #
Specifies the action that is to be applied to the findings that match the filter.
getFilterResponse_findingCriteria :: Lens' GetFilterResponse FindingCriteria Source #
Represents the criteria to be used in the filter for querying findings.