Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a filter using the specified finding criteria.
- createFilter :: Text -> CreateFilter
- data CreateFilter
- cfClientToken :: Lens' CreateFilter (Maybe Text)
- cfFindingCriteria :: Lens' CreateFilter (Maybe FindingCriteria)
- cfAction :: Lens' CreateFilter (Maybe FilterAction)
- cfName :: Lens' CreateFilter (Maybe Text)
- cfDescription :: Lens' CreateFilter (Maybe Text)
- cfRank :: Lens' CreateFilter (Maybe Int)
- cfDetectorId :: Lens' CreateFilter Text
- createFilterResponse :: Int -> CreateFilterResponse
- data CreateFilterResponse
- cfrsName :: Lens' CreateFilterResponse (Maybe Text)
- cfrsResponseStatus :: Lens' CreateFilterResponse Int
Creating a Request
Creates a value of CreateFilter
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfClientToken
- The idempotency token for the create request.cfFindingCriteria
- Represents the criteria to be used in the filter for querying findings.cfAction
- Specifies the action that is to be applied to the findings that match the filter.cfName
- The name of the filter.cfDescription
- The description of the filter.cfRank
- 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.cfDetectorId
- The unique ID of the detector that you want to update.
data CreateFilter Source #
CreateFilterRequest request body.
See: createFilter
smart constructor.
Request Lenses
cfClientToken :: Lens' CreateFilter (Maybe Text) Source #
The idempotency token for the create request.
cfFindingCriteria :: Lens' CreateFilter (Maybe FindingCriteria) Source #
Represents the criteria to be used in the filter for querying findings.
cfAction :: Lens' CreateFilter (Maybe FilterAction) Source #
Specifies the action that is to be applied to the findings that match the filter.
cfDescription :: Lens' CreateFilter (Maybe Text) Source #
The description of the filter.
cfRank :: Lens' CreateFilter (Maybe Int) 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.
cfDetectorId :: Lens' CreateFilter Text Source #
The unique ID of the detector that you want to update.
Destructuring the Response
Creates a value of CreateFilterResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfrsName
- The name of the successfully created filter.cfrsResponseStatus
- -- | The response status code.
data CreateFilterResponse Source #
See: createFilterResponse
smart constructor.
Response Lenses
cfrsName :: Lens' CreateFilterResponse (Maybe Text) Source #
The name of the successfully created filter.
cfrsResponseStatus :: Lens' CreateFilterResponse Int Source #
- - | The response status code.