create_archive
async
¶
create_archive(
archive_name: ArchiveNameString,
*,
config_overrides: Optional[AsyncMailManagerClientConfig] = None,
client_token: Optional[IdempotencyToken] = None,
retention: Optional[ArchiveRetention] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
tags: Optional[TagList] = None,
) -> CreateArchiveResponse
Creates a new email archive resource for storing and retaining emails.
Parameters:
-
client_token(Optional[IdempotencyToken], default:None) –A unique token Amazon SES uses to recognize retries of this request.
-
archive_name(ArchiveNameString) –A unique name for the new archive.
-
retention(Optional[ArchiveRetention], default:None) –The period for retaining emails in the archive before automatic deletion.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.
-
tags(Optional[TagList], default:None) –The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
AccessDeniedException–Occurs when a user is denied access to a specific resource or action.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
ServiceQuotaExceededException–Occurs when an operation exceeds a predefined service quota or limit.
-
ThrottlingException–Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
-
ValidationException–The request validation has failed. For details, see the accompanying error message.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mailmanager/_services/async_mail_manager.py
2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 | |