From 0b7a69308f1d661a283590c161d496f6c1101c9a Mon Sep 17 00:00:00 2001 From: Harry Lascelles Date: Wed, 20 Apr 2016 12:56:42 +0100 Subject: [PATCH] Adding ruby aws-sdk v2 documentation --- README.md | 45 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c77ab71..ee5c1c8 100644 --- a/README.md +++ b/README.md @@ -80,15 +80,42 @@ The following examples assume all the default configuration parameters are used. ### Ruby - AWS.config(:access_key_id => 'x', - :secret_access_key => 'x', - :region => 'yopa-local', - :use_ssl => false, - :sqs_endpoint => 'localhost', - :sqs_port => 47195, - :sns_endpoint => 'localhost', - :sns_port => 47196) - + ``` + # AWS SDK v1 + AWS.config( + access_key_id: 'x', + secret_access_key: 'x', + region: 'us-west-1', + use_ssl: false, + s3_force_path_style: true, + s3_endpoint: 'localhost', + s3_port: 47197, + sqs_endpoint: 'localhost', + sqs_port: 47195, + sns_endpoint: 'localhost', + sns_port: 47196 + ) + ``` + + ``` + # AWS SDK v2 + Aws.config.update( + access_key_id: 'x', + secret_access_key: 'x', + region: 'us-west-1', + use_ssl: false, + s3: { + force_path_style: true, + endpoint: 'http://localhost:47197' + }, + sqs: { + endpoint: 'http://localhost:47195' + }, + sns: { + endpoint: 'http://localhost:47196' + } + ) + ``` ### JVM