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 |
Creates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP addresses that are trusted for secure communication with AWS infrastructure and applications. GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the administrator account can use this operation.
Synopsis
- data CreateIPSet = CreateIPSet' {}
- newCreateIPSet :: Text -> Text -> IpSetFormat -> Text -> Bool -> CreateIPSet
- createIPSet_clientToken :: Lens' CreateIPSet (Maybe Text)
- createIPSet_tags :: Lens' CreateIPSet (Maybe (HashMap Text Text))
- createIPSet_detectorId :: Lens' CreateIPSet Text
- createIPSet_name :: Lens' CreateIPSet Text
- createIPSet_format :: Lens' CreateIPSet IpSetFormat
- createIPSet_location :: Lens' CreateIPSet Text
- createIPSet_activate :: Lens' CreateIPSet Bool
- data CreateIPSetResponse = CreateIPSetResponse' {
- httpStatus :: Int
- ipSetId :: Text
- newCreateIPSetResponse :: Int -> Text -> CreateIPSetResponse
- createIPSetResponse_httpStatus :: Lens' CreateIPSetResponse Int
- createIPSetResponse_ipSetId :: Lens' CreateIPSetResponse Text
Creating a Request
data CreateIPSet Source #
See: newCreateIPSet
smart constructor.
CreateIPSet' | |
|
Instances
:: Text | |
-> Text | |
-> IpSetFormat | |
-> Text | |
-> Bool | |
-> CreateIPSet |
Create a value of CreateIPSet
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:CreateIPSet'
, createIPSet_clientToken
- The idempotency token for the create request.
$sel:tags:CreateIPSet'
, createIPSet_tags
- The tags to be added to a new IP set resource.
$sel:detectorId:CreateIPSet'
, createIPSet_detectorId
- The unique ID of the detector of the GuardDuty account that you want to
create an IPSet for.
$sel:name:CreateIPSet'
, createIPSet_name
- The user-friendly name to identify the IPSet.
Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).
$sel:format:CreateIPSet'
, createIPSet_format
- The format of the file that contains the IPSet.
$sel:location:CreateIPSet'
, createIPSet_location
- The URI of the file that contains the IPSet. For example:
https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
$sel:activate:CreateIPSet'
, createIPSet_activate
- A Boolean value that indicates whether GuardDuty is to start using the
uploaded IPSet.
Request Lenses
createIPSet_clientToken :: Lens' CreateIPSet (Maybe Text) Source #
The idempotency token for the create request.
createIPSet_tags :: Lens' CreateIPSet (Maybe (HashMap Text Text)) Source #
The tags to be added to a new IP set resource.
createIPSet_detectorId :: Lens' CreateIPSet Text Source #
The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.
createIPSet_name :: Lens' CreateIPSet Text Source #
The user-friendly name to identify the IPSet.
Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).
createIPSet_format :: Lens' CreateIPSet IpSetFormat Source #
The format of the file that contains the IPSet.
createIPSet_location :: Lens' CreateIPSet Text Source #
The URI of the file that contains the IPSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
createIPSet_activate :: Lens' CreateIPSet Bool Source #
A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet.
Destructuring the Response
data CreateIPSetResponse Source #
See: newCreateIPSetResponse
smart constructor.
CreateIPSetResponse' | |
|
Instances
newCreateIPSetResponse Source #
:: Int | |
-> Text | |
-> CreateIPSetResponse |
Create a value of CreateIPSetResponse
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:CreateIPSetResponse'
, createIPSetResponse_httpStatus
- The response's http status code.
$sel:ipSetId:CreateIPSetResponse'
, createIPSetResponse_ipSetId
- The ID of the IPSet resource.
Response Lenses
createIPSetResponse_httpStatus :: Lens' CreateIPSetResponse Int Source #
The response's http status code.
createIPSetResponse_ipSetId :: Lens' CreateIPSetResponse Text Source #
The ID of the IPSet resource.