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
3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 | |