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

Module: Aws::WorkSpaces

Defined in:
(unknown)

Overview

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

Aws::WorkSpaces::Client

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

workspaces = Aws::WorkSpaces::Client.new(region: 'us-east-1')
workspaces.operation_names
#=> [:create_tags, :create_workspaces, :delete_tags, :describe_tags, ...]

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

resp = workspaces.create_tags(params)

See Client for more information.

Aws::WorkSpaces::Errors

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

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

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client