Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

create_resource

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'
)
Parameters
  • OrganizationId (string) --

    [REQUIRED]

    The identifier associated with the organization for which the resource is created.

  • Name (string) --

    [REQUIRED]

    The name of the new resource.

  • Type (string) --

    [REQUIRED]

    The type of the new resource. The available types are equipment and room .

Return type

dict

Returns

Response Syntax

{
    'ResourceId': 'string'
}

Response Structure

  • (dict) --

    • ResourceId (string) --

      The identifier of the new resource.

Exceptions

  • WorkMail.Client.exceptions.DirectoryServiceAuthenticationFailedException
  • WorkMail.Client.exceptions.DirectoryUnavailableException
  • WorkMail.Client.exceptions.InvalidParameterException
  • WorkMail.Client.exceptions.NameAvailabilityException
  • WorkMail.Client.exceptions.OrganizationNotFoundException
  • WorkMail.Client.exceptions.OrganizationStateException
  • WorkMail.Client.exceptions.ReservedNameException