aws-sdk-core 2.2.34 → 2.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ {
2
+ "version": "1.0",
3
+ "examples": {
4
+ }
5
+ }
@@ -158,6 +158,15 @@
158
158
  "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/multiobjectdeleteapi.html",
159
159
  "alias":"DeleteMultipleObjects"
160
160
  },
161
+ "GetBucketAccelerateConfiguration":{
162
+ "name":"GetBucketAccelerateConfiguration",
163
+ "http":{
164
+ "method":"GET",
165
+ "requestUri":"/{Bucket}?accelerate"
166
+ },
167
+ "input":{"shape":"GetBucketAccelerateConfigurationRequest"},
168
+ "output":{"shape":"GetBucketAccelerateConfigurationOutput"}
169
+ },
161
170
  "GetBucketAcl":{
162
171
  "name":"GetBucketAcl",
163
172
  "http":{
@@ -413,6 +422,14 @@
413
422
  "output":{"shape":"ListPartsOutput"},
414
423
  "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadListParts.html"
415
424
  },
425
+ "PutBucketAccelerateConfiguration":{
426
+ "name":"PutBucketAccelerateConfiguration",
427
+ "http":{
428
+ "method":"PUT",
429
+ "requestUri":"/{Bucket}?accelerate"
430
+ },
431
+ "input":{"shape":"PutBucketAccelerateConfigurationRequest"}
432
+ },
416
433
  "PutBucketAcl":{
417
434
  "name":"PutBucketAcl",
418
435
  "http":{
@@ -636,6 +653,12 @@
636
653
  }
637
654
  },
638
655
  "AbortRuleId":{"type":"string"},
656
+ "AccelerateConfiguration":{
657
+ "type":"structure",
658
+ "members":{
659
+ "Status":{"shape":"BucketAccelerateStatus"}
660
+ }
661
+ },
639
662
  "AcceptRanges":{"type":"string"},
640
663
  "AccessControlPolicy":{
641
664
  "type":"structure",
@@ -673,6 +696,13 @@
673
696
  "CreationDate":{"shape":"CreationDate"}
674
697
  }
675
698
  },
699
+ "BucketAccelerateStatus":{
700
+ "type":"string",
701
+ "enum":[
702
+ "Enabled",
703
+ "Suspended"
704
+ ]
705
+ },
676
706
  "BucketAlreadyExists":{
677
707
  "type":"structure",
678
708
  "members":{
@@ -1712,6 +1742,23 @@
1712
1742
  ]
1713
1743
  },
1714
1744
  "FilterRuleValue":{"type":"string"},
1745
+ "GetBucketAccelerateConfigurationOutput":{
1746
+ "type":"structure",
1747
+ "members":{
1748
+ "Status":{"shape":"BucketAccelerateStatus"}
1749
+ }
1750
+ },
1751
+ "GetBucketAccelerateConfigurationRequest":{
1752
+ "type":"structure",
1753
+ "required":["Bucket"],
1754
+ "members":{
1755
+ "Bucket":{
1756
+ "shape":"BucketName",
1757
+ "location":"uri",
1758
+ "locationName":"Bucket"
1759
+ }
1760
+ }
1761
+ },
1715
1762
  "GetBucketAclOutput":{
1716
1763
  "type":"structure",
1717
1764
  "members":{
@@ -3142,6 +3189,26 @@
3142
3189
  "https"
3143
3190
  ]
3144
3191
  },
3192
+ "PutBucketAccelerateConfigurationRequest":{
3193
+ "type":"structure",
3194
+ "required":[
3195
+ "Bucket",
3196
+ "AccelerateConfiguration"
3197
+ ],
3198
+ "members":{
3199
+ "Bucket":{
3200
+ "shape":"BucketName",
3201
+ "location":"uri",
3202
+ "locationName":"Bucket"
3203
+ },
3204
+ "AccelerateConfiguration":{
3205
+ "shape":"AccelerateConfiguration",
3206
+ "locationName":"AccelerateConfiguration",
3207
+ "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}
3208
+ }
3209
+ },
3210
+ "payload":"AccelerateConfiguration"
3211
+ },
3145
3212
  "PutBucketAclRequest":{
3146
3213
  "type":"structure",
3147
3214
  "required":["Bucket"],
@@ -3550,6 +3617,11 @@
3550
3617
  "shape":"RequestPayer",
3551
3618
  "location":"header",
3552
3619
  "locationName":"x-amz-request-payer"
3620
+ },
3621
+ "VersionId":{
3622
+ "shape":"ObjectVersionId",
3623
+ "location":"querystring",
3624
+ "locationName":"versionId"
3553
3625
  }
3554
3626
  },
3555
3627
  "payload":"AccessControlPolicy"
@@ -35,6 +35,7 @@ module Aws
35
35
  CodeDeploy
36
36
  CodePipeline
37
37
  CognitoIdentity
38
+ CognitoIdentityProvider
38
39
  CognitoSync
39
40
  ConfigService
40
41
  DatabaseMigrationService
@@ -83,6 +83,7 @@ module Aws
83
83
  op.deprecated = !!definition['deprecated']
84
84
  op.input = shapes.shape_ref(definition['input'])
85
85
  op.output = shapes.shape_ref(definition['output'])
86
+ op['authtype'] = definition['authtype'] unless definition['authtype'].nil?
86
87
  (definition['errors'] || []).each do |error|
87
88
  op.errors << shapes.shape_ref(error)
88
89
  end
@@ -1,4 +1,5 @@
1
1
  Aws.add_service(:CognitoIdentity, {
2
2
  api: "#{Aws::API_DIR}/cognito-identity/2014-06-30/api-2.json",
3
3
  docs: "#{Aws::API_DIR}/cognito-identity/2014-06-30/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/cognito-identity/2014-06-30/examples-1.json",
4
5
  })
@@ -0,0 +1,4 @@
1
+ Aws.add_service(:CognitoIdentityProvider, {
2
+ api: "#{Aws::API_DIR}/cognito-idp/2016-04-18/api-2.json",
3
+ docs: "#{Aws::API_DIR}/cognito-idp/2016-04-18/docs-2.json",
4
+ })
@@ -1,6 +1,7 @@
1
1
  Aws.add_service(:Kinesis, {
2
2
  api: "#{Aws::API_DIR}/kinesis/2013-12-02/api-2.json",
3
3
  docs: "#{Aws::API_DIR}/kinesis/2013-12-02/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/kinesis/2013-12-02/examples-1.json",
4
5
  paginators: "#{Aws::API_DIR}/kinesis/2013-12-02/paginators-1.json",
5
6
  waiters: "#{Aws::API_DIR}/kinesis/2013-12-02/waiters-2.json",
6
7
  })
@@ -11,7 +11,7 @@ module Aws
11
11
  #
12
12
  # ** DO NOT EDIT THE FOLLOWING LINE OF CODE **
13
13
  #
14
- SENSITIVE = [:admin_contact, :artifact_credentials, :auth_code, :base_32_string_seed, :copy_source_sse_customer_key, :local_console_password, :new_password, :old_password, :password, :plaintext, :private_key, :qr_code_png, :registrant_contact, :secret_access_key, :shared_secret, :sse_customer_key, :ssekms_key_id, :tech_contact, :trust_password, :upload_credentials, :username]
14
+ SENSITIVE = [:access_token, :admin_contact, :artifact_credentials, :auth_code, :base_32_string_seed, :client_id, :client_secret, :copy_source_sse_customer_key, :local_console_password, :new_password, :old_password, :password, :plaintext, :previous_password, :private_key, :proposed_password, :qr_code_png, :registrant_contact, :secret_access_key, :secret_hash, :shared_secret, :sse_customer_key, :ssekms_key_id, :tech_contact, :trust_password, :upload_credentials, :username, :value]
15
15
 
16
16
  def initialize(options = {})
17
17
  @filters = Set.new(SENSITIVE + Array(options[:filter]))
@@ -122,7 +122,15 @@ module Aws
122
122
 
123
123
  def add_handlers(handlers, config)
124
124
  # See the S3RequestSignerPlugin for Amazon S3 signature logic
125
- handlers.add(Handler, step: :sign) unless config.sigv4_name == 's3'
125
+ unless config.sigv4_name == 's3'
126
+ operations = []
127
+ config.api.operation_names.each do |operation_name|
128
+ if config.api.operation(operation_name)['authtype'] != 'none'
129
+ operations << operation_name
130
+ end
131
+ end
132
+ handlers.add(Handler, step: :sign, operations: operations)
133
+ end
126
134
  end
127
135
 
128
136
  end
@@ -100,10 +100,8 @@ module Aws
100
100
  end
101
101
 
102
102
  def get_region_and_retry(context)
103
- actual_region = region_from_body(context)
104
- if actual_region.nil? || actual_region == ""
105
- raise "Couldn't get region from body: #{context.body}"
106
- end
103
+ actual_region = context.http_response.headers['x-amz-bucket-region']
104
+ actual_region ||= region_from_body(context.http_response.body_contents)
107
105
  update_bucket_cache(context, actual_region)
108
106
  log_warning(context, actual_region)
109
107
  update_region_header(context, actual_region)
@@ -116,7 +114,10 @@ module Aws
116
114
 
117
115
  def wrong_sigv4_region?(resp)
118
116
  resp.context.http_response.status_code == 400 &&
117
+ (
118
+ resp.context.http_response.headers['x-amz-bucket-region'] ||
119
119
  resp.context.http_response.body_contents.match(/<Region>.+?<\/Region>/)
120
+ )
120
121
  end
121
122
 
122
123
  def update_region_header(context, region)
@@ -128,8 +129,13 @@ module Aws
128
129
  signer.sign(context.http_request)
129
130
  end
130
131
 
131
- def region_from_body(context)
132
- context.http_response.body_contents.match(/<Region>(.+?)<\/Region>/)[1]
132
+ def region_from_body(body)
133
+ region = body.match(/<Region>(.+?)<\/Region>/)[1]
134
+ if region.nil? || region == ""
135
+ raise "couldn't get region from body: #{body}"
136
+ else
137
+ region
138
+ end
133
139
  end
134
140
 
135
141
  def log_warning(context, actual_region)
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.2.34'
2
+ VERSION = '2.2.35'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.34
4
+ version: 2.2.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-11 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -70,6 +70,8 @@ files:
70
70
  - apis/codedeploy/2014-10-06/paginators-1.json
71
71
  - apis/codepipeline/2015-07-09/api-2.json
72
72
  - apis/cognito-identity/2014-06-30/api-2.json
73
+ - apis/cognito-identity/2014-06-30/examples-1.json
74
+ - apis/cognito-idp/2016-04-18/api-2.json
73
75
  - apis/cognito-sync/2014-06-30/api-2.json
74
76
  - apis/config/2014-11-12/api-2.json
75
77
  - apis/config/2014-11-12/examples-1.json
@@ -147,6 +149,7 @@ files:
147
149
  - apis/iot/2015-05-28/api-2.json
148
150
  - apis/iot/2015-05-28/examples-1.json
149
151
  - apis/kinesis/2013-12-02/api-2.json
152
+ - apis/kinesis/2013-12-02/examples-1.json
150
153
  - apis/kinesis/2013-12-02/paginators-1.json
151
154
  - apis/kinesis/2013-12-02/waiters-2.json
152
155
  - apis/kms/2014-11-01/api-2.json
@@ -254,6 +257,7 @@ files:
254
257
  - lib/aws-sdk-core/codedeploy.rb
255
258
  - lib/aws-sdk-core/codepipeline.rb
256
259
  - lib/aws-sdk-core/cognitoidentity.rb
260
+ - lib/aws-sdk-core/cognitoidentityprovider.rb
257
261
  - lib/aws-sdk-core/cognitosync.rb
258
262
  - lib/aws-sdk-core/configservice.rb
259
263
  - lib/aws-sdk-core/credential_provider.rb