aws-sdk-core 2.6.40 → 2.6.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fe1517bf93c8cd388b4488fe276c2bac93bce1a
4
- data.tar.gz: 62e321c9a57d2336fcb0f9aa7228ce047dd92d0e
3
+ metadata.gz: b38bdd0076433d84231d4ad3c7521e71624632cf
4
+ data.tar.gz: cce57657ccd21bc39327713093dee26333a008b2
5
5
  SHA512:
6
- metadata.gz: 9d2790a37ae1108ef2aa2666c8efd7771262bd4d8db80ddc89852b94a1baa3a24cd7fd364a35ff7b10721467cc89b1edebd0016ccdf2c0b153c81933258adbb6
7
- data.tar.gz: 032feb8a26512eee445852f235625eea534184ad2406eedcf5f6454e55c506d523ffb9e254d7deb1666bdeca5ccc6c3cffe7ec6d4610890b0a00b9deb004da2d
6
+ metadata.gz: 9102bb23a1d23f15385f3d8d5e5bddeda48017dbd8ba52c34bcd241538dc3ce8617523f2a11c01be51a0bfa4dd98497ff0b9022292e49f251a7198ef99319c33
7
+ data.tar.gz: d8e0e9b28df7d5c71b8b52de1fee43163edc0cb43802ebb65b7f1e0c95d2732e4ef272a4791dedd24d52b009ba7513fba63d291cc536997edf324a8a80439f04
@@ -333,7 +333,8 @@
333
333
  "members":{
334
334
  "registryId":{"shape":"RegistryId"},
335
335
  "repositoryName":{"shape":"RepositoryName"},
336
- "imageIds":{"shape":"ImageIdentifierList"}
336
+ "imageIds":{"shape":"ImageIdentifierList"},
337
+ "acceptedMediaTypes":{"shape":"MediaTypeList"}
337
338
  }
338
339
  },
339
340
  "BatchGetImageResponse":{
@@ -657,7 +658,8 @@
657
658
  "members":{
658
659
  "layerDigest":{"shape":"LayerDigest"},
659
660
  "layerAvailability":{"shape":"LayerAvailability"},
660
- "layerSize":{"shape":"LayerSizeInBytes"}
661
+ "layerSize":{"shape":"LayerSizeInBytes"},
662
+ "mediaType":{"shape":"MediaType"}
661
663
  }
662
664
  },
663
665
  "LayerAlreadyExistsException":{
@@ -767,6 +769,16 @@
767
769
  "max":100,
768
770
  "min":1
769
771
  },
772
+ "MediaType":{
773
+ "type":"string",
774
+ "pattern":"\\w{1,127}\\/[-+.\\w]{1,127}"
775
+ },
776
+ "MediaTypeList":{
777
+ "type":"list",
778
+ "member":{"shape":"MediaType"},
779
+ "max":100,
780
+ "min":1
781
+ },
770
782
  "NextToken":{"type":"string"},
771
783
  "PartSize":{
772
784
  "type":"long",
@@ -783,7 +795,8 @@
783
795
  "members":{
784
796
  "registryId":{"shape":"RegistryId"},
785
797
  "repositoryName":{"shape":"RepositoryName"},
786
- "imageManifest":{"shape":"ImageManifest"}
798
+ "imageManifest":{"shape":"ImageManifest"},
799
+ "imageTag":{"shape":"ImageTag"}
787
800
  }
788
801
  },
789
802
  "PutImageResponse":{
@@ -1768,7 +1768,8 @@
1768
1768
  "TargetDBSnapshotIdentifier":{"shape":"String"},
1769
1769
  "KmsKeyId":{"shape":"String"},
1770
1770
  "Tags":{"shape":"TagList"},
1771
- "CopyTags":{"shape":"BooleanOptional"}
1771
+ "CopyTags":{"shape":"BooleanOptional"},
1772
+ "PreSignedUrl":{"shape":"String"}
1772
1773
  }
1773
1774
  },
1774
1775
  "CopyDBSnapshotResult":{
@@ -1128,8 +1128,10 @@
1128
1128
  "ap-northeast-1": {},
1129
1129
  "ap-southeast-1": {},
1130
1130
  "ap-southeast-2": {},
1131
+ "ca-central-1": {},
1131
1132
  "eu-central-1": {},
1132
1133
  "eu-west-1": {},
1134
+ "eu-west-2": {},
1133
1135
  "us-east-1": {},
1134
1136
  "us-east-2": {},
1135
1137
  "us-west-2": {}
@@ -194,6 +194,7 @@ module Aws
194
194
  autoload :MachineLearningPredictEndpoint, 'aws-sdk-core/plugins/machine_learning_predict_endpoint'
195
195
  autoload :ParamConverter, 'aws-sdk-core/plugins/param_converter'
196
196
  autoload :ParamValidator, 'aws-sdk-core/plugins/param_validator'
197
+ autoload :RDSCrossRegionCopying, 'aws-sdk-core/plugins/rds_cross_region_copying'
197
198
  autoload :RegionalEndpoint, 'aws-sdk-core/plugins/regional_endpoint'
198
199
  autoload :ResponsePaging, 'aws-sdk-core/plugins/response_paging'
199
200
  autoload :RequestSigner, 'aws-sdk-core/plugins/request_signer'
@@ -143,6 +143,22 @@ module Aws
143
143
  Aws::Plugins::Route53IdFix
144
144
  ))
145
145
 
146
+ plugins('rds', add: %w(
147
+ Aws::Plugins::RDSCrossRegionCopying
148
+ ))
149
+
150
+ api('rds') do |api|
151
+ api['shapes']['CopyDBSnapshotMessage']['members']['DestinationRegion'] =
152
+ {"shape" => "String"}
153
+ end
154
+
155
+ doc('rds') do |docs|
156
+ docs['shapes']['String']['refs']['CopyDBSnapshotMessage$SourceRegion'] =
157
+ "<p>The region which you are copying an encrypted snapshot from.</p>" +
158
+ "<p>This is a required paramter that allows SDK to compute a pre-signed Url and" +
159
+ " populate <code>PreSignedURL</code> parameter on your behalf.</p>"
160
+ end
161
+
146
162
  api('s3') do |api|
147
163
  api['metadata'].delete('signatureVersion')
148
164
  if ENV['DOCSTRINGS']
@@ -0,0 +1,64 @@
1
+ require 'aws-sigv4'
2
+
3
+ module Aws
4
+ module Plugins
5
+
6
+ # This plugin populates the `:pre_signed_url` request param for the
7
+ # CopyDBSnapshot API.
8
+ #
9
+ # This parameter is required by RDS when copying an encrypted snapshot
10
+ # across regions. This plugin will be skipped if the `:pre_signed_url`
11
+ # parameter is provided by the user.
12
+ #
13
+ # @seahorse.client.option [String] :source_region The region which you are
14
+ # copying an encrypted snapshot from. This parameter must be present to
15
+ # have the plugin compute a presigned URL on your behalf.
16
+ class RDSCrossRegionCopying < Seahorse::Client::Plugin
17
+
18
+ # @api private
19
+ class Handler < Seahorse::Client::Handler
20
+
21
+ def call(context)
22
+ params = context.params
23
+ if params[:source_region] && !params[:pre_signed_url]
24
+ params[:pre_signed_url] = presigned_url(context, params)
25
+ params[:destination_region] = context.config.region
26
+ end
27
+ @handler.call(context)
28
+ end
29
+
30
+ private
31
+ def presigned_url(context, params)
32
+ # :source_region is not modeled in the api
33
+ source_region = params.delete(:source_region)
34
+ param_list = Aws::Query::ParamList.new
35
+ param_list.set('Action', context.operation.name)
36
+ param_list.set('DestinationRegion', context.config.region)
37
+ param_list.set('Version', context.config.api.metadata['apiVersion'])
38
+ Aws::Query::ParamBuilder.new(param_list).apply(
39
+ context.operation.input,
40
+ params
41
+ )
42
+ signer = Aws::Sigv4::Signer.new(
43
+ service: 'rds',
44
+ region: source_region,
45
+ credentials_provider: context.config.credentials
46
+ )
47
+ url = Aws::EndpointProvider.resolve(signer.region, 'rds')
48
+ url += "?#{param_list.to_s}"
49
+ signer.presign_url(
50
+ http_method: 'GET',
51
+ url: url,
52
+ body: '',
53
+ expires_in: 3600
54
+ ).to_s
55
+ end
56
+ end
57
+ handler(
58
+ Handler,
59
+ step: :initialize,
60
+ operations: [:copy_db_snapshot]
61
+ )
62
+ end
63
+ end
64
+ end
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.6.40'
2
+ VERSION = '2.6.41'
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.6.40
4
+ version: 2.6.41
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-12-20 00:00:00.000000000 Z
11
+ date: 2016-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -491,6 +491,7 @@ files:
491
491
  - lib/aws-sdk-core/plugins/protocols/query.rb
492
492
  - lib/aws-sdk-core/plugins/protocols/rest_json.rb
493
493
  - lib/aws-sdk-core/plugins/protocols/rest_xml.rb
494
+ - lib/aws-sdk-core/plugins/rds_cross_region_copying.rb
494
495
  - lib/aws-sdk-core/plugins/regional_endpoint.rb
495
496
  - lib/aws-sdk-core/plugins/request_signer.rb
496
497
  - lib/aws-sdk-core/plugins/response_paging.rb