| 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.CreateThreatIntelSet
Description
Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.
Synopsis
- data CreateThreatIntelSet = CreateThreatIntelSet' {}
- newCreateThreatIntelSet :: Text -> Text -> ThreatIntelSetFormat -> Text -> Bool -> CreateThreatIntelSet
- createThreatIntelSet_clientToken :: Lens' CreateThreatIntelSet (Maybe Text)
- createThreatIntelSet_tags :: Lens' CreateThreatIntelSet (Maybe (HashMap Text Text))
- createThreatIntelSet_detectorId :: Lens' CreateThreatIntelSet Text
- createThreatIntelSet_name :: Lens' CreateThreatIntelSet Text
- createThreatIntelSet_format :: Lens' CreateThreatIntelSet ThreatIntelSetFormat
- createThreatIntelSet_location :: Lens' CreateThreatIntelSet Text
- createThreatIntelSet_activate :: Lens' CreateThreatIntelSet Bool
- data CreateThreatIntelSetResponse = CreateThreatIntelSetResponse' {}
- newCreateThreatIntelSetResponse :: Int -> Text -> CreateThreatIntelSetResponse
- createThreatIntelSetResponse_httpStatus :: Lens' CreateThreatIntelSetResponse Int
- createThreatIntelSetResponse_threatIntelSetId :: Lens' CreateThreatIntelSetResponse Text
Creating a Request
data CreateThreatIntelSet Source #
See: newCreateThreatIntelSet smart constructor.
Constructors
| CreateThreatIntelSet' | |
Fields
| |
Instances
newCreateThreatIntelSet Source #
Arguments
| :: Text | |
| -> Text | |
| -> ThreatIntelSetFormat | |
| -> Text | |
| -> Bool | |
| -> CreateThreatIntelSet |
Create a value of CreateThreatIntelSet 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:clientToken:CreateThreatIntelSet', createThreatIntelSet_clientToken - The idempotency token for the create request.
CreateThreatIntelSet, createThreatIntelSet_tags - The tags to be added to a new threat list resource.
CreateThreatIntelSet, createThreatIntelSet_detectorId - The unique ID of the detector of the GuardDuty account that you want to
create a threatIntelSet for.
CreateThreatIntelSet, createThreatIntelSet_name - A user-friendly ThreatIntelSet name displayed in all findings that are
generated by activity that involves IP addresses included in this
ThreatIntelSet.
$sel:format:CreateThreatIntelSet', createThreatIntelSet_format - The format of the file that contains the ThreatIntelSet.
$sel:location:CreateThreatIntelSet', createThreatIntelSet_location - The URI of the file that contains the ThreatIntelSet.
$sel:activate:CreateThreatIntelSet', createThreatIntelSet_activate - A Boolean value that indicates whether GuardDuty is to start using the
uploaded ThreatIntelSet.
Request Lenses
createThreatIntelSet_clientToken :: Lens' CreateThreatIntelSet (Maybe Text) Source #
The idempotency token for the create request.
createThreatIntelSet_tags :: Lens' CreateThreatIntelSet (Maybe (HashMap Text Text)) Source #
The tags to be added to a new threat list resource.
createThreatIntelSet_detectorId :: Lens' CreateThreatIntelSet Text Source #
The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.
createThreatIntelSet_name :: Lens' CreateThreatIntelSet Text Source #
A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
createThreatIntelSet_format :: Lens' CreateThreatIntelSet ThreatIntelSetFormat Source #
The format of the file that contains the ThreatIntelSet.
createThreatIntelSet_location :: Lens' CreateThreatIntelSet Text Source #
The URI of the file that contains the ThreatIntelSet.
createThreatIntelSet_activate :: Lens' CreateThreatIntelSet Bool Source #
A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
Destructuring the Response
data CreateThreatIntelSetResponse Source #
See: newCreateThreatIntelSetResponse smart constructor.
Constructors
| CreateThreatIntelSetResponse' | |
Fields
| |
Instances
newCreateThreatIntelSetResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> CreateThreatIntelSetResponse |
Create a value of CreateThreatIntelSetResponse 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:CreateThreatIntelSetResponse', createThreatIntelSetResponse_httpStatus - The response's http status code.
$sel:threatIntelSetId:CreateThreatIntelSetResponse', createThreatIntelSetResponse_threatIntelSetId - The ID of the ThreatIntelSet resource.
Response Lenses
createThreatIntelSetResponse_httpStatus :: Lens' CreateThreatIntelSetResponse Int Source #
The response's http status code.
createThreatIntelSetResponse_threatIntelSetId :: Lens' CreateThreatIntelSetResponse Text Source #
The ID of the ThreatIntelSet resource.