aws-sdk-kms 1.102.0 → 1.103.0

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.
data/lib/aws-sdk-kms.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::KMS
54
54
  autoload :EndpointProvider, 'aws-sdk-kms/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-kms/endpoints'
56
56
 
57
- GEM_VERSION = '1.102.0'
57
+ GEM_VERSION = '1.103.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -178,6 +178,7 @@ module Aws
178
178
  def plaintext: () -> ::String
179
179
  def encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
180
180
  def ciphertext_for_recipient: () -> ::String
181
+ def key_material_id: () -> ::String
181
182
  end
182
183
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#decrypt-instance_method
183
184
  def decrypt: (
@@ -209,11 +210,17 @@ module Aws
209
210
  ) -> _DeleteCustomKeyStoreResponseSuccess
210
211
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomKeyStoreResponseSuccess
211
212
 
213
+ interface _DeleteImportedKeyMaterialResponseSuccess
214
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteImportedKeyMaterialResponse]
215
+ def key_id: () -> ::String
216
+ def key_material_id: () -> ::String
217
+ end
212
218
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#delete_imported_key_material-instance_method
213
219
  def delete_imported_key_material: (
214
- key_id: ::String
215
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
216
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
220
+ key_id: ::String,
221
+ ?key_material_id: ::String
222
+ ) -> _DeleteImportedKeyMaterialResponseSuccess
223
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteImportedKeyMaterialResponseSuccess
217
224
 
218
225
  interface _DeriveSharedSecretResponseSuccess
219
226
  include ::Seahorse::Client::_ResponseSuccess[Types::DeriveSharedSecretResponse]
@@ -302,6 +309,7 @@ module Aws
302
309
  def ciphertext_blob: () -> ::String
303
310
  def key_id: () -> ::String
304
311
  def encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
312
+ def key_material_id: () -> ::String
305
313
  end
306
314
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#encrypt-instance_method
307
315
  def encrypt: (
@@ -320,6 +328,7 @@ module Aws
320
328
  def plaintext: () -> ::String
321
329
  def key_id: () -> ::String
322
330
  def ciphertext_for_recipient: () -> ::String
331
+ def key_material_id: () -> ::String
323
332
  end
324
333
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key-instance_method
325
334
  def generate_data_key: (
@@ -344,6 +353,7 @@ module Aws
344
353
  def key_id: () -> ::String
345
354
  def key_pair_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
346
355
  def ciphertext_for_recipient: () -> ::String
356
+ def key_material_id: () -> ::String
347
357
  end
348
358
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_pair-instance_method
349
359
  def generate_data_key_pair: (
@@ -365,6 +375,7 @@ module Aws
365
375
  def public_key: () -> ::String
366
376
  def key_id: () -> ::String
367
377
  def key_pair_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
378
+ def key_material_id: () -> ::String
368
379
  end
369
380
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_pair_without_plaintext-instance_method
370
381
  def generate_data_key_pair_without_plaintext: (
@@ -380,6 +391,7 @@ module Aws
380
391
  include ::Seahorse::Client::_ResponseSuccess[Types::GenerateDataKeyWithoutPlaintextResponse]
381
392
  def ciphertext_blob: () -> ::String
382
393
  def key_id: () -> ::String
394
+ def key_material_id: () -> ::String
383
395
  end
384
396
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_without_plaintext-instance_method
385
397
  def generate_data_key_without_plaintext: (
@@ -485,6 +497,8 @@ module Aws
485
497
 
486
498
  interface _ImportKeyMaterialResponseSuccess
487
499
  include ::Seahorse::Client::_ResponseSuccess[Types::ImportKeyMaterialResponse]
500
+ def key_id: () -> ::String
501
+ def key_material_id: () -> ::String
488
502
  end
489
503
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#import_key_material-instance_method
490
504
  def import_key_material: (
@@ -492,7 +506,10 @@ module Aws
492
506
  import_token: ::String,
493
507
  encrypted_key_material: ::String,
494
508
  ?valid_to: ::Time,
495
- ?expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE")
509
+ ?expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE"),
510
+ ?import_type: ("NEW_KEY_MATERIAL" | "EXISTING_KEY_MATERIAL"),
511
+ ?key_material_description: ::String,
512
+ ?key_material_id: ::String
496
513
  ) -> _ImportKeyMaterialResponseSuccess
497
514
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportKeyMaterialResponseSuccess
498
515
 
@@ -549,6 +566,7 @@ module Aws
549
566
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_key_rotations-instance_method
550
567
  def list_key_rotations: (
551
568
  key_id: ::String,
569
+ ?include_key_material: ("ALL_KEY_MATERIAL" | "ROTATIONS_ONLY"),
552
570
  ?limit: ::Integer,
553
571
  ?marker: ::String
554
572
  ) -> _ListKeyRotationsResponseSuccess
@@ -611,6 +629,8 @@ module Aws
611
629
  def key_id: () -> ::String
612
630
  def source_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
613
631
  def destination_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
632
+ def source_key_material_id: () -> ::String
633
+ def destination_key_material_id: () -> ::String
614
634
  end
615
635
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#re_encrypt-instance_method
616
636
  def re_encrypt: (
data/sig/types.rbs CHANGED
@@ -182,6 +182,7 @@ module Aws::KMS
182
182
  attr_accessor plaintext: ::String
183
183
  attr_accessor encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
184
184
  attr_accessor ciphertext_for_recipient: ::String
185
+ attr_accessor key_material_id: ::String
185
186
  SENSITIVE: [:plaintext]
186
187
  end
187
188
 
@@ -200,6 +201,13 @@ module Aws::KMS
200
201
 
201
202
  class DeleteImportedKeyMaterialRequest
202
203
  attr_accessor key_id: ::String
204
+ attr_accessor key_material_id: ::String
205
+ SENSITIVE: []
206
+ end
207
+
208
+ class DeleteImportedKeyMaterialResponse
209
+ attr_accessor key_id: ::String
210
+ attr_accessor key_material_id: ::String
203
211
  SENSITIVE: []
204
212
  end
205
213
 
@@ -306,6 +314,7 @@ module Aws::KMS
306
314
  attr_accessor ciphertext_blob: ::String
307
315
  attr_accessor key_id: ::String
308
316
  attr_accessor encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
317
+ attr_accessor key_material_id: ::String
309
318
  SENSITIVE: []
310
319
  end
311
320
 
@@ -331,6 +340,7 @@ module Aws::KMS
331
340
  attr_accessor key_id: ::String
332
341
  attr_accessor key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
333
342
  attr_accessor ciphertext_for_recipient: ::String
343
+ attr_accessor key_material_id: ::String
334
344
  SENSITIVE: [:private_key_plaintext]
335
345
  end
336
346
 
@@ -348,6 +358,7 @@ module Aws::KMS
348
358
  attr_accessor public_key: ::String
349
359
  attr_accessor key_id: ::String
350
360
  attr_accessor key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
361
+ attr_accessor key_material_id: ::String
351
362
  SENSITIVE: []
352
363
  end
353
364
 
@@ -367,6 +378,7 @@ module Aws::KMS
367
378
  attr_accessor plaintext: ::String
368
379
  attr_accessor key_id: ::String
369
380
  attr_accessor ciphertext_for_recipient: ::String
381
+ attr_accessor key_material_id: ::String
370
382
  SENSITIVE: [:plaintext]
371
383
  end
372
384
 
@@ -383,6 +395,7 @@ module Aws::KMS
383
395
  class GenerateDataKeyWithoutPlaintextResponse
384
396
  attr_accessor ciphertext_blob: ::String
385
397
  attr_accessor key_id: ::String
398
+ attr_accessor key_material_id: ::String
386
399
  SENSITIVE: []
387
400
  end
388
401
 
@@ -499,10 +512,16 @@ module Aws::KMS
499
512
  attr_accessor encrypted_key_material: ::String
500
513
  attr_accessor valid_to: ::Time
501
514
  attr_accessor expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE")
515
+ attr_accessor import_type: ("NEW_KEY_MATERIAL" | "EXISTING_KEY_MATERIAL")
516
+ attr_accessor key_material_description: ::String
517
+ attr_accessor key_material_id: ::String
502
518
  SENSITIVE: []
503
519
  end
504
520
 
505
- class ImportKeyMaterialResponse < Aws::EmptyStructure
521
+ class ImportKeyMaterialResponse
522
+ attr_accessor key_id: ::String
523
+ attr_accessor key_material_id: ::String
524
+ SENSITIVE: []
506
525
  end
507
526
 
508
527
  class IncorrectKeyException
@@ -612,6 +631,7 @@ module Aws::KMS
612
631
  attr_accessor pending_deletion_window_in_days: ::Integer
613
632
  attr_accessor mac_algorithms: ::Array[("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")]
614
633
  attr_accessor xks_key_configuration: Types::XksKeyConfigurationType
634
+ attr_accessor current_key_material_id: ::String
615
635
  SENSITIVE: []
616
636
  end
617
637
 
@@ -671,6 +691,7 @@ module Aws::KMS
671
691
 
672
692
  class ListKeyRotationsRequest
673
693
  attr_accessor key_id: ::String
694
+ attr_accessor include_key_material: ("ALL_KEY_MATERIAL" | "ROTATIONS_ONLY")
674
695
  attr_accessor limit: ::Integer
675
696
  attr_accessor marker: ::String
676
697
  SENSITIVE: []
@@ -767,6 +788,8 @@ module Aws::KMS
767
788
  attr_accessor key_id: ::String
768
789
  attr_accessor source_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
769
790
  attr_accessor destination_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
791
+ attr_accessor source_key_material_id: ::String
792
+ attr_accessor destination_key_material_id: ::String
770
793
  SENSITIVE: []
771
794
  end
772
795
 
@@ -820,6 +843,12 @@ module Aws::KMS
820
843
 
821
844
  class RotationsListEntry
822
845
  attr_accessor key_id: ::String
846
+ attr_accessor key_material_id: ::String
847
+ attr_accessor key_material_description: ::String
848
+ attr_accessor import_state: ("IMPORTED" | "PENDING_IMPORT")
849
+ attr_accessor key_material_state: ("NON_CURRENT" | "CURRENT" | "PENDING_ROTATION")
850
+ attr_accessor expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE")
851
+ attr_accessor valid_to: ::Time
823
852
  attr_accessor rotation_date: ::Time
824
853
  attr_accessor rotation_type: ("AUTOMATIC" | "ON_DEMAND")
825
854
  SENSITIVE: []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.102.0
4
+ version: 1.103.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services