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
2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 | |