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

Module: Aws::DirectConnect

Defined in:
(unknown)

Overview

This module provides a client for making API requests to AWS Direct Connect.

Aws::DirectConnect::Client

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

directconnect = Aws::DirectConnect::Client.new(region: 'us-east-1')
directconnect.operation_names
#=> [:allocate_connection_on_interconnect, :allocate_hosted_connection, :allocate_private_virtual_interface, :allocate_public_virtual_interface, ...]

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

resp = directconnect.allocate_connection_on_interconnect(params)

See Client for more information.

Aws::DirectConnect::Errors

Errors returned from AWS Direct Connect are defined in the Errors module and extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::DirectConnect::Errors::ServiceError
  # rescues all errors returned by AWS Direct Connect
end

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client