WorkMail.Client.create_resource(**kwargs)¶Creates a new WorkMail resource.
See also: AWS API Documentation
Request Syntax
response = client.create_resource(
OrganizationId='string',
Name='string',
Type='ROOM'|'EQUIPMENT'
)
[REQUIRED]
The identifier associated with the organization for which the resource is created.
[REQUIRED]
The name of the new resource.
[REQUIRED]
The type of the new resource. The available types are equipment and room .
dict
Response Syntax
{
'ResourceId': 'string'
}
Response Structure
(dict) --
ResourceId (string) --
The identifier of the new resource.
Exceptions
WorkMail.Client.exceptions.DirectoryServiceAuthenticationFailedExceptionWorkMail.Client.exceptions.DirectoryUnavailableExceptionWorkMail.Client.exceptions.InvalidParameterExceptionWorkMail.Client.exceptions.NameAvailabilityExceptionWorkMail.Client.exceptions.OrganizationNotFoundExceptionWorkMail.Client.exceptions.OrganizationStateExceptionWorkMail.Client.exceptions.ReservedNameException