2020/02/04 - Amazon WorkMail - 3 new1 updated api methods
Changes Update workmail client to latest version
Lists the tags applied to an Amazon WorkMail organization resource.
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource( ResourceARN='string' )
string
[REQUIRED]
The resource ARN.
dict
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }
Response Structure
(dict) --
Tags (list) --
A list of tag key-value pairs.
(dict) --
Describes a tag applied to a resource.
Key (string) --
The key of the tag.
Value (string) --
The value of the tag.
Untags the specified tags from the specified Amazon WorkMail organization resource.
See also: AWS API Documentation
Request Syntax
client.untag_resource( ResourceARN='string', TagKeys=[ 'string', ] )
string
[REQUIRED]
The resource ARN.
list
[REQUIRED]
The tag keys.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Applies the specified tags to the specified Amazon WorkMail organization resource.
See also: AWS API Documentation
Request Syntax
client.tag_resource( ResourceARN='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
string
[REQUIRED]
The resource ARN.
list
[REQUIRED]
The tag key-value pairs.
(dict) --
Describes a tag applied to a resource.
Key (string) -- [REQUIRED]
The key of the tag.
Value (string) -- [REQUIRED]
The value of the tag.
dict
Response Syntax
{}
Response Structure
(dict) --
{'ARN': 'string'}
Provides more information regarding a given organization based on its identifier.
See also: AWS API Documentation
Request Syntax
client.describe_organization( OrganizationId='string' )
string
[REQUIRED]
The identifier for the organization to be described.
dict
Response Syntax
{ 'OrganizationId': 'string', 'Alias': 'string', 'State': 'string', 'DirectoryId': 'string', 'DirectoryType': 'string', 'DefaultMailDomain': 'string', 'CompletedDate': datetime(2015, 1, 1), 'ErrorMessage': 'string', 'ARN': 'string' }
Response Structure
(dict) --
OrganizationId (string) --
The identifier of an organization.
Alias (string) --
The alias for an organization.
State (string) --
The state of an organization.
DirectoryId (string) --
The identifier for the directory associated with an Amazon WorkMail organization.
DirectoryType (string) --
The type of directory associated with the WorkMail organization.
DefaultMailDomain (string) --
The default mail domain associated with the organization.
CompletedDate (datetime) --
The date at which the organization became usable in the WorkMail context, in UNIX epoch time format.
ErrorMessage (string) --
(Optional) The error message indicating if unexpected behavior was encountered with regards to the organization.
ARN (string) --
The Amazon Resource Name (ARN) of the organization.