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 |
Creates and defines the settings for an allow list.
Synopsis
- data CreateAllowList = CreateAllowList' {
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- criteria :: AllowListCriteria
- clientToken :: Text
- name :: Text
- newCreateAllowList :: AllowListCriteria -> Text -> Text -> CreateAllowList
- createAllowList_description :: Lens' CreateAllowList (Maybe Text)
- createAllowList_tags :: Lens' CreateAllowList (Maybe (HashMap Text Text))
- createAllowList_criteria :: Lens' CreateAllowList AllowListCriteria
- createAllowList_clientToken :: Lens' CreateAllowList Text
- createAllowList_name :: Lens' CreateAllowList Text
- data CreateAllowListResponse = CreateAllowListResponse' {}
- newCreateAllowListResponse :: Int -> CreateAllowListResponse
- createAllowListResponse_arn :: Lens' CreateAllowListResponse (Maybe Text)
- createAllowListResponse_id :: Lens' CreateAllowListResponse (Maybe Text)
- createAllowListResponse_httpStatus :: Lens' CreateAllowListResponse Int
Creating a Request
data CreateAllowList Source #
See: newCreateAllowList
smart constructor.
CreateAllowList' | |
|
Instances
:: AllowListCriteria | |
-> Text | |
-> Text | |
-> CreateAllowList |
Create a value of CreateAllowList
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:
CreateAllowList
, createAllowList_description
- A custom description of the allow list. The description can contain as
many as 512 characters.
CreateAllowList
, createAllowList_tags
- A map of key-value pairs that specifies the tags to associate with the
allow list.
An allow list can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
$sel:criteria:CreateAllowList'
, createAllowList_criteria
- The criteria that specify the text or text pattern to ignore. The
criteria can be the location and name of an S3 object that lists
specific text to ignore (s3WordsList), or a regular expression (regex)
that defines a text pattern to ignore.
$sel:clientToken:CreateAllowList'
, createAllowList_clientToken
- A unique, case-sensitive token that you provide to ensure the
idempotency of the request.
CreateAllowList
, createAllowList_name
- A custom name for the allow list. The name can contain as many as 128
characters.
Request Lenses
createAllowList_description :: Lens' CreateAllowList (Maybe Text) Source #
A custom description of the allow list. The description can contain as many as 512 characters.
createAllowList_tags :: Lens' CreateAllowList (Maybe (HashMap Text Text)) Source #
A map of key-value pairs that specifies the tags to associate with the allow list.
An allow list can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
createAllowList_criteria :: Lens' CreateAllowList AllowListCriteria Source #
The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that defines a text pattern to ignore.
createAllowList_clientToken :: Lens' CreateAllowList Text Source #
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
createAllowList_name :: Lens' CreateAllowList Text Source #
A custom name for the allow list. The name can contain as many as 128 characters.
Destructuring the Response
data CreateAllowListResponse Source #
See: newCreateAllowListResponse
smart constructor.
Instances
newCreateAllowListResponse Source #
Create a value of CreateAllowListResponse
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:
CreateAllowListResponse
, createAllowListResponse_arn
- The Amazon Resource Name (ARN) of the allow list.
CreateAllowListResponse
, createAllowListResponse_id
- The unique identifier for the allow list.
$sel:httpStatus:CreateAllowListResponse'
, createAllowListResponse_httpStatus
- The response's http status code.
Response Lenses
createAllowListResponse_arn :: Lens' CreateAllowListResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the allow list.
createAllowListResponse_id :: Lens' CreateAllowListResponse (Maybe Text) Source #
The unique identifier for the allow list.
createAllowListResponse_httpStatus :: Lens' CreateAllowListResponse Int Source #
The response's http status code.