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
#=> [:associate_connection_alias, :associate_ip_groups, :authorize_ip_rules, :copy_workspace_image, ...]
Each API operation method accepts a hash of request parameters and returns a response object.
resp = workspaces.associate_connection_alias(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.