2020/05/28 - Amazon WorkMail - 3 new api methods
Changes Update workmail client to latest version
Puts a retention policy to the specified organization.
See also: AWS API Documentation
Request Syntax
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
},
]
)
string
[REQUIRED]
The organization ID.
string
The retention policy ID.
string
[REQUIRED]
The retention policy name.
string
The retention policy description.
list
[REQUIRED]
The retention policy folder configurations.
(dict) --
The configuration applied to an organization's folders by its retention policy.
Name (string) -- [REQUIRED]
The folder name.
Action (string) -- [REQUIRED]
The action to take on the folder contents at the end of the folder configuration period.
Period (integer) --
The period of time at which the folder configuration action is applied.
dict
Response Syntax
{}
Response Structure
(dict) --
Gets the default retention policy details for the specified organization.
See also: AWS API Documentation
Request Syntax
client.get_default_retention_policy(
OrganizationId='string'
)
string
[REQUIRED]
The organization ID.
dict
Response Syntax
{
'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
(dict) --
Id (string) --
The retention policy ID.
Name (string) --
The retention policy name.
Description (string) --
The retention policy description.
FolderConfigurations (list) --
The retention policy folder configurations.
(dict) --
The configuration applied to an organization's folders by its retention policy.
Name (string) --
The folder name.
Action (string) --
The action to take on the folder contents at the end of the folder configuration period.
Period (integer) --
The period of time at which the folder configuration action is applied.
Deletes the specified retention policy from the specified organization.
See also: AWS API Documentation
Request Syntax
client.delete_retention_policy(
OrganizationId='string',
Id='string'
)
string
[REQUIRED]
The organization ID.
string
[REQUIRED]
The retention policy ID.
dict
Response Syntax
{}
Response Structure
(dict) --