update_allow_list
async
¶
update_allow_list(
id: __string,
*,
config_overrides: Optional[AsyncMacie2ClientConfig] = None,
criteria: Optional[AllowListCriteria] = None,
description: Optional[__stringMin1Max512PatternSS] = None,
name: Optional[__stringMin1Max128Pattern] = None,
) -> UpdateAllowListResponse
Updates the settings for an allow list.
Parameters:
-
criteria(Optional[AllowListCriteria], default:None) –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.
-
description(Optional[__stringMin1Max512PatternSS], default:None) –A custom description of the allow list. The description can contain as many as 512 characters.
-
id(__string) –The unique identifier for the Amazon Macie resource that the request applies to.
-
name(Optional[__stringMin1Max128Pattern], default:None) –A custom name for the allow list. The name can contain as many as 128 characters.
Raises:
-
AccessDeniedException–Provides information about an error that occurred due to insufficient access to a specified resource.
-
InternalServerException–Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
-
ResourceNotFoundException–Provides information about an error that occurred because a specified resource wasn't found.
-
ThrottlingException–Provides information about an error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–Provides information about an error that occurred due to a syntax error in a request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_macie2/_services/async_macie2.py
4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 | |