aws-sdk-kms 1.88.0 → 1.145.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
@@ -11,16 +11,7 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
- require_relative 'aws-sdk-kms/types'
15
- require_relative 'aws-sdk-kms/client_api'
16
- require_relative 'aws-sdk-kms/plugins/endpoints.rb'
17
- require_relative 'aws-sdk-kms/client'
18
- require_relative 'aws-sdk-kms/errors'
19
- require_relative 'aws-sdk-kms/resource'
20
- require_relative 'aws-sdk-kms/endpoint_parameters'
21
- require_relative 'aws-sdk-kms/endpoint_provider'
22
- require_relative 'aws-sdk-kms/endpoints'
23
- require_relative 'aws-sdk-kms/customizations'
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:kms)
24
15
 
25
16
  # This module provides support for AWS Key Management Service. This module is available in the
26
17
  # `aws-sdk-kms` gem.
@@ -51,7 +42,20 @@ require_relative 'aws-sdk-kms/customizations'
51
42
  #
52
43
  # @!group service
53
44
  module Aws::KMS
45
+ autoload :Types, 'aws-sdk-kms/types'
46
+ autoload :ClientApi, 'aws-sdk-kms/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-kms/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-kms/client'
51
+ autoload :Errors, 'aws-sdk-kms/errors'
52
+ autoload :Resource, 'aws-sdk-kms/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-kms/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-kms/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-kms/endpoints'
54
56
 
55
- GEM_VERSION = '1.88.0'
57
+ GEM_VERSION = '1.145.0'
56
58
 
57
59
  end
60
+
61
+ require_relative 'aws-sdk-kms/customizations'
data/sig/client.rbs CHANGED
@@ -15,8 +15,10 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
20
22
  ?client_side_monitoring: bool,
21
23
  ?client_side_monitoring_client_id: String,
22
24
  ?client_side_monitoring_host: String,
@@ -25,6 +27,7 @@ module Aws
25
27
  ?convert_params: bool,
26
28
  ?correct_clock_skew: bool,
27
29
  ?defaults_mode: String,
30
+ ?disable_clock_skew_correction: bool,
28
31
  ?disable_host_prefix_injection: bool,
29
32
  ?disable_request_compression: bool,
30
33
  ?endpoint: String,
@@ -38,7 +41,9 @@ module Aws
38
41
  ?logger: untyped,
39
42
  ?max_attempts: Integer,
40
43
  ?profile: String,
44
+ ?request_checksum_calculation: String,
41
45
  ?request_min_compression_size_bytes: Integer,
46
+ ?response_checksum_validation: String,
42
47
  ?retry_backoff: Proc,
43
48
  ?retry_base_delay: Float,
44
49
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -51,6 +56,7 @@ module Aws
51
56
  ?sigv4a_signing_region_set: Array[String],
52
57
  ?simple_json: bool,
53
58
  ?stub_responses: untyped,
59
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
54
60
  ?token_provider: untyped,
55
61
  ?use_dualstack_endpoint: bool,
56
62
  ?use_fips_endpoint: bool,
@@ -114,6 +120,7 @@ module Aws
114
120
  ?xks_proxy_uri_endpoint: ::String,
115
121
  ?xks_proxy_uri_path: ::String,
116
122
  ?xks_proxy_vpc_endpoint_service_name: ::String,
123
+ ?xks_proxy_vpc_endpoint_service_owner: ::String,
117
124
  ?xks_proxy_authentication_credential: {
118
125
  access_key_id: ::String,
119
126
  raw_secret_access_key: ::String
@@ -130,16 +137,19 @@ module Aws
130
137
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#create_grant-instance_method
131
138
  def create_grant: (
132
139
  key_id: ::String,
133
- grantee_principal: ::String,
140
+ ?grantee_principal: ::String,
134
141
  ?retiring_principal: ::String,
135
- operations: Array[("Decrypt" | "Encrypt" | "GenerateDataKey" | "GenerateDataKeyWithoutPlaintext" | "ReEncryptFrom" | "ReEncryptTo" | "Sign" | "Verify" | "GetPublicKey" | "CreateGrant" | "RetireGrant" | "DescribeKey" | "GenerateDataKeyPair" | "GenerateDataKeyPairWithoutPlaintext" | "GenerateMac" | "VerifyMac" | "DeriveSharedSecret")],
142
+ operations: Array[("Decrypt" | "Encrypt" | "GenerateDataKey" | "GenerateDataKeyWithoutPlaintext" | "ReEncryptFrom" | "ReEncryptTo" | "Sign" | "Verify" | "GetPublicKey" | "CreateGrant" | "RetireGrant" | "DescribeKey" | "GenerateDataKeyPair" | "GenerateDataKeyPairWithoutPlaintext" | "GenerateMac" | "VerifyMac" | "DeriveSharedSecret" | "Encapsulate" | "Decapsulate")],
136
143
  ?constraints: {
137
144
  encryption_context_subset: Hash[::String, ::String]?,
138
- encryption_context_equals: Hash[::String, ::String]?
145
+ encryption_context_equals: Hash[::String, ::String]?,
146
+ source_arn: ::String?
139
147
  },
140
148
  ?grant_tokens: Array[::String],
141
149
  ?name: ::String,
142
- ?dry_run: bool
150
+ ?dry_run: bool,
151
+ ?grantee_service_principal: ::String,
152
+ ?retiring_service_principal: ::String
143
153
  ) -> _CreateGrantResponseSuccess
144
154
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateGrantResponseSuccess
145
155
 
@@ -151,9 +161,9 @@ module Aws
151
161
  def create_key: (
152
162
  ?policy: ::String,
153
163
  ?description: ::String,
154
- ?key_usage: ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT"),
164
+ ?key_usage: ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT" | "ENCAPSULATE_DECAPSULATE"),
155
165
  ?customer_master_key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2"),
156
- ?key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2"),
166
+ ?key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2" | "ML_DSA_44" | "ML_DSA_65" | "ML_DSA_87" | "ECC_NIST_EDWARDS25519" | "ML_KEM_512" | "ML_KEM_768" | "ML_KEM_1024"),
157
167
  ?origin: ("AWS_KMS" | "EXTERNAL" | "AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE"),
158
168
  ?custom_key_store_id: ::String,
159
169
  ?bypass_policy_lockout_safety_check: bool,
@@ -161,23 +171,40 @@ module Aws
161
171
  {
162
172
  tag_key: ::String,
163
173
  tag_value: ::String
164
- },
174
+ }
165
175
  ],
166
176
  ?multi_region: bool,
167
177
  ?xks_key_id: ::String
168
178
  ) -> _CreateKeyResponseSuccess
169
179
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateKeyResponseSuccess
170
180
 
181
+ interface _DecapsulateResponseSuccess
182
+ include ::Seahorse::Client::_ResponseSuccess[Types::DecapsulateResponse]
183
+ def key_id: () -> ::String
184
+ def shared_secret: () -> ::String
185
+ def encapsulation_algorithm: () -> ("ML_KEM")
186
+ end
187
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#decapsulate-instance_method
188
+ def decapsulate: (
189
+ key_id: ::String,
190
+ shared_secret_ciphertext_blob: ::String,
191
+ encapsulation_algorithm: ("ML_KEM"),
192
+ ?grant_tokens: Array[::String],
193
+ ?dry_run: bool
194
+ ) -> _DecapsulateResponseSuccess
195
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DecapsulateResponseSuccess
196
+
171
197
  interface _DecryptResponseSuccess
172
198
  include ::Seahorse::Client::_ResponseSuccess[Types::DecryptResponse]
173
199
  def key_id: () -> ::String
174
200
  def plaintext: () -> ::String
175
201
  def encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
176
202
  def ciphertext_for_recipient: () -> ::String
203
+ def key_material_id: () -> ::String
177
204
  end
178
205
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#decrypt-instance_method
179
206
  def decrypt: (
180
- ciphertext_blob: ::String,
207
+ ?ciphertext_blob: ::String,
181
208
  ?encryption_context: Hash[::String, ::String],
182
209
  ?grant_tokens: Array[::String],
183
210
  ?key_id: ::String,
@@ -186,9 +213,10 @@ module Aws
186
213
  key_encryption_algorithm: ("RSAES_OAEP_SHA_256")?,
187
214
  attestation_document: ::String?
188
215
  },
189
- ?dry_run: bool
216
+ ?dry_run: bool,
217
+ ?dry_run_modifiers: Array[("IGNORE_CIPHERTEXT")]
190
218
  ) -> _DecryptResponseSuccess
191
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DecryptResponseSuccess
219
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DecryptResponseSuccess
192
220
 
193
221
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#delete_alias-instance_method
194
222
  def delete_alias: (
@@ -205,11 +233,17 @@ module Aws
205
233
  ) -> _DeleteCustomKeyStoreResponseSuccess
206
234
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomKeyStoreResponseSuccess
207
235
 
236
+ interface _DeleteImportedKeyMaterialResponseSuccess
237
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteImportedKeyMaterialResponse]
238
+ def key_id: () -> ::String
239
+ def key_material_id: () -> ::String
240
+ end
208
241
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#delete_imported_key_material-instance_method
209
242
  def delete_imported_key_material: (
210
- key_id: ::String
211
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
212
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
243
+ key_id: ::String,
244
+ ?key_material_id: ::String
245
+ ) -> _DeleteImportedKeyMaterialResponseSuccess
246
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteImportedKeyMaterialResponseSuccess
213
247
 
214
248
  interface _DeriveSharedSecretResponseSuccess
215
249
  include ::Seahorse::Client::_ResponseSuccess[Types::DeriveSharedSecretResponse]
@@ -293,6 +327,22 @@ module Aws
293
327
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
294
328
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
295
329
 
330
+ interface _EncapsulateResponseSuccess
331
+ include ::Seahorse::Client::_ResponseSuccess[Types::EncapsulateResponse]
332
+ def key_id: () -> ::String
333
+ def shared_secret: () -> ::String
334
+ def shared_secret_ciphertext_blob: () -> ::String
335
+ def encapsulation_algorithm: () -> ("ML_KEM")
336
+ end
337
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#encapsulate-instance_method
338
+ def encapsulate: (
339
+ key_id: ::String,
340
+ encapsulation_algorithm: ("ML_KEM"),
341
+ ?grant_tokens: Array[::String],
342
+ ?dry_run: bool
343
+ ) -> _EncapsulateResponseSuccess
344
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EncapsulateResponseSuccess
345
+
296
346
  interface _EncryptResponseSuccess
297
347
  include ::Seahorse::Client::_ResponseSuccess[Types::EncryptResponse]
298
348
  def ciphertext_blob: () -> ::String
@@ -316,6 +366,7 @@ module Aws
316
366
  def plaintext: () -> ::String
317
367
  def key_id: () -> ::String
318
368
  def ciphertext_for_recipient: () -> ::String
369
+ def key_material_id: () -> ::String
319
370
  end
320
371
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key-instance_method
321
372
  def generate_data_key: (
@@ -338,14 +389,15 @@ module Aws
338
389
  def private_key_plaintext: () -> ::String
339
390
  def public_key: () -> ::String
340
391
  def key_id: () -> ::String
341
- def key_pair_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
392
+ def key_pair_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2" | "ECC_NIST_EDWARDS25519" | "ML_KEM_512" | "ML_KEM_768" | "ML_KEM_1024")
342
393
  def ciphertext_for_recipient: () -> ::String
394
+ def key_material_id: () -> ::String
343
395
  end
344
396
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_pair-instance_method
345
397
  def generate_data_key_pair: (
346
398
  ?encryption_context: Hash[::String, ::String],
347
399
  key_id: ::String,
348
- key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2"),
400
+ key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2" | "ECC_NIST_EDWARDS25519" | "ML_KEM_512" | "ML_KEM_768" | "ML_KEM_1024"),
349
401
  ?grant_tokens: Array[::String],
350
402
  ?recipient: {
351
403
  key_encryption_algorithm: ("RSAES_OAEP_SHA_256")?,
@@ -360,13 +412,14 @@ module Aws
360
412
  def private_key_ciphertext_blob: () -> ::String
361
413
  def public_key: () -> ::String
362
414
  def key_id: () -> ::String
363
- def key_pair_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
415
+ def key_pair_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2" | "ECC_NIST_EDWARDS25519" | "ML_KEM_512" | "ML_KEM_768" | "ML_KEM_1024")
416
+ def key_material_id: () -> ::String
364
417
  end
365
418
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_pair_without_plaintext-instance_method
366
419
  def generate_data_key_pair_without_plaintext: (
367
420
  ?encryption_context: Hash[::String, ::String],
368
421
  key_id: ::String,
369
- key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2"),
422
+ key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2" | "ECC_NIST_EDWARDS25519" | "ML_KEM_512" | "ML_KEM_768" | "ML_KEM_1024"),
370
423
  ?grant_tokens: Array[::String],
371
424
  ?dry_run: bool
372
425
  ) -> _GenerateDataKeyPairWithoutPlaintextResponseSuccess
@@ -376,6 +429,7 @@ module Aws
376
429
  include ::Seahorse::Client::_ResponseSuccess[Types::GenerateDataKeyWithoutPlaintextResponse]
377
430
  def ciphertext_blob: () -> ::String
378
431
  def key_id: () -> ::String
432
+ def key_material_id: () -> ::String
379
433
  end
380
434
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_without_plaintext-instance_method
381
435
  def generate_data_key_without_plaintext: (
@@ -420,6 +474,19 @@ module Aws
420
474
  ) -> _GenerateRandomResponseSuccess
421
475
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateRandomResponseSuccess
422
476
 
477
+ interface _GetKeyLastUsageResponseSuccess
478
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyLastUsageResponse]
479
+ def key_id: () -> ::String
480
+ def key_last_usage: () -> Types::KeyLastUsageData
481
+ def tracking_start_date: () -> ::Time
482
+ def key_creation_date: () -> ::Time
483
+ end
484
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_last_usage-instance_method
485
+ def get_key_last_usage: (
486
+ key_id: ::String
487
+ ) -> _GetKeyLastUsageResponseSuccess
488
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyLastUsageResponseSuccess
489
+
423
490
  interface _GetKeyPolicyResponseSuccess
424
491
  include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyPolicyResponse]
425
492
  def policy: () -> ::String
@@ -466,11 +533,12 @@ module Aws
466
533
  def key_id: () -> ::String
467
534
  def public_key: () -> ::String
468
535
  def customer_master_key_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2")
469
- def key_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2")
470
- def key_usage: () -> ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT")
536
+ def key_spec: () -> ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2" | "ML_DSA_44" | "ML_DSA_65" | "ML_DSA_87" | "ECC_NIST_EDWARDS25519" | "ML_KEM_512" | "ML_KEM_768" | "ML_KEM_1024")
537
+ def key_usage: () -> ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT" | "ENCAPSULATE_DECAPSULATE")
471
538
  def encryption_algorithms: () -> ::Array[("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")]
472
- def signing_algorithms: () -> ::Array[("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA")]
539
+ def signing_algorithms: () -> ::Array[("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA" | "ML_DSA_SHAKE_256" | "ED25519_SHA_512" | "ED25519_PH_SHA_512")]
473
540
  def key_agreement_algorithms: () -> ::Array[("ECDH")]
541
+ def encapsulation_algorithms: () -> ::Array[("ML_KEM")]
474
542
  end
475
543
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_public_key-instance_method
476
544
  def get_public_key: (
@@ -481,6 +549,8 @@ module Aws
481
549
 
482
550
  interface _ImportKeyMaterialResponseSuccess
483
551
  include ::Seahorse::Client::_ResponseSuccess[Types::ImportKeyMaterialResponse]
552
+ def key_id: () -> ::String
553
+ def key_material_id: () -> ::String
484
554
  end
485
555
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#import_key_material-instance_method
486
556
  def import_key_material: (
@@ -488,7 +558,10 @@ module Aws
488
558
  import_token: ::String,
489
559
  encrypted_key_material: ::String,
490
560
  ?valid_to: ::Time,
491
- ?expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE")
561
+ ?expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE"),
562
+ ?import_type: ("NEW_KEY_MATERIAL" | "EXISTING_KEY_MATERIAL"),
563
+ ?key_material_description: ::String,
564
+ ?key_material_id: ::String
492
565
  ) -> _ImportKeyMaterialResponseSuccess
493
566
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportKeyMaterialResponseSuccess
494
567
 
@@ -518,7 +591,8 @@ module Aws
518
591
  ?marker: ::String,
519
592
  key_id: ::String,
520
593
  ?grant_id: ::String,
521
- ?grantee_principal: ::String
594
+ ?grantee_principal: ::String,
595
+ ?grantee_service_principal: ::String
522
596
  ) -> _ListGrantsResponseSuccess
523
597
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListGrantsResponseSuccess
524
598
 
@@ -545,6 +619,7 @@ module Aws
545
619
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_key_rotations-instance_method
546
620
  def list_key_rotations: (
547
621
  key_id: ::String,
622
+ ?include_key_material: ("ALL_KEY_MATERIAL" | "ROTATIONS_ONLY"),
548
623
  ?limit: ::Integer,
549
624
  ?marker: ::String
550
625
  ) -> _ListKeyRotationsResponseSuccess
@@ -559,7 +634,8 @@ module Aws
559
634
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_keys-instance_method
560
635
  def list_keys: (
561
636
  ?limit: ::Integer,
562
- ?marker: ::String
637
+ ?marker: ::String,
638
+ ?resource_owners: Array[("SELF" | "OTHER_ACCOUNTS_VIA_RAM")]
563
639
  ) -> _ListKeysResponseSuccess
564
640
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeysResponseSuccess
565
641
 
@@ -587,9 +663,10 @@ module Aws
587
663
  def list_retirable_grants: (
588
664
  ?limit: ::Integer,
589
665
  ?marker: ::String,
590
- retiring_principal: ::String
666
+ ?retiring_principal: ::String,
667
+ ?retiring_service_principal: ::String
591
668
  ) -> _ListRetirableGrantsResponseSuccess
592
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRetirableGrantsResponseSuccess
669
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRetirableGrantsResponseSuccess
593
670
 
594
671
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#put_key_policy-instance_method
595
672
  def put_key_policy: (
@@ -607,10 +684,12 @@ module Aws
607
684
  def key_id: () -> ::String
608
685
  def source_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
609
686
  def destination_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
687
+ def source_key_material_id: () -> ::String
688
+ def destination_key_material_id: () -> ::String
610
689
  end
611
690
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#re_encrypt-instance_method
612
691
  def re_encrypt: (
613
- ciphertext_blob: ::String,
692
+ ?ciphertext_blob: ::String,
614
693
  ?source_encryption_context: Hash[::String, ::String],
615
694
  ?source_key_id: ::String,
616
695
  destination_key_id: ::String,
@@ -618,7 +697,8 @@ module Aws
618
697
  ?source_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
619
698
  ?destination_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
620
699
  ?grant_tokens: Array[::String],
621
- ?dry_run: bool
700
+ ?dry_run: bool,
701
+ ?dry_run_modifiers: Array[("IGNORE_CIPHERTEXT")]
622
702
  ) -> _ReEncryptResponseSuccess
623
703
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReEncryptResponseSuccess
624
704
 
@@ -639,7 +719,7 @@ module Aws
639
719
  {
640
720
  tag_key: ::String,
641
721
  tag_value: ::String
642
- },
722
+ }
643
723
  ]
644
724
  ) -> _ReplicateKeyResponseSuccess
645
725
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReplicateKeyResponseSuccess
@@ -689,15 +769,15 @@ module Aws
689
769
  include ::Seahorse::Client::_ResponseSuccess[Types::SignResponse]
690
770
  def key_id: () -> ::String
691
771
  def signature: () -> ::String
692
- def signing_algorithm: () -> ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA")
772
+ def signing_algorithm: () -> ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA" | "ML_DSA_SHAKE_256" | "ED25519_SHA_512" | "ED25519_PH_SHA_512")
693
773
  end
694
774
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#sign-instance_method
695
775
  def sign: (
696
776
  key_id: ::String,
697
777
  message: ::String,
698
- ?message_type: ("RAW" | "DIGEST"),
778
+ ?message_type: ("RAW" | "DIGEST" | "EXTERNAL_MU"),
699
779
  ?grant_tokens: Array[::String],
700
- signing_algorithm: ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA"),
780
+ signing_algorithm: ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA" | "ML_DSA_SHAKE_256" | "ED25519_SHA_512" | "ED25519_PH_SHA_512"),
701
781
  ?dry_run: bool
702
782
  ) -> _SignResponseSuccess
703
783
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SignResponseSuccess
@@ -709,7 +789,7 @@ module Aws
709
789
  {
710
790
  tag_key: ::String,
711
791
  tag_value: ::String
712
- },
792
+ }
713
793
  ]
714
794
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
715
795
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
@@ -740,6 +820,7 @@ module Aws
740
820
  ?xks_proxy_uri_endpoint: ::String,
741
821
  ?xks_proxy_uri_path: ::String,
742
822
  ?xks_proxy_vpc_endpoint_service_name: ::String,
823
+ ?xks_proxy_vpc_endpoint_service_owner: ::String,
743
824
  ?xks_proxy_authentication_credential: {
744
825
  access_key_id: ::String,
745
826
  raw_secret_access_key: ::String
@@ -766,15 +847,15 @@ module Aws
766
847
  include ::Seahorse::Client::_ResponseSuccess[Types::VerifyResponse]
767
848
  def key_id: () -> ::String
768
849
  def signature_valid: () -> bool
769
- def signing_algorithm: () -> ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA")
850
+ def signing_algorithm: () -> ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA" | "ML_DSA_SHAKE_256" | "ED25519_SHA_512" | "ED25519_PH_SHA_512")
770
851
  end
771
852
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#verify-instance_method
772
853
  def verify: (
773
854
  key_id: ::String,
774
855
  message: ::String,
775
- ?message_type: ("RAW" | "DIGEST"),
856
+ ?message_type: ("RAW" | "DIGEST" | "EXTERNAL_MU"),
776
857
  signature: ::String,
777
- signing_algorithm: ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA"),
858
+ signing_algorithm: ("RSASSA_PSS_SHA_256" | "RSASSA_PSS_SHA_384" | "RSASSA_PSS_SHA_512" | "RSASSA_PKCS1_V1_5_SHA_256" | "RSASSA_PKCS1_V1_5_SHA_384" | "RSASSA_PKCS1_V1_5_SHA_512" | "ECDSA_SHA_256" | "ECDSA_SHA_384" | "ECDSA_SHA_512" | "SM2DSA" | "ML_DSA_SHAKE_256" | "ED25519_SHA_512" | "ED25519_PH_SHA_512"),
778
859
  ?grant_tokens: Array[::String],
779
860
  ?dry_run: bool
780
861
  ) -> _VerifyResponseSuccess