You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Module: Aws::WorkMail

Defined in:
(unknown)

Overview

This module provides a client for making API requests to Amazon WorkMail.

Aws::WorkMail::Client

The Client class provides one-to-one mapping for each API operation.

workmail = Aws::WorkMail::Client.new(region: 'us-east-1')
workmail.operation_names
#=> [:associate_delegate_to_resource, :associate_member_to_group, :cancel_mailbox_export_job, :create_alias, ...]

Each API operation method accepts a hash of request parameters and returns a response object.

resp = workmail.associate_delegate_to_resource(params)

See Client for more information.

Aws::WorkMail::Errors

Errors returned from Amazon WorkMail are defined in the Errors module and extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::WorkMail::Errors::ServiceError
  # rescues all errors returned by Amazon WorkMail
end

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client