Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-sdk-v1-reinteractive

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sdk-v1-reinteractive

  • 1.67.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

AWS SDK for Ruby - Version 1 Build Status

This is version 1 of the AWS SDK for Ruby. Version 2 can be found in the master branch.

Installation

Version 1 of the AWS SDK for Ruby is available on rubygems.org as two gems:

  • aws-sdk-v1
  • aws-sdk

This project uses semantic versioning. If you are using the aws-sdk gem, we strongly recommend you specify a version constraint in your Gemfile. Version 2 of the Ruby SDK will not be backwards compatible with version 1.

# version constraint
gem 'aws-sdk', '< 2'

# or use the v1 gem
gem 'aws-sdk-v1'

If you use the aws-sdk-v1 gem, you may also load the v2 Ruby SDK in the same process; The v2 Ruby SDK uses a different namespace, making this possible.

# when the v2 SDK ships, you will be able to do the following
gem 'aws-sdk', '~> 2.0'
gem 'aws-sdk-v1'

If you are currently using v1 of aws-sdk and you update to aws-sdk-v1, you may need to change how you require the Ruby SDK:

require 'aws-sdk-v1' # not 'aws-sdk'

If you are using a version of Ruby older than 1.9, you may encounter problems with Nokogiri. The authors dropped support for Ruby 1.8.x in Nokogiri 1.6. To use aws-sdk, you'll also have to install or specify a version of Nokogiri prior to 1.6, like this:

gem 'nokogiri', '~> 1.5.0'

Basic Configuration

You need to provide your AWS security credentials and choose a default region.

AWS.config(access_key_id: '...', secret_access_key: '...', region: 'us-west-2')

You can also specify these values via ENV:

export AWS_ACCESS_KEY_ID='...'
export AWS_SECRET_ACCESS_KEY='...'
export AWS_REGION='us-west-2'

Basic Usage

Each service provides a service interface and a client.

ec2 = AWS.ec2 #=> AWS::EC2
ec2.client #=> AWS::EC2::Client

The client provides one method for each API operation. The client methods accept a hash of request params and return a response with a hash of response data. The service interfaces provide a higher level abstration built using the client.

Example: list instance tags using a client

resp = ec2.client.describe_tags(filters: [{ name: "resource-id", values: ["i-12345678"] }])
resp[:tag_set].first
#=> {:resource_id=>"i-12345678", :resource_type=>"instance", :key=>"role", :value=>"web"}

Example: list instance tags using the AWS::EC2 higher level interface

ec2.instances['i-12345678'].tags.to_h
#=> {"role"=>"web"}

See the API Documentation for more examples.

Testing

All HTTP requests to live services can be globally mocked (e.g. from within the spec_helper.rb file):

AWS.stub!

Supported Services

The SDK currently supports the following services:

ClassAPI VersionAWS Service Name
AWS::AutoScaling2011-01-01Auto Scaling
AWS::CloudFormation2010-05-15AWS CloudFormation
AWS::CloudFront2013-05-12Amazon CloudFront
2013-08-26
2013-09-27
2013-11-11
2013-11-22
2014-01-31
2014-05-31
2014-10-21
2014-11-06
AWS::CloudSearch2011-02-01Amazon CloudSearch
2013-01-01
AWS::CloudTrail2013-11-01AWS CloudTrail
AWS::CloudWatch2010-08-01Amazon CloudWatch
AWS::DataPipeline2012-10-29AWS Data Pipeline
AWS::DirectConnect2012-10-25AWS Direct Connect
AWS::DynamoDB2011-12-05Amazon DynamoDB
2012-08-10
AWS::EC22013-08-15Amazon Elastic Compute Cloud
2013-10-01
2013-10-15
2014-02-01
2014-05-01
2014-09-01
2014-10-01
AWS::ElastiCache2013-06-15Amazon ElastiCache
2014-03-24
2014-07-15
2014-09-30
AWS::ElasticBeanstalk2010-12-01AWS Elastic Beanstalk
AWS::ElasticTranscoder2012-09-25Amazon Elastic Transcoder
AWS::ELB2012-06-01Elastic Load Balancing
AWS::EMR2009-03-31Amazon Elastic MapReduce
AWS::Glacier2012-06-01Amazon Glacier
AWS::IAM2010-05-08AWS Identity and Access Management
AWS::ImportExport2010-06-01AWS Import/Export
AWS::Kinesis2013-12-02Amazon Kinesis
AWS::OpsWorks2013-02-18AWS OpsWorks
AWS::RDS2013-05-15Amazon Relational Database Service (Beta)
2013-09-09
2014-09-01
AWS::Redshift2012-12-01Amazon Redshift
AWS::Route532012-12-12Amazon Route 53
2013-04-01
AWS::S32006-03-01Amazon Simple Storage Service
AWS::SimpleDB2009-04-15Amazon SimpleDB
AWS::SimpleEmailService2010-12-01Amazon Simple E-mail Service
AWS::SimpleWorkflow2012-01-25Amazon Simple Workflow Service
AWS::SNS2010-03-31Amazon Simple Notifications Service
AWS::SQS2012-11-05Amazon Simple Queue Service
AWS::StorageGateway2012-06-30AWS Storage Gateway
2013-06-30
AWS::STS2011-06-15AWS Security Token Service
AWS::Support2013-04-15AWS Support

License

This SDK is distributed under the Apache License, Version 2.0.

Copyright 2012. Amazon Web Services, Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

FAQs

Package last updated on 09 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc