Getting readable information from Amazon sdk ruby -


maybe me issue while working amazon sdk ruby.

when trying retrieve information commands "get_bucket_login" or "get_bucket_location" response is:

<seahorse::client::response:....> 

according documentation, these requests should return strings. missing? found same issue?

seahorse part of core of sdk: https://github.com/aws/aws-sdk-ruby/tree/master/aws-sdk-core/lib/seahorse

the clients of services modeled use base of this.

now question:
"empty" response in not conform client base used to.

=== get_bucket_location ===

the way bucket location following:

resp = s3.get_bucket_location(bucket: "mybucketname") puts resp.data.location_constraint 

empty string means standard, per documentation here: http://docs.aws.amazon.com/amazons3/latest/api/restbucketgetlocation.html

the code monkey patches in here: https://github.com/aws/aws-sdk-ruby/blob/53712d3e4583c982837fb3a301fa2c67226a05ff/aws-sdk-core/lib/aws-sdk-core/plugins/s3_get_bucket_location_fix.rb

== get_bucket_login ==

i don't see method on client. if it's logging instead of login, can see response structure in documentation: http://docs.aws.amazon.com/sdkforruby/api/aws/s3/client.html#get_bucket_logging-instance_method


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -