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
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 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 | |