get_default_retention_policy
(**kwargs)¶Gets the default retention policy details for the specified organization.
See also: AWS API Documentation
Request Syntax
response = client.get_default_retention_policy(
OrganizationId='string'
)
[REQUIRED]
The organization ID.
{
'Id': 'string',
'Name': 'string',
'Description': 'string',
'FolderConfigurations': [
{
'Name': 'INBOX'|'DELETED_ITEMS'|'SENT_ITEMS'|'DRAFTS'|'JUNK_EMAIL',
'Action': 'NONE'|'DELETE'|'PERMANENTLY_DELETE',
'Period': 123
},
]
}
Response Structure
The retention policy ID.
The retention policy name.
The retention policy description.
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.
Exceptions
WorkMail.Client.exceptions.InvalidParameterException
WorkMail.Client.exceptions.OrganizationNotFoundException
WorkMail.Client.exceptions.OrganizationStateException
WorkMail.Client.exceptions.EntityNotFoundException