aws-sdk-core 2.5.8 → 2.5.10

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.
@@ -919,6 +919,18 @@
919
919
  {"shape":"ReservedDBInstancesOfferingNotFoundFault"}
920
920
  ]
921
921
  },
922
+ "DescribeSourceRegions":{
923
+ "name":"DescribeSourceRegions",
924
+ "http":{
925
+ "method":"POST",
926
+ "requestUri":"/"
927
+ },
928
+ "input":{"shape":"DescribeSourceRegionsMessage"},
929
+ "output":{
930
+ "shape":"SourceRegionMessage",
931
+ "resultWrapper":"DescribeSourceRegionsResult"
932
+ }
933
+ },
922
934
  "DownloadDBLogFilePortion":{
923
935
  "name":"DownloadDBLogFilePortion",
924
936
  "http":{
@@ -3199,6 +3211,15 @@
3199
3211
  "Marker":{"shape":"String"}
3200
3212
  }
3201
3213
  },
3214
+ "DescribeSourceRegionsMessage":{
3215
+ "type":"structure",
3216
+ "members":{
3217
+ "RegionName":{"shape":"String"},
3218
+ "MaxRecords":{"shape":"IntegerOptional"},
3219
+ "Marker":{"shape":"String"},
3220
+ "Filters":{"shape":"FilterList"}
3221
+ }
3222
+ },
3202
3223
  "DomainMembership":{
3203
3224
  "type":"structure",
3204
3225
  "members":{
@@ -4714,6 +4735,28 @@
4714
4735
  },
4715
4736
  "exception":true
4716
4737
  },
4738
+ "SourceRegion":{
4739
+ "type":"structure",
4740
+ "members":{
4741
+ "RegionName":{"shape":"String"},
4742
+ "Endpoint":{"shape":"String"},
4743
+ "Status":{"shape":"String"}
4744
+ }
4745
+ },
4746
+ "SourceRegionList":{
4747
+ "type":"list",
4748
+ "member":{
4749
+ "shape":"SourceRegion",
4750
+ "locationName":"SourceRegion"
4751
+ }
4752
+ },
4753
+ "SourceRegionMessage":{
4754
+ "type":"structure",
4755
+ "members":{
4756
+ "Marker":{"shape":"String"},
4757
+ "SourceRegions":{"shape":"SourceRegionList"}
4758
+ }
4759
+ },
4717
4760
  "SourceType":{
4718
4761
  "type":"string",
4719
4762
  "enum":[
@@ -38,6 +38,7 @@
38
38
  "errors":[
39
39
  {"shape":"ThrottledException"},
40
40
  {"shape":"InternalErrorException"},
41
+ {"shape":"AuthorizationErrorException"},
41
42
  {"shape":"InvalidParameterException"}
42
43
  ]
43
44
  },
@@ -203,6 +204,7 @@
203
204
  "errors":[
204
205
  {"shape":"ThrottledException"},
205
206
  {"shape":"InternalErrorException"},
207
+ {"shape":"AuthorizationErrorException"},
206
208
  {"shape":"InvalidParameterException"}
207
209
  ]
208
210
  },
@@ -274,6 +276,7 @@
274
276
  "errors":[
275
277
  {"shape":"ThrottledException"},
276
278
  {"shape":"InternalErrorException"},
279
+ {"shape":"AuthorizationErrorException"},
277
280
  {"shape":"InvalidParameterException"}
278
281
  ]
279
282
  },
@@ -360,6 +363,7 @@
360
363
  "errors":[
361
364
  {"shape":"ThrottledException"},
362
365
  {"shape":"InternalErrorException"},
366
+ {"shape":"AuthorizationErrorException"},
363
367
  {"shape":"InvalidParameterException"}
364
368
  ]
365
369
  },
@@ -440,7 +444,8 @@
440
444
  "errors":[
441
445
  {"shape":"InvalidParameterException"},
442
446
  {"shape":"ThrottledException"},
443
- {"shape":"InternalErrorException"}
447
+ {"shape":"InternalErrorException"},
448
+ {"shape":"AuthorizationErrorException"}
444
449
  ]
445
450
  },
446
451
  "SetSubscriptionAttributes":{
@@ -0,0 +1,5 @@
1
+ {
2
+ "version": "1.0",
3
+ "examples": {
4
+ }
5
+ }
@@ -79,26 +79,30 @@ module Aws
79
79
  if operation['examples']
80
80
  operation['examples'].map do |example|
81
81
  shared_example(example, method_name, operation)
82
- end
82
+ end.compact
83
83
  else
84
84
  []
85
85
  end
86
86
  end
87
87
 
88
88
  def shared_example(json_ex, method_name, operation)
89
- input_comments = json_ex['comments']['input']
90
- input = SharedExample.new(json_ex['input'], method_name, operation, input_comments).to_str_input
91
- parts = []
92
- parts << "@example Example: #{json_ex['title']}\n\n"
93
- parts << " # #{json_ex['description']}\n\n"
94
- parts += input.lines.map { |line| " " + line }
95
- if json_ex['output']
96
- output_comments = json_ex['comments']['output']
97
- output = SharedExample.new(json_ex['output'], method_name, operation, output_comments).to_str_output
98
- parts << "\n\n # resp.to_h outputs the following:\n"
99
- parts += output.lines.map { |line| " " + line }
89
+ begin # disable broken examples
90
+ input_comments = json_ex['comments']['input']
91
+ input = SharedExample.new(json_ex['input'], method_name, operation, input_comments).to_str_input
92
+ parts = []
93
+ parts << "@example Example: #{json_ex['title']}\n\n"
94
+ parts << " # #{json_ex['description']}\n\n"
95
+ parts += input.lines.map { |line| " " + line }
96
+ if json_ex['output']
97
+ output_comments = json_ex['comments']['output']
98
+ output = SharedExample.new(json_ex['output'], method_name, operation, output_comments).to_str_output
99
+ parts << "\n\n # resp.to_h outputs the following:\n"
100
+ parts += output.lines.map { |line| " " + line }
101
+ end
102
+ tag(parts.join)
103
+ rescue
104
+ nil
100
105
  end
101
- tag(parts.join)
102
106
  end
103
107
 
104
108
  def examples_from_disk(method_name, operation)
@@ -1,6 +1,7 @@
1
1
  Aws.add_service(:SNS, {
2
2
  api: "#{Aws::API_DIR}/sns/2010-03-31/api-2.json",
3
3
  docs: "#{Aws::API_DIR}/sns/2010-03-31/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/sns/2010-03-31/examples-1.json",
4
5
  paginators: "#{Aws::API_DIR}/sns/2010-03-31/paginators-1.json",
5
6
  resources: "#{Aws::API_DIR}/sns/2010-03-31/resources-1.json",
6
7
  })
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.5.8'
2
+ VERSION = '2.5.10'
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.5.8
4
+ version: 2.5.10
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-09-01 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -237,6 +237,7 @@ files:
237
237
  - apis/snowball/2016-06-30/examples-1.json
238
238
  - apis/snowball/2016-06-30/paginators-1.json
239
239
  - apis/sns/2010-03-31/api-2.json
240
+ - apis/sns/2010-03-31/examples-1.json
240
241
  - apis/sns/2010-03-31/paginators-1.json
241
242
  - apis/sns/2010-03-31/resources-1.json
242
243
  - apis/sqs/2012-11-05/api-2.json