aws-sdk-kms 1.0.0.rc3 → 1.0.0.rc4
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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-kms.rb +1 -1
- data/lib/aws-sdk-kms/client.rb +17 -11
- data/lib/aws-sdk-kms/types.rb +28 -24
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 950b6bbfca0ed0aecadfc187fa3a51c2b74e73db
|
4
|
+
data.tar.gz: 54b3be39b30ddb3e5055401214cf21970012f904
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b23b21e7984866b759857d97f4db42744bb9b5b94cf2617cb4a6de481cb513ab7c722d78abafdea7162f40c3e019de3ba16c8d42927ca3bad0cfef62c16133c1
|
7
|
+
data.tar.gz: 494c8670361f553f9dd44d21fc1794b65df695aca09fc7f681b8dff0df12b1a004cf3f15638baababeaeeb84c57708dfd3f13d8a7a1dc7bf3b00511218ab319d
|
data/lib/aws-sdk-kms.rb
CHANGED
data/lib/aws-sdk-kms/client.rb
CHANGED
@@ -18,6 +18,7 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
|
18
18
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
19
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
20
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
21
22
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
22
23
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
23
24
|
|
@@ -45,6 +46,7 @@ module Aws::KMS
|
|
45
46
|
add_plugin(Aws::Plugins::ResponsePaging)
|
46
47
|
add_plugin(Aws::Plugins::StubResponses)
|
47
48
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
48
50
|
add_plugin(Aws::Plugins::SignatureV4)
|
49
51
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
50
52
|
|
@@ -310,13 +312,10 @@ module Aws::KMS
|
|
310
312
|
# A list of operations that the grant permits.
|
311
313
|
#
|
312
314
|
# @option params [Types::GrantConstraints] :constraints
|
313
|
-
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
# only when a specified encryption context is present. For more
|
318
|
-
# information, see [Encryption Context][1] in the *AWS Key Management
|
319
|
-
# Service Developer Guide*.
|
315
|
+
# A structure that you can use to allow certain operations in the grant
|
316
|
+
# only when the desired encryption context is present. For more
|
317
|
+
# information about encryption context, see [Encryption Context][1] in
|
318
|
+
# the *AWS Key Management Service Developer Guide*.
|
320
319
|
#
|
321
320
|
#
|
322
321
|
#
|
@@ -994,8 +993,8 @@ module Aws::KMS
|
|
994
993
|
# plaintext data key from memory.
|
995
994
|
#
|
996
995
|
# To return only an encrypted copy of the data key, use
|
997
|
-
# GenerateDataKeyWithoutPlaintext. To return
|
998
|
-
#
|
996
|
+
# GenerateDataKeyWithoutPlaintext. To return a random byte string that
|
997
|
+
# is cryptographically secure, use GenerateRandom.
|
999
998
|
#
|
1000
999
|
# If you use the optional `EncryptionContext` field, you must store at
|
1001
1000
|
# least enough information to be able to reconstruct the full encryption
|
@@ -1189,7 +1188,14 @@ module Aws::KMS
|
|
1189
1188
|
req.send_request(options)
|
1190
1189
|
end
|
1191
1190
|
|
1192
|
-
#
|
1191
|
+
# Returns a random byte string that is cryptographically secure.
|
1192
|
+
#
|
1193
|
+
# For more information about entropy and random number generation, see
|
1194
|
+
# the [AWS Key Management Service Cryptographic Details][1] whitepaper.
|
1195
|
+
#
|
1196
|
+
#
|
1197
|
+
#
|
1198
|
+
# [1]: https://d0.awsstatic.com/whitepapers/KMS-Cryptographic-Details.pdf
|
1193
1199
|
#
|
1194
1200
|
# @option params [Integer] :number_of_bytes
|
1195
1201
|
# The length of the byte string.
|
@@ -2338,7 +2344,7 @@ module Aws::KMS
|
|
2338
2344
|
params: params,
|
2339
2345
|
config: config)
|
2340
2346
|
context[:gem_name] = 'aws-sdk-kms'
|
2341
|
-
context[:gem_version] = '1.0.0.
|
2347
|
+
context[:gem_version] = '1.0.0.rc4'
|
2342
2348
|
Seahorse::Client::Request.new(handlers, context)
|
2343
2349
|
end
|
2344
2350
|
|
data/lib/aws-sdk-kms/types.rb
CHANGED
@@ -179,13 +179,10 @@ module Aws::KMS
|
|
179
179
|
# @return [Array<String>]
|
180
180
|
#
|
181
181
|
# @!attribute [rw] constraints
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
# grant only when a specified encryption context is present. For more
|
187
|
-
# information, see [Encryption Context][1] in the *AWS Key Management
|
188
|
-
# Service Developer Guide*.
|
182
|
+
# A structure that you can use to allow certain operations in the
|
183
|
+
# grant only when the desired encryption context is present. For more
|
184
|
+
# information about encryption context, see [Encryption Context][1] in
|
185
|
+
# the *AWS Key Management Service Developer Guide*.
|
189
186
|
#
|
190
187
|
#
|
191
188
|
#
|
@@ -961,7 +958,7 @@ module Aws::KMS
|
|
961
958
|
end
|
962
959
|
|
963
960
|
# @!attribute [rw] plaintext
|
964
|
-
# The
|
961
|
+
# The random byte string.
|
965
962
|
# @return [String]
|
966
963
|
#
|
967
964
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandomResponse AWS API Documentation
|
@@ -1130,14 +1127,20 @@ module Aws::KMS
|
|
1130
1127
|
include Aws::Structure
|
1131
1128
|
end
|
1132
1129
|
|
1133
|
-
# A structure
|
1134
|
-
#
|
1135
|
-
#
|
1136
|
-
# You can use this structure to allow the operations permitted by the
|
1137
|
-
# grant only when a specified encryption context is present. For more
|
1130
|
+
# A structure that you can use to allow certain operations in the grant
|
1131
|
+
# only when the desired encryption context is present. For more
|
1138
1132
|
# information about encryption context, see [Encryption Context][1] in
|
1139
1133
|
# the *AWS Key Management Service Developer Guide*.
|
1140
1134
|
#
|
1135
|
+
# Grant constraints apply only to operations that accept encryption
|
1136
|
+
# context as input. For example, the ` DescribeKey ` operation does not
|
1137
|
+
# accept encryption context as input. A grant that allows the
|
1138
|
+
# `DescribeKey` operation does so regardless of the grant constraints.
|
1139
|
+
# In constrast, the ` Encrypt ` operation accepts encryption context as
|
1140
|
+
# input. A grant that allows the `Encrypt` operation does so only when
|
1141
|
+
# the encryption context of the `Encrypt` operation satisfies the grant
|
1142
|
+
# constraints.
|
1143
|
+
#
|
1141
1144
|
#
|
1142
1145
|
#
|
1143
1146
|
# [1]: http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html
|
@@ -1155,20 +1158,20 @@ module Aws::KMS
|
|
1155
1158
|
# }
|
1156
1159
|
#
|
1157
1160
|
# @!attribute [rw] encryption_context_subset
|
1158
|
-
#
|
1159
|
-
#
|
1160
|
-
#
|
1161
|
-
#
|
1162
|
-
#
|
1163
|
-
#
|
1161
|
+
# A list of key-value pairs, all of which must be present in the
|
1162
|
+
# encryption context of certain subsequent operations that the grant
|
1163
|
+
# allows. When certain subsequent operations allowed by the grant
|
1164
|
+
# include encryption context that matches this list or is a superset
|
1165
|
+
# of this list, the grant allows the operation. Otherwise, the grant
|
1166
|
+
# does not allow the operation.
|
1164
1167
|
# @return [Hash<String,String>]
|
1165
1168
|
#
|
1166
1169
|
# @!attribute [rw] encryption_context_equals
|
1167
|
-
#
|
1168
|
-
#
|
1169
|
-
#
|
1170
|
+
# A list of key-value pairs that must be present in the encryption
|
1171
|
+
# context of certain subsequent operations that the grant allows. When
|
1172
|
+
# certain subsequent operations allowed by the grant include
|
1170
1173
|
# encryption context that matches this list, the grant allows the
|
1171
|
-
# operation. Otherwise, the
|
1174
|
+
# operation. Otherwise, the grant does not allow the operation.
|
1172
1175
|
# @return [Hash<String,String>]
|
1173
1176
|
#
|
1174
1177
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GrantConstraints AWS API Documentation
|
@@ -1217,7 +1220,8 @@ module Aws::KMS
|
|
1217
1220
|
# @return [Array<String>]
|
1218
1221
|
#
|
1219
1222
|
# @!attribute [rw] constraints
|
1220
|
-
#
|
1223
|
+
# A list of key-value pairs that must be present in the encryption
|
1224
|
+
# context of certain subsequent operations that the grant allows.
|
1221
1225
|
# @return [Types::GrantConstraints]
|
1222
1226
|
#
|
1223
1227
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GrantListEntry AWS API Documentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc4
|
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: 2017-
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|