put_retention_policy
async
¶
put_retention_policy(
organization_id: OrganizationId,
name: ShortString,
folder_configurations: FolderConfigurations,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
id: Optional[ShortString] = None,
description: Optional[PolicyDescription] = None,
) -> PutRetentionPolicyResponse
Puts a retention policy to the specified organization.
Parameters:
-
organization_id(OrganizationId) –The organization ID.
-
id(Optional[ShortString], default:None) –The retention policy ID.
-
name(ShortString) –The retention policy name.
-
description(Optional[PolicyDescription], default:None) –The retention policy description.
-
folder_configurations(FolderConfigurations) –The retention policy folder configurations.
Raises:
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
LimitExceededException–The request exceeds the limit of the resource.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/async_work_mail.py
5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 | |