put_retention_policy
(**kwargs)¶Puts a retention policy to the specified organization.
See also: AWS API Documentation
Request Syntax
response = client.put_retention_policy(
OrganizationId='string',
Id='string',
Name='string',
Description='string',
FolderConfigurations=[
{
'Name': 'INBOX'|'DELETED_ITEMS'|'SENT_ITEMS'|'DRAFTS'|'JUNK_EMAIL',
'Action': 'NONE'|'DELETE'|'PERMANENTLY_DELETE',
'Period': 123
},
]
)
[REQUIRED]
The organization ID.
[REQUIRED]
The retention policy name.
[REQUIRED]
The retention policy folder configurations.
The configuration applied to an organization's folders by its retention policy.
The folder name.
The action to take on the folder contents at the end of the folder configuration period.
The number of days for which the folder-configuration action applies.
dict
Response Syntax
{}
Response Structure
Exceptions
WorkMail.Client.exceptions.InvalidParameterException
WorkMail.Client.exceptions.OrganizationNotFoundException
WorkMail.Client.exceptions.OrganizationStateException
WorkMail.Client.exceptions.LimitExceededException