aws-sdk-core 2.11.171 → 2.11.172

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/apis/codebuild/2016-10-06/api-2.json +8 -1
  3. data/apis/comprehend/2017-11-27/api-2.json +365 -1
  4. data/apis/directconnect/2012-10-25/api-2.json +18 -4
  5. data/apis/dms/2016-01-01/api-2.json +38 -5
  6. data/apis/dms/2016-01-01/waiters-2.json +5 -5
  7. data/apis/ecs/2014-11-13/api-2.json +348 -17
  8. data/apis/ecs/2014-11-13/examples-1.json +69 -0
  9. data/apis/iam/2010-05-08/api-2.json +224 -0
  10. data/apis/iam/2010-05-08/examples-1.json +148 -0
  11. data/apis/pinpoint/2016-12-01/api-2.json +254 -5
  12. data/apis/ram/2018-01-04/api-2.json +964 -0
  13. data/apis/ram/2018-01-04/examples-1.json +5 -0
  14. data/apis/ram/2018-01-04/paginators-1.json +34 -0
  15. data/apis/rds/2014-10-31/api-2.json +152 -10
  16. data/apis/rds/2014-10-31/paginators-1.json +6 -0
  17. data/apis/redshift/2012-12-01/api-2.json +499 -16
  18. data/apis/route53resolver/2018-04-01/api-2.json +1199 -0
  19. data/apis/route53resolver/2018-04-01/examples-1.json +5 -0
  20. data/apis/route53resolver/2018-04-01/paginators-1.json +24 -0
  21. data/apis/route53resolver/2018-04-01/smoke.json +18 -0
  22. data/apis/s3/2006-03-01/api-2.json +138 -0
  23. data/apis/s3/2006-03-01/examples-1.json +78 -78
  24. data/apis/s3control/2018-08-20/api-2.json +126 -0
  25. data/apis/s3control/2018-08-20/examples-1.json +5 -0
  26. data/apis/s3control/2018-08-20/paginators-1.json +4 -0
  27. data/apis/sms-voice/2018-09-05/api-2.json +559 -0
  28. data/apis/transcribe/2017-10-26/api-2.json +4 -1
  29. data/endpoints.json +200 -0
  30. data/lib/aws-sdk-core.rb +7 -0
  31. data/lib/aws-sdk-core/api/customizations.rb +7 -0
  32. data/lib/aws-sdk-core/pinpointsmsvoice.rb +4 -0
  33. data/lib/aws-sdk-core/plugins/s3_control_dns.rb +23 -0
  34. data/lib/aws-sdk-core/plugins/s3_control_dualstack.rb +48 -0
  35. data/lib/aws-sdk-core/plugins/s3_control_signer.rb +53 -0
  36. data/lib/aws-sdk-core/ram.rb +6 -0
  37. data/lib/aws-sdk-core/route53resolver.rb +6 -0
  38. data/lib/aws-sdk-core/s3control.rb +6 -0
  39. data/lib/aws-sdk-core/version.rb +1 -1
  40. data/service-models.json +16 -0
  41. metadata +20 -2
@@ -246,7 +246,10 @@
246
246
  "es-US",
247
247
  "en-AU",
248
248
  "fr-CA",
249
- "en-UK"
249
+ "en-GB",
250
+ "de-DE",
251
+ "pt-BR",
252
+ "fr-FR"
250
253
  ]
251
254
  },
252
255
  "LimitExceededException":{
data/endpoints.json CHANGED
@@ -1784,6 +1784,147 @@
1784
1784
  "isRegionalized" : true,
1785
1785
  "partitionEndpoint" : "us-east-1"
1786
1786
  },
1787
+ "s3-control" : {
1788
+ "defaults" : {
1789
+ "protocols" : [ "https" ],
1790
+ "signatureVersions" : [ "s3v4" ]
1791
+ },
1792
+ "endpoints" : {
1793
+ "ap-northeast-1" : {
1794
+ "credentialScope" : {
1795
+ "region" : "ap-northeast-1"
1796
+ },
1797
+ "hostname" : "s3-control.ap-northeast-1.amazonaws.com",
1798
+ "signatureVersions" : [ "s3v4" ]
1799
+ },
1800
+ "ap-northeast-2" : {
1801
+ "credentialScope" : {
1802
+ "region" : "ap-northeast-2"
1803
+ },
1804
+ "hostname" : "s3-control.ap-northeast-2.amazonaws.com",
1805
+ "signatureVersions" : [ "s3v4" ]
1806
+ },
1807
+ "ap-south-1" : {
1808
+ "credentialScope" : {
1809
+ "region" : "ap-south-1"
1810
+ },
1811
+ "hostname" : "s3-control.ap-south-1.amazonaws.com",
1812
+ "signatureVersions" : [ "s3v4" ]
1813
+ },
1814
+ "ap-southeast-1" : {
1815
+ "credentialScope" : {
1816
+ "region" : "ap-southeast-1"
1817
+ },
1818
+ "hostname" : "s3-control.ap-southeast-1.amazonaws.com",
1819
+ "signatureVersions" : [ "s3v4" ]
1820
+ },
1821
+ "ap-southeast-2" : {
1822
+ "credentialScope" : {
1823
+ "region" : "ap-southeast-2"
1824
+ },
1825
+ "hostname" : "s3-control.ap-southeast-2.amazonaws.com",
1826
+ "signatureVersions" : [ "s3v4" ]
1827
+ },
1828
+ "ca-central-1" : {
1829
+ "credentialScope" : {
1830
+ "region" : "ca-central-1"
1831
+ },
1832
+ "hostname" : "s3-control.ca-central-1.amazonaws.com",
1833
+ "signatureVersions" : [ "s3v4" ]
1834
+ },
1835
+ "eu-central-1" : {
1836
+ "credentialScope" : {
1837
+ "region" : "eu-central-1"
1838
+ },
1839
+ "hostname" : "s3-control.eu-central-1.amazonaws.com",
1840
+ "signatureVersions" : [ "s3v4" ]
1841
+ },
1842
+ "eu-west-1" : {
1843
+ "credentialScope" : {
1844
+ "region" : "eu-west-1"
1845
+ },
1846
+ "hostname" : "s3-control.eu-west-1.amazonaws.com",
1847
+ "signatureVersions" : [ "s3v4" ]
1848
+ },
1849
+ "eu-west-2" : {
1850
+ "credentialScope" : {
1851
+ "region" : "eu-west-2"
1852
+ },
1853
+ "hostname" : "s3-control.eu-west-2.amazonaws.com",
1854
+ "signatureVersions" : [ "s3v4" ]
1855
+ },
1856
+ "eu-west-3" : {
1857
+ "credentialScope" : {
1858
+ "region" : "eu-west-3"
1859
+ },
1860
+ "hostname" : "s3-control.eu-west-3.amazonaws.com",
1861
+ "signatureVersions" : [ "s3v4" ]
1862
+ },
1863
+ "sa-east-1" : {
1864
+ "credentialScope" : {
1865
+ "region" : "sa-east-1"
1866
+ },
1867
+ "hostname" : "s3-control.sa-east-1.amazonaws.com",
1868
+ "signatureVersions" : [ "s3v4" ]
1869
+ },
1870
+ "us-east-1" : {
1871
+ "credentialScope" : {
1872
+ "region" : "us-east-1"
1873
+ },
1874
+ "hostname" : "s3-control.us-east-1.amazonaws.com",
1875
+ "signatureVersions" : [ "s3v4" ]
1876
+ },
1877
+ "us-east-1-fips" : {
1878
+ "credentialScope" : {
1879
+ "region" : "us-east-1"
1880
+ },
1881
+ "hostname" : "s3-control-fips.us-east-1.amazonaws.com",
1882
+ "signatureVersions" : [ "s3v4" ]
1883
+ },
1884
+ "us-east-2" : {
1885
+ "credentialScope" : {
1886
+ "region" : "us-east-2"
1887
+ },
1888
+ "hostname" : "s3-control.us-east-2.amazonaws.com",
1889
+ "signatureVersions" : [ "s3v4" ]
1890
+ },
1891
+ "us-east-2-fips" : {
1892
+ "credentialScope" : {
1893
+ "region" : "us-east-2"
1894
+ },
1895
+ "hostname" : "s3-control-fips.us-east-2.amazonaws.com",
1896
+ "signatureVersions" : [ "s3v4" ]
1897
+ },
1898
+ "us-west-1" : {
1899
+ "credentialScope" : {
1900
+ "region" : "us-west-1"
1901
+ },
1902
+ "hostname" : "s3-control.us-west-1.amazonaws.com",
1903
+ "signatureVersions" : [ "s3v4" ]
1904
+ },
1905
+ "us-west-1-fips" : {
1906
+ "credentialScope" : {
1907
+ "region" : "us-west-1"
1908
+ },
1909
+ "hostname" : "s3-control-fips.us-west-1.amazonaws.com",
1910
+ "signatureVersions" : [ "s3v4" ]
1911
+ },
1912
+ "us-west-2" : {
1913
+ "credentialScope" : {
1914
+ "region" : "us-west-2"
1915
+ },
1916
+ "hostname" : "s3-control.us-west-2.amazonaws.com",
1917
+ "signatureVersions" : [ "s3v4" ]
1918
+ },
1919
+ "us-west-2-fips" : {
1920
+ "credentialScope" : {
1921
+ "region" : "us-west-2"
1922
+ },
1923
+ "hostname" : "s3-control-fips.us-west-2.amazonaws.com",
1924
+ "signatureVersions" : [ "s3v4" ]
1925
+ }
1926
+ }
1927
+ },
1787
1928
  "sdb" : {
1788
1929
  "defaults" : {
1789
1930
  "protocols" : [ "http", "https" ],
@@ -2631,6 +2772,28 @@
2631
2772
  "cn-northwest-1" : { }
2632
2773
  }
2633
2774
  },
2775
+ "s3-control" : {
2776
+ "defaults" : {
2777
+ "protocols" : [ "https" ],
2778
+ "signatureVersions" : [ "s3v4" ]
2779
+ },
2780
+ "endpoints" : {
2781
+ "cn-north-1" : {
2782
+ "credentialScope" : {
2783
+ "region" : "cn-north-1"
2784
+ },
2785
+ "hostname" : "s3-control.cn-north-1.amazonaws.com.cn",
2786
+ "signatureVersions" : [ "s3v4" ]
2787
+ },
2788
+ "cn-northwest-1" : {
2789
+ "credentialScope" : {
2790
+ "region" : "cn-northwest-1"
2791
+ },
2792
+ "hostname" : "s3-control.cn-northwest-1.amazonaws.com.cn",
2793
+ "signatureVersions" : [ "s3v4" ]
2794
+ }
2795
+ }
2796
+ },
2634
2797
  "sms" : {
2635
2798
  "endpoints" : {
2636
2799
  "cn-north-1" : { },
@@ -2816,6 +2979,7 @@
2816
2979
  },
2817
2980
  "directconnect" : {
2818
2981
  "endpoints" : {
2982
+ "us-gov-east-1" : { },
2819
2983
  "us-gov-west-1" : { }
2820
2984
  }
2821
2985
  },
@@ -3033,6 +3197,42 @@
3033
3197
  }
3034
3198
  }
3035
3199
  },
3200
+ "s3-control" : {
3201
+ "defaults" : {
3202
+ "protocols" : [ "https" ],
3203
+ "signatureVersions" : [ "s3v4" ]
3204
+ },
3205
+ "endpoints" : {
3206
+ "us-gov-east-1" : {
3207
+ "credentialScope" : {
3208
+ "region" : "us-gov-east-1"
3209
+ },
3210
+ "hostname" : "s3-control.us-gov-east-1.amazonaws.com",
3211
+ "signatureVersions" : [ "s3v4" ]
3212
+ },
3213
+ "us-gov-east-1-fips" : {
3214
+ "credentialScope" : {
3215
+ "region" : "us-gov-east-1"
3216
+ },
3217
+ "hostname" : "s3-control-fips.us-gov-east-1.amazonaws.com",
3218
+ "signatureVersions" : [ "s3v4" ]
3219
+ },
3220
+ "us-gov-west-1" : {
3221
+ "credentialScope" : {
3222
+ "region" : "us-gov-west-1"
3223
+ },
3224
+ "hostname" : "s3-control.us-gov-west-1.amazonaws.com",
3225
+ "signatureVersions" : [ "s3v4" ]
3226
+ },
3227
+ "us-gov-west-1-fips" : {
3228
+ "credentialScope" : {
3229
+ "region" : "us-gov-west-1"
3230
+ },
3231
+ "hostname" : "s3-control-fips.us-gov-west-1.amazonaws.com",
3232
+ "signatureVersions" : [ "s3v4" ]
3233
+ }
3234
+ }
3235
+ },
3036
3236
  "sms" : {
3037
3237
  "endpoints" : {
3038
3238
  "us-gov-east-1" : { },
data/lib/aws-sdk-core.rb CHANGED
@@ -133,8 +133,10 @@ module Aws
133
133
  PI
134
134
  Pinpoint
135
135
  PinpointEmail
136
+ PinpointSMSVoice
136
137
  Polly
137
138
  Pricing
139
+ RAM
138
140
  RDS
139
141
  Redshift
140
142
  Rekognition
@@ -142,7 +144,9 @@ module Aws
142
144
  ResourceGroupsTaggingAPI
143
145
  Route53
144
146
  Route53Domains
147
+ Route53Resolver
145
148
  S3
149
+ S3Control
146
150
  SES
147
151
  SMS
148
152
  SNS
@@ -263,6 +267,9 @@ module Aws
263
267
  autoload :RequestSigner, 'aws-sdk-core/plugins/request_signer'
264
268
  autoload :RetryErrors, 'aws-sdk-core/plugins/retry_errors'
265
269
  autoload :Route53IdFix, 'aws-sdk-core/plugins/route_53_id_fix'
270
+ autoload :S3ControlDns, 'aws-sdk-core/plugins/s3_control_dns'
271
+ autoload :S3ControlDualstack, 'aws-sdk-core/plugins/s3_control_dualstack'
272
+ autoload :S3ControlSigner, 'aws-sdk-core/plugins/s3_control_signer'
266
273
  autoload :S3Accelerate, 'aws-sdk-core/plugins/s3_accelerate'
267
274
  autoload :S3BucketDns, 'aws-sdk-core/plugins/s3_bucket_dns'
268
275
  autoload :S3BucketNameRestrictions, 'aws-sdk-core/plugins/s3_bucket_name_restrictions'
@@ -272,6 +272,13 @@ module Aws
272
272
  Aws::Plugins::S3RequestSigner
273
273
  ))
274
274
 
275
+ plugins('AWS S3 Control', add: %w(
276
+ Aws::Plugins::S3HostId
277
+ Aws::Plugins::S3ControlDns
278
+ Aws::Plugins::S3ControlDualstack
279
+ Aws::Plugins::S3ControlSigner
280
+ ))
281
+
275
282
  api('Amazon Simple Queue Service') do |api|
276
283
  api['metadata']['errorPrefix'] = 'AWS.SimpleQueueService.'
277
284
  end
@@ -0,0 +1,4 @@
1
+ Aws.add_service(:PinpointSMSVoice, {
2
+ api: "#{Aws::API_DIR}/sms-voice/2018-09-05/api-2.json",
3
+ docs: "#{Aws::API_DIR}/sms-voice/2018-09-05/docs-2.json",
4
+ })
@@ -0,0 +1,23 @@
1
+ module Aws
2
+ module Plugins
3
+ class S3ControlDns < Seahorse::Client::Plugin
4
+ def add_handlers(handlers, config)
5
+ handlers.add(Handler, step: :build, priority: 1)
6
+ end
7
+
8
+ class Handler < Seahorse::Client::Handler
9
+ def call(context)
10
+ move_account_id_to_subdomain(context)
11
+ @handler.call(context)
12
+ end
13
+
14
+ private
15
+ def move_account_id_to_subdomain(context)
16
+ account_id = context.params[:account_id]
17
+ endpoint = context.http_request.endpoint
18
+ endpoint.host = "#{account_id}.#{endpoint.host}"
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,48 @@
1
+ module Aws
2
+ module Plugins
3
+ # @api private
4
+ class S3ControlDualstack < Seahorse::Client::Plugin
5
+ option(:use_dualstack_endpoint, false)
6
+
7
+ def add_handlers(handlers, config)
8
+ handlers.add(OptionHandler, step: :initialize)
9
+ handlers.add(DualstackHandler, step: :build, priority: 2)
10
+ end
11
+
12
+ # @api private
13
+ class OptionHandler < Seahorse::Client::Handler
14
+ def call(context)
15
+ dualstack = context.params.delete(:use_dualstack_endpoint)
16
+ dualstack = context.config.use_dualstack_endpoint if dualstack.nil?
17
+ context[:use_dualstack_endpoint] = dualstack
18
+ @handler.call(context)
19
+ end
20
+ end
21
+
22
+ # @api private
23
+ class DualstackHandler < Seahorse::Client::Handler
24
+ def call(context)
25
+ apply_dualstack_endpoint(context) if use_dualstack_endpoint?(context)
26
+ @handler.call(context)
27
+ end
28
+
29
+ private
30
+ def apply_dualstack_endpoint(context)
31
+ bucket_name = context.params[:bucket]
32
+ region = context.config.region
33
+ dns_suffix = EndpointProvider.dns_suffix_for(region)
34
+ host = "s3-control.dualstack.#{region}.#{dns_suffix}"
35
+ endpoint = URI.parse(context.http_request.endpoint.to_s)
36
+ endpoint.scheme = context.http_request.endpoint.scheme
37
+ endpoint.port = context.http_request.endpoint.port
38
+ endpoint.host = host
39
+ context.http_request.endpoint = endpoint.to_s
40
+ end
41
+
42
+ def use_dualstack_endpoint?(context)
43
+ context[:use_dualstack_endpoint]
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,53 @@
1
+ require 'set'
2
+
3
+ module Aws
4
+ module Plugins
5
+ # This plugin is an implementation detail and may be modified.
6
+ # @api private
7
+ class S3ControlSigner < Seahorse::Client::Plugin
8
+
9
+ class SigningHandler < RequestSigner::Handler
10
+
11
+ def call(context)
12
+ require_credentials(context)
13
+ version = context.config.signature_version
14
+ apply_v4_signature(context)
15
+ @handler.call(context)
16
+ end
17
+
18
+ private
19
+
20
+ def apply_v4_signature(context)
21
+ Signers::V4.new(
22
+ context.config.credentials, 's3',
23
+ context[:cached_sigv4_region] || context.config.sigv4_region,
24
+ ).sign(context.http_request)
25
+ end
26
+
27
+ def apply_s3_legacy_signature(context)
28
+ Signers::S3.sign(context)
29
+ end
30
+
31
+ end
32
+
33
+ # Abstract base class for the other two handlers
34
+ class Handler < Seahorse::Client::Handler
35
+
36
+ private
37
+
38
+ def new_hostname(context, region)
39
+ bucket = context.params[:bucket]
40
+ if region == 'us-east-1'
41
+ "#{bucket}.s3.amazonaws.com"
42
+ else
43
+ bucket + '.' + URI.parse(EndpointProvider.resolve(region, 's3')).host
44
+ end
45
+ end
46
+
47
+ end
48
+
49
+ # sign the request
50
+ handler(SigningHandler, step: :sign)
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:RAM, {
2
+ api: "#{Aws::API_DIR}/ram/2018-01-04/api-2.json",
3
+ docs: "#{Aws::API_DIR}/ram/2018-01-04/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/ram/2018-01-04/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/ram/2018-01-04/paginators-1.json",
6
+ })
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:Route53Resolver, {
2
+ api: "#{Aws::API_DIR}/route53resolver/2018-04-01/api-2.json",
3
+ docs: "#{Aws::API_DIR}/route53resolver/2018-04-01/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/route53resolver/2018-04-01/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/route53resolver/2018-04-01/paginators-1.json",
6
+ })
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:S3Control, {
2
+ api: "#{Aws::API_DIR}/s3control/2018-08-20/api-2.json",
3
+ docs: "#{Aws::API_DIR}/s3control/2018-08-20/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/s3control/2018-08-20/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/s3control/2018-08-20/paginators-1.json",
6
+ })
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.11.171'
2
+ VERSION = '2.11.172'
3
3
  end