update_archive
¶
update_archive(
archive_id: ArchiveIdString,
*,
config_overrides: Optional[MailManagerClientConfig] = None,
archive_name: Optional[ArchiveNameString] = None,
retention: Optional[ArchiveRetention] = None,
) -> UpdateArchiveResponse
Updates the attributes of an existing email archive.
Parameters:
-
archive_id(ArchiveIdString) –The identifier of the archive to update.
-
archive_name(Optional[ArchiveNameString], default:None) –A new, unique name for the archive.
-
retention(Optional[ArchiveRetention], default:None) –A new retention period for emails in the archive.
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.
-
ResourceNotFoundException–Occurs when a requested resource is not found.
-
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
2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 | |