| 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.GuardDuty.GetFilter
Description
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.
Constructors
| GetFilter' | |
Fields
| |
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:
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.
Constructors
| GetFilterResponse' | |
Fields
| |
Instances
Arguments
| :: 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:
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.
GetFilterResponse, getFilterResponse_tags - The tags of the filter resource.
$sel:httpStatus:GetFilterResponse', getFilterResponse_httpStatus - The response's http status code.
GetFilterResponse, getFilterResponse_name - The name of the filter.
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.