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 |
Updates the settings for an allow list.
Synopsis
- data UpdateAllowList = UpdateAllowList' {
- description :: Maybe Text
- id :: Text
- criteria :: AllowListCriteria
- name :: Text
- newUpdateAllowList :: Text -> AllowListCriteria -> Text -> UpdateAllowList
- updateAllowList_description :: Lens' UpdateAllowList (Maybe Text)
- updateAllowList_id :: Lens' UpdateAllowList Text
- updateAllowList_criteria :: Lens' UpdateAllowList AllowListCriteria
- updateAllowList_name :: Lens' UpdateAllowList Text
- data UpdateAllowListResponse = UpdateAllowListResponse' {}
- newUpdateAllowListResponse :: Int -> UpdateAllowListResponse
- updateAllowListResponse_arn :: Lens' UpdateAllowListResponse (Maybe Text)
- updateAllowListResponse_id :: Lens' UpdateAllowListResponse (Maybe Text)
- updateAllowListResponse_httpStatus :: Lens' UpdateAllowListResponse Int
Creating a Request
data UpdateAllowList Source #
See: newUpdateAllowList
smart constructor.
UpdateAllowList' | |
|
Instances
:: Text | |
-> AllowListCriteria | |
-> Text | |
-> UpdateAllowList |
Create a value of UpdateAllowList
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:
UpdateAllowList
, updateAllowList_description
- A custom description of the allow list. The description can contain as
many as 512 characters.
UpdateAllowList
, updateAllowList_id
- The unique identifier for the Amazon Macie resource that the request
applies to.
$sel:criteria:UpdateAllowList'
, updateAllowList_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 that
defines a text pattern to ignore (regex).
You can change a list's underlying criteria, such as the name of the S3 object or the regular expression to use. However, you can't change the type from s3WordsList to regex or the other way around.
UpdateAllowList
, updateAllowList_name
- A custom name for the allow list. The name can contain as many as 128
characters.
Request Lenses
updateAllowList_description :: Lens' UpdateAllowList (Maybe Text) Source #
A custom description of the allow list. The description can contain as many as 512 characters.
updateAllowList_id :: Lens' UpdateAllowList Text Source #
The unique identifier for the Amazon Macie resource that the request applies to.
updateAllowList_criteria :: Lens' UpdateAllowList 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 that defines a text pattern to ignore (regex).
You can change a list's underlying criteria, such as the name of the S3 object or the regular expression to use. However, you can't change the type from s3WordsList to regex or the other way around.
updateAllowList_name :: Lens' UpdateAllowList Text Source #
A custom name for the allow list. The name can contain as many as 128 characters.
Destructuring the Response
data UpdateAllowListResponse Source #
See: newUpdateAllowListResponse
smart constructor.
Instances
newUpdateAllowListResponse Source #
Create a value of UpdateAllowListResponse
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:
UpdateAllowListResponse
, updateAllowListResponse_arn
- The Amazon Resource Name (ARN) of the allow list.
UpdateAllowList
, updateAllowListResponse_id
- The unique identifier for the allow list.
$sel:httpStatus:UpdateAllowListResponse'
, updateAllowListResponse_httpStatus
- The response's http status code.
Response Lenses
updateAllowListResponse_arn :: Lens' UpdateAllowListResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the allow list.
updateAllowListResponse_id :: Lens' UpdateAllowListResponse (Maybe Text) Source #
The unique identifier for the allow list.
updateAllowListResponse_httpStatus :: Lens' UpdateAllowListResponse Int Source #
The response's http status code.