create_archive
¶
create_archive(
archive_name: ArchiveNameString,
*,
config_overrides: Optional[MailManagerClientConfig] = 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/mail_manager.py
2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 | |