class AWS::DirectConnect
This class is the starting point for working with AWS
Import/Export.
To use AWS
Direct Connect you must first [sign up here](aws.amazon.com/directconnect/).
For more information about AWS
AWS
Direct Connect:
-
[AWS Direct Connect](aws.amazon.com/directconnect/)
-
[AWS Direct Connect Documentation](aws.amazon.com/documentation/directconnect/)
# Credentials
You can setup default credentials for all AWS
services via AWS.config
:
AWS.config( :access_key_id => 'YOUR_ACCESS_KEY_ID', :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
Or you can set them directly on the AWS::DirectConnect
interface:
dc = AWS::DirectConnect.new( :access_key_id => 'YOUR_ACCESS_KEY_ID', :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
# Using the Client
AWS::DirectConnect
does not provide higher level abstractions for at this time. You can still access all of the API methods using {AWS::DirectConnect::Client}. Here is how you access the client and make a simple request:
dc = AWS::DirectConnect.new resp = dc.client.describe_connections resp[:connections].each do |connection| # ... end
See {Client} for documentation on all of the supported operations.
@!attribute [r] client
@return [Client] the low-level DirectConnect client object