aws-sdk-kms 1.76.0 → 1.118.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/sig/client.rbs ADDED
@@ -0,0 +1,828 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module KMS
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_host_prefix_injection: bool,
31
+ ?disable_request_compression: bool,
32
+ ?endpoint: String,
33
+ ?endpoint_cache_max_entries: Integer,
34
+ ?endpoint_cache_max_threads: Integer,
35
+ ?endpoint_cache_poll_interval: Integer,
36
+ ?endpoint_discovery: bool,
37
+ ?ignore_configured_endpoint_urls: bool,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?profile: String,
43
+ ?request_checksum_calculation: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
46
+ ?retry_backoff: Proc,
47
+ ?retry_base_delay: Float,
48
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
49
+ ?retry_limit: Integer,
50
+ ?retry_max_delay: Integer,
51
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
52
+ ?sdk_ua_app_id: String,
53
+ ?secret_access_key: String,
54
+ ?session_token: String,
55
+ ?sigv4a_signing_region_set: Array[String],
56
+ ?simple_json: bool,
57
+ ?stub_responses: untyped,
58
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
59
+ ?token_provider: untyped,
60
+ ?use_dualstack_endpoint: bool,
61
+ ?use_fips_endpoint: bool,
62
+ ?validate_params: bool,
63
+ ?endpoint_provider: untyped,
64
+ ?http_proxy: String,
65
+ ?http_open_timeout: (Float | Integer),
66
+ ?http_read_timeout: (Float | Integer),
67
+ ?http_idle_timeout: (Float | Integer),
68
+ ?http_continue_timeout: (Float | Integer),
69
+ ?ssl_timeout: (Float | Integer | nil),
70
+ ?http_wire_trace: bool,
71
+ ?ssl_verify_peer: bool,
72
+ ?ssl_ca_bundle: String,
73
+ ?ssl_ca_directory: String,
74
+ ?ssl_ca_store: String,
75
+ ?on_chunk_received: Proc,
76
+ ?on_chunk_sent: Proc,
77
+ ?raise_response_errors: bool
78
+ ) -> instance
79
+ | (?Hash[Symbol, untyped]) -> instance
80
+
81
+
82
+ interface _CancelKeyDeletionResponseSuccess
83
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelKeyDeletionResponse]
84
+ def key_id: () -> ::String
85
+ end
86
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#cancel_key_deletion-instance_method
87
+ def cancel_key_deletion: (
88
+ key_id: ::String
89
+ ) -> _CancelKeyDeletionResponseSuccess
90
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelKeyDeletionResponseSuccess
91
+
92
+ interface _ConnectCustomKeyStoreResponseSuccess
93
+ include ::Seahorse::Client::_ResponseSuccess[Types::ConnectCustomKeyStoreResponse]
94
+ end
95
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#connect_custom_key_store-instance_method
96
+ def connect_custom_key_store: (
97
+ custom_key_store_id: ::String
98
+ ) -> _ConnectCustomKeyStoreResponseSuccess
99
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ConnectCustomKeyStoreResponseSuccess
100
+
101
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#create_alias-instance_method
102
+ def create_alias: (
103
+ alias_name: ::String,
104
+ target_key_id: ::String
105
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
106
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
107
+
108
+ interface _CreateCustomKeyStoreResponseSuccess
109
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomKeyStoreResponse]
110
+ def custom_key_store_id: () -> ::String
111
+ end
112
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#create_custom_key_store-instance_method
113
+ def create_custom_key_store: (
114
+ custom_key_store_name: ::String,
115
+ ?cloud_hsm_cluster_id: ::String,
116
+ ?trust_anchor_certificate: ::String,
117
+ ?key_store_password: ::String,
118
+ ?custom_key_store_type: ("AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE"),
119
+ ?xks_proxy_uri_endpoint: ::String,
120
+ ?xks_proxy_uri_path: ::String,
121
+ ?xks_proxy_vpc_endpoint_service_name: ::String,
122
+ ?xks_proxy_vpc_endpoint_service_owner: ::String,
123
+ ?xks_proxy_authentication_credential: {
124
+ access_key_id: ::String,
125
+ raw_secret_access_key: ::String
126
+ },
127
+ ?xks_proxy_connectivity: ("PUBLIC_ENDPOINT" | "VPC_ENDPOINT_SERVICE")
128
+ ) -> _CreateCustomKeyStoreResponseSuccess
129
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomKeyStoreResponseSuccess
130
+
131
+ interface _CreateGrantResponseSuccess
132
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateGrantResponse]
133
+ def grant_token: () -> ::String
134
+ def grant_id: () -> ::String
135
+ end
136
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#create_grant-instance_method
137
+ def create_grant: (
138
+ key_id: ::String,
139
+ grantee_principal: ::String,
140
+ ?retiring_principal: ::String,
141
+ operations: Array[("Decrypt" | "Encrypt" | "GenerateDataKey" | "GenerateDataKeyWithoutPlaintext" | "ReEncryptFrom" | "ReEncryptTo" | "Sign" | "Verify" | "GetPublicKey" | "CreateGrant" | "RetireGrant" | "DescribeKey" | "GenerateDataKeyPair" | "GenerateDataKeyPairWithoutPlaintext" | "GenerateMac" | "VerifyMac" | "DeriveSharedSecret")],
142
+ ?constraints: {
143
+ encryption_context_subset: Hash[::String, ::String]?,
144
+ encryption_context_equals: Hash[::String, ::String]?
145
+ },
146
+ ?grant_tokens: Array[::String],
147
+ ?name: ::String,
148
+ ?dry_run: bool
149
+ ) -> _CreateGrantResponseSuccess
150
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateGrantResponseSuccess
151
+
152
+ interface _CreateKeyResponseSuccess
153
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateKeyResponse]
154
+ def key_metadata: () -> Types::KeyMetadata
155
+ end
156
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#create_key-instance_method
157
+ def create_key: (
158
+ ?policy: ::String,
159
+ ?description: ::String,
160
+ ?key_usage: ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT"),
161
+ ?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"),
162
+ ?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"),
163
+ ?origin: ("AWS_KMS" | "EXTERNAL" | "AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE"),
164
+ ?custom_key_store_id: ::String,
165
+ ?bypass_policy_lockout_safety_check: bool,
166
+ ?tags: Array[
167
+ {
168
+ tag_key: ::String,
169
+ tag_value: ::String
170
+ },
171
+ ],
172
+ ?multi_region: bool,
173
+ ?xks_key_id: ::String
174
+ ) -> _CreateKeyResponseSuccess
175
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateKeyResponseSuccess
176
+
177
+ interface _DecryptResponseSuccess
178
+ include ::Seahorse::Client::_ResponseSuccess[Types::DecryptResponse]
179
+ def key_id: () -> ::String
180
+ def plaintext: () -> ::String
181
+ def encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
182
+ def ciphertext_for_recipient: () -> ::String
183
+ def key_material_id: () -> ::String
184
+ end
185
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#decrypt-instance_method
186
+ def decrypt: (
187
+ ciphertext_blob: ::String,
188
+ ?encryption_context: Hash[::String, ::String],
189
+ ?grant_tokens: Array[::String],
190
+ ?key_id: ::String,
191
+ ?encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
192
+ ?recipient: {
193
+ key_encryption_algorithm: ("RSAES_OAEP_SHA_256")?,
194
+ attestation_document: ::String?
195
+ },
196
+ ?dry_run: bool
197
+ ) -> _DecryptResponseSuccess
198
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DecryptResponseSuccess
199
+
200
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#delete_alias-instance_method
201
+ def delete_alias: (
202
+ alias_name: ::String
203
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
204
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
205
+
206
+ interface _DeleteCustomKeyStoreResponseSuccess
207
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCustomKeyStoreResponse]
208
+ end
209
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#delete_custom_key_store-instance_method
210
+ def delete_custom_key_store: (
211
+ custom_key_store_id: ::String
212
+ ) -> _DeleteCustomKeyStoreResponseSuccess
213
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomKeyStoreResponseSuccess
214
+
215
+ interface _DeleteImportedKeyMaterialResponseSuccess
216
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteImportedKeyMaterialResponse]
217
+ def key_id: () -> ::String
218
+ def key_material_id: () -> ::String
219
+ end
220
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#delete_imported_key_material-instance_method
221
+ def delete_imported_key_material: (
222
+ key_id: ::String,
223
+ ?key_material_id: ::String
224
+ ) -> _DeleteImportedKeyMaterialResponseSuccess
225
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteImportedKeyMaterialResponseSuccess
226
+
227
+ interface _DeriveSharedSecretResponseSuccess
228
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeriveSharedSecretResponse]
229
+ def key_id: () -> ::String
230
+ def shared_secret: () -> ::String
231
+ def ciphertext_for_recipient: () -> ::String
232
+ def key_agreement_algorithm: () -> ("ECDH")
233
+ def key_origin: () -> ("AWS_KMS" | "EXTERNAL" | "AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE")
234
+ end
235
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#derive_shared_secret-instance_method
236
+ def derive_shared_secret: (
237
+ key_id: ::String,
238
+ key_agreement_algorithm: ("ECDH"),
239
+ public_key: ::String,
240
+ ?grant_tokens: Array[::String],
241
+ ?dry_run: bool,
242
+ ?recipient: {
243
+ key_encryption_algorithm: ("RSAES_OAEP_SHA_256")?,
244
+ attestation_document: ::String?
245
+ }
246
+ ) -> _DeriveSharedSecretResponseSuccess
247
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeriveSharedSecretResponseSuccess
248
+
249
+ interface _DescribeCustomKeyStoresResponseSuccess
250
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeCustomKeyStoresResponse]
251
+ def custom_key_stores: () -> ::Array[Types::CustomKeyStoresListEntry]
252
+ def next_marker: () -> ::String
253
+ def truncated: () -> bool
254
+ end
255
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#describe_custom_key_stores-instance_method
256
+ def describe_custom_key_stores: (
257
+ ?custom_key_store_id: ::String,
258
+ ?custom_key_store_name: ::String,
259
+ ?limit: ::Integer,
260
+ ?marker: ::String
261
+ ) -> _DescribeCustomKeyStoresResponseSuccess
262
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeCustomKeyStoresResponseSuccess
263
+
264
+ interface _DescribeKeyResponseSuccess
265
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeKeyResponse]
266
+ def key_metadata: () -> Types::KeyMetadata
267
+ end
268
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#describe_key-instance_method
269
+ def describe_key: (
270
+ key_id: ::String,
271
+ ?grant_tokens: Array[::String]
272
+ ) -> _DescribeKeyResponseSuccess
273
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeKeyResponseSuccess
274
+
275
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#disable_key-instance_method
276
+ def disable_key: (
277
+ key_id: ::String
278
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
279
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
280
+
281
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#disable_key_rotation-instance_method
282
+ def disable_key_rotation: (
283
+ key_id: ::String
284
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
285
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
286
+
287
+ interface _DisconnectCustomKeyStoreResponseSuccess
288
+ include ::Seahorse::Client::_ResponseSuccess[Types::DisconnectCustomKeyStoreResponse]
289
+ end
290
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#disconnect_custom_key_store-instance_method
291
+ def disconnect_custom_key_store: (
292
+ custom_key_store_id: ::String
293
+ ) -> _DisconnectCustomKeyStoreResponseSuccess
294
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisconnectCustomKeyStoreResponseSuccess
295
+
296
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#enable_key-instance_method
297
+ def enable_key: (
298
+ key_id: ::String
299
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
300
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
301
+
302
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#enable_key_rotation-instance_method
303
+ def enable_key_rotation: (
304
+ key_id: ::String,
305
+ ?rotation_period_in_days: ::Integer
306
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
307
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
308
+
309
+ interface _EncryptResponseSuccess
310
+ include ::Seahorse::Client::_ResponseSuccess[Types::EncryptResponse]
311
+ def ciphertext_blob: () -> ::String
312
+ def key_id: () -> ::String
313
+ def encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
314
+ end
315
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#encrypt-instance_method
316
+ def encrypt: (
317
+ key_id: ::String,
318
+ plaintext: ::String,
319
+ ?encryption_context: Hash[::String, ::String],
320
+ ?grant_tokens: Array[::String],
321
+ ?encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
322
+ ?dry_run: bool
323
+ ) -> _EncryptResponseSuccess
324
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EncryptResponseSuccess
325
+
326
+ interface _GenerateDataKeyResponseSuccess
327
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateDataKeyResponse]
328
+ def ciphertext_blob: () -> ::String
329
+ def plaintext: () -> ::String
330
+ def key_id: () -> ::String
331
+ def ciphertext_for_recipient: () -> ::String
332
+ def key_material_id: () -> ::String
333
+ end
334
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key-instance_method
335
+ def generate_data_key: (
336
+ key_id: ::String,
337
+ ?encryption_context: Hash[::String, ::String],
338
+ ?number_of_bytes: ::Integer,
339
+ ?key_spec: ("AES_256" | "AES_128"),
340
+ ?grant_tokens: Array[::String],
341
+ ?recipient: {
342
+ key_encryption_algorithm: ("RSAES_OAEP_SHA_256")?,
343
+ attestation_document: ::String?
344
+ },
345
+ ?dry_run: bool
346
+ ) -> _GenerateDataKeyResponseSuccess
347
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateDataKeyResponseSuccess
348
+
349
+ interface _GenerateDataKeyPairResponseSuccess
350
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateDataKeyPairResponse]
351
+ def private_key_ciphertext_blob: () -> ::String
352
+ def private_key_plaintext: () -> ::String
353
+ def public_key: () -> ::String
354
+ def key_id: () -> ::String
355
+ 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")
356
+ def ciphertext_for_recipient: () -> ::String
357
+ def key_material_id: () -> ::String
358
+ end
359
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_pair-instance_method
360
+ def generate_data_key_pair: (
361
+ ?encryption_context: Hash[::String, ::String],
362
+ key_id: ::String,
363
+ 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"),
364
+ ?grant_tokens: Array[::String],
365
+ ?recipient: {
366
+ key_encryption_algorithm: ("RSAES_OAEP_SHA_256")?,
367
+ attestation_document: ::String?
368
+ },
369
+ ?dry_run: bool
370
+ ) -> _GenerateDataKeyPairResponseSuccess
371
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateDataKeyPairResponseSuccess
372
+
373
+ interface _GenerateDataKeyPairWithoutPlaintextResponseSuccess
374
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateDataKeyPairWithoutPlaintextResponse]
375
+ def private_key_ciphertext_blob: () -> ::String
376
+ def public_key: () -> ::String
377
+ def key_id: () -> ::String
378
+ 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")
379
+ def key_material_id: () -> ::String
380
+ end
381
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_pair_without_plaintext-instance_method
382
+ def generate_data_key_pair_without_plaintext: (
383
+ ?encryption_context: Hash[::String, ::String],
384
+ key_id: ::String,
385
+ 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"),
386
+ ?grant_tokens: Array[::String],
387
+ ?dry_run: bool
388
+ ) -> _GenerateDataKeyPairWithoutPlaintextResponseSuccess
389
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateDataKeyPairWithoutPlaintextResponseSuccess
390
+
391
+ interface _GenerateDataKeyWithoutPlaintextResponseSuccess
392
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateDataKeyWithoutPlaintextResponse]
393
+ def ciphertext_blob: () -> ::String
394
+ def key_id: () -> ::String
395
+ def key_material_id: () -> ::String
396
+ end
397
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_data_key_without_plaintext-instance_method
398
+ def generate_data_key_without_plaintext: (
399
+ key_id: ::String,
400
+ ?encryption_context: Hash[::String, ::String],
401
+ ?key_spec: ("AES_256" | "AES_128"),
402
+ ?number_of_bytes: ::Integer,
403
+ ?grant_tokens: Array[::String],
404
+ ?dry_run: bool
405
+ ) -> _GenerateDataKeyWithoutPlaintextResponseSuccess
406
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateDataKeyWithoutPlaintextResponseSuccess
407
+
408
+ interface _GenerateMacResponseSuccess
409
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateMacResponse]
410
+ def mac: () -> ::String
411
+ def mac_algorithm: () -> ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")
412
+ def key_id: () -> ::String
413
+ end
414
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_mac-instance_method
415
+ def generate_mac: (
416
+ message: ::String,
417
+ key_id: ::String,
418
+ mac_algorithm: ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512"),
419
+ ?grant_tokens: Array[::String],
420
+ ?dry_run: bool
421
+ ) -> _GenerateMacResponseSuccess
422
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMacResponseSuccess
423
+
424
+ interface _GenerateRandomResponseSuccess
425
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateRandomResponse]
426
+ def plaintext: () -> ::String
427
+ def ciphertext_for_recipient: () -> ::String
428
+ end
429
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#generate_random-instance_method
430
+ def generate_random: (
431
+ ?number_of_bytes: ::Integer,
432
+ ?custom_key_store_id: ::String,
433
+ ?recipient: {
434
+ key_encryption_algorithm: ("RSAES_OAEP_SHA_256")?,
435
+ attestation_document: ::String?
436
+ }
437
+ ) -> _GenerateRandomResponseSuccess
438
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateRandomResponseSuccess
439
+
440
+ interface _GetKeyPolicyResponseSuccess
441
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyPolicyResponse]
442
+ def policy: () -> ::String
443
+ def policy_name: () -> ::String
444
+ end
445
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_policy-instance_method
446
+ def get_key_policy: (
447
+ key_id: ::String,
448
+ ?policy_name: ::String
449
+ ) -> _GetKeyPolicyResponseSuccess
450
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyPolicyResponseSuccess
451
+
452
+ interface _GetKeyRotationStatusResponseSuccess
453
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyRotationStatusResponse]
454
+ def key_rotation_enabled: () -> bool
455
+ def key_id: () -> ::String
456
+ def rotation_period_in_days: () -> ::Integer
457
+ def next_rotation_date: () -> ::Time
458
+ def on_demand_rotation_start_date: () -> ::Time
459
+ end
460
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_rotation_status-instance_method
461
+ def get_key_rotation_status: (
462
+ key_id: ::String
463
+ ) -> _GetKeyRotationStatusResponseSuccess
464
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyRotationStatusResponseSuccess
465
+
466
+ interface _GetParametersForImportResponseSuccess
467
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetParametersForImportResponse]
468
+ def key_id: () -> ::String
469
+ def import_token: () -> ::String
470
+ def public_key: () -> ::String
471
+ def parameters_valid_to: () -> ::Time
472
+ end
473
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_parameters_for_import-instance_method
474
+ def get_parameters_for_import: (
475
+ key_id: ::String,
476
+ wrapping_algorithm: ("RSAES_PKCS1_V1_5" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "RSA_AES_KEY_WRAP_SHA_1" | "RSA_AES_KEY_WRAP_SHA_256" | "SM2PKE"),
477
+ wrapping_key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "SM2")
478
+ ) -> _GetParametersForImportResponseSuccess
479
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForImportResponseSuccess
480
+
481
+ interface _GetPublicKeyResponseSuccess
482
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPublicKeyResponse]
483
+ def key_id: () -> ::String
484
+ def public_key: () -> ::String
485
+ 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")
486
+ 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")
487
+ def key_usage: () -> ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT")
488
+ def encryption_algorithms: () -> ::Array[("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")]
489
+ 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")]
490
+ def key_agreement_algorithms: () -> ::Array[("ECDH")]
491
+ end
492
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_public_key-instance_method
493
+ def get_public_key: (
494
+ key_id: ::String,
495
+ ?grant_tokens: Array[::String]
496
+ ) -> _GetPublicKeyResponseSuccess
497
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPublicKeyResponseSuccess
498
+
499
+ interface _ImportKeyMaterialResponseSuccess
500
+ include ::Seahorse::Client::_ResponseSuccess[Types::ImportKeyMaterialResponse]
501
+ def key_id: () -> ::String
502
+ def key_material_id: () -> ::String
503
+ end
504
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#import_key_material-instance_method
505
+ def import_key_material: (
506
+ key_id: ::String,
507
+ import_token: ::String,
508
+ encrypted_key_material: ::String,
509
+ ?valid_to: ::Time,
510
+ ?expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE"),
511
+ ?import_type: ("NEW_KEY_MATERIAL" | "EXISTING_KEY_MATERIAL"),
512
+ ?key_material_description: ::String,
513
+ ?key_material_id: ::String
514
+ ) -> _ImportKeyMaterialResponseSuccess
515
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportKeyMaterialResponseSuccess
516
+
517
+ interface _ListAliasesResponseSuccess
518
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAliasesResponse]
519
+ def aliases: () -> ::Array[Types::AliasListEntry]
520
+ def next_marker: () -> ::String
521
+ def truncated: () -> bool
522
+ end
523
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_aliases-instance_method
524
+ def list_aliases: (
525
+ ?key_id: ::String,
526
+ ?limit: ::Integer,
527
+ ?marker: ::String
528
+ ) -> _ListAliasesResponseSuccess
529
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAliasesResponseSuccess
530
+
531
+ interface _ListGrantsResponseSuccess
532
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListGrantsResponse]
533
+ def grants: () -> ::Array[Types::GrantListEntry]
534
+ def next_marker: () -> ::String
535
+ def truncated: () -> bool
536
+ end
537
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_grants-instance_method
538
+ def list_grants: (
539
+ ?limit: ::Integer,
540
+ ?marker: ::String,
541
+ key_id: ::String,
542
+ ?grant_id: ::String,
543
+ ?grantee_principal: ::String
544
+ ) -> _ListGrantsResponseSuccess
545
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListGrantsResponseSuccess
546
+
547
+ interface _ListKeyPoliciesResponseSuccess
548
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKeyPoliciesResponse]
549
+ def policy_names: () -> ::Array[::String]
550
+ def next_marker: () -> ::String
551
+ def truncated: () -> bool
552
+ end
553
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_key_policies-instance_method
554
+ def list_key_policies: (
555
+ key_id: ::String,
556
+ ?limit: ::Integer,
557
+ ?marker: ::String
558
+ ) -> _ListKeyPoliciesResponseSuccess
559
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeyPoliciesResponseSuccess
560
+
561
+ interface _ListKeyRotationsResponseSuccess
562
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKeyRotationsResponse]
563
+ def rotations: () -> ::Array[Types::RotationsListEntry]
564
+ def next_marker: () -> ::String
565
+ def truncated: () -> bool
566
+ end
567
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_key_rotations-instance_method
568
+ def list_key_rotations: (
569
+ key_id: ::String,
570
+ ?include_key_material: ("ALL_KEY_MATERIAL" | "ROTATIONS_ONLY"),
571
+ ?limit: ::Integer,
572
+ ?marker: ::String
573
+ ) -> _ListKeyRotationsResponseSuccess
574
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeyRotationsResponseSuccess
575
+
576
+ interface _ListKeysResponseSuccess
577
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKeysResponse]
578
+ def keys: () -> ::Array[Types::KeyListEntry]
579
+ def next_marker: () -> ::String
580
+ def truncated: () -> bool
581
+ end
582
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_keys-instance_method
583
+ def list_keys: (
584
+ ?limit: ::Integer,
585
+ ?marker: ::String
586
+ ) -> _ListKeysResponseSuccess
587
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeysResponseSuccess
588
+
589
+ interface _ListResourceTagsResponseSuccess
590
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListResourceTagsResponse]
591
+ def tags: () -> ::Array[Types::Tag]
592
+ def next_marker: () -> ::String
593
+ def truncated: () -> bool
594
+ end
595
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_resource_tags-instance_method
596
+ def list_resource_tags: (
597
+ key_id: ::String,
598
+ ?limit: ::Integer,
599
+ ?marker: ::String
600
+ ) -> _ListResourceTagsResponseSuccess
601
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListResourceTagsResponseSuccess
602
+
603
+ interface _ListRetirableGrantsResponseSuccess
604
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListGrantsResponse]
605
+ def grants: () -> ::Array[Types::GrantListEntry]
606
+ def next_marker: () -> ::String
607
+ def truncated: () -> bool
608
+ end
609
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_retirable_grants-instance_method
610
+ def list_retirable_grants: (
611
+ ?limit: ::Integer,
612
+ ?marker: ::String,
613
+ retiring_principal: ::String
614
+ ) -> _ListRetirableGrantsResponseSuccess
615
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRetirableGrantsResponseSuccess
616
+
617
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#put_key_policy-instance_method
618
+ def put_key_policy: (
619
+ key_id: ::String,
620
+ ?policy_name: ::String,
621
+ policy: ::String,
622
+ ?bypass_policy_lockout_safety_check: bool
623
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
624
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
625
+
626
+ interface _ReEncryptResponseSuccess
627
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReEncryptResponse]
628
+ def ciphertext_blob: () -> ::String
629
+ def source_key_id: () -> ::String
630
+ def key_id: () -> ::String
631
+ def source_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
632
+ def destination_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
633
+ def source_key_material_id: () -> ::String
634
+ def destination_key_material_id: () -> ::String
635
+ end
636
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#re_encrypt-instance_method
637
+ def re_encrypt: (
638
+ ciphertext_blob: ::String,
639
+ ?source_encryption_context: Hash[::String, ::String],
640
+ ?source_key_id: ::String,
641
+ destination_key_id: ::String,
642
+ ?destination_encryption_context: Hash[::String, ::String],
643
+ ?source_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
644
+ ?destination_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
645
+ ?grant_tokens: Array[::String],
646
+ ?dry_run: bool
647
+ ) -> _ReEncryptResponseSuccess
648
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReEncryptResponseSuccess
649
+
650
+ interface _ReplicateKeyResponseSuccess
651
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReplicateKeyResponse]
652
+ def replica_key_metadata: () -> Types::KeyMetadata
653
+ def replica_policy: () -> ::String
654
+ def replica_tags: () -> ::Array[Types::Tag]
655
+ end
656
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#replicate_key-instance_method
657
+ def replicate_key: (
658
+ key_id: ::String,
659
+ replica_region: ::String,
660
+ ?policy: ::String,
661
+ ?bypass_policy_lockout_safety_check: bool,
662
+ ?description: ::String,
663
+ ?tags: Array[
664
+ {
665
+ tag_key: ::String,
666
+ tag_value: ::String
667
+ },
668
+ ]
669
+ ) -> _ReplicateKeyResponseSuccess
670
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReplicateKeyResponseSuccess
671
+
672
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#retire_grant-instance_method
673
+ def retire_grant: (
674
+ ?grant_token: ::String,
675
+ ?key_id: ::String,
676
+ ?grant_id: ::String,
677
+ ?dry_run: bool
678
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
679
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
680
+
681
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#revoke_grant-instance_method
682
+ def revoke_grant: (
683
+ key_id: ::String,
684
+ grant_id: ::String,
685
+ ?dry_run: bool
686
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
687
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
688
+
689
+ interface _RotateKeyOnDemandResponseSuccess
690
+ include ::Seahorse::Client::_ResponseSuccess[Types::RotateKeyOnDemandResponse]
691
+ def key_id: () -> ::String
692
+ end
693
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#rotate_key_on_demand-instance_method
694
+ def rotate_key_on_demand: (
695
+ key_id: ::String
696
+ ) -> _RotateKeyOnDemandResponseSuccess
697
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RotateKeyOnDemandResponseSuccess
698
+
699
+ interface _ScheduleKeyDeletionResponseSuccess
700
+ include ::Seahorse::Client::_ResponseSuccess[Types::ScheduleKeyDeletionResponse]
701
+ def key_id: () -> ::String
702
+ def deletion_date: () -> ::Time
703
+ def key_state: () -> ("Creating" | "Enabled" | "Disabled" | "PendingDeletion" | "PendingImport" | "PendingReplicaDeletion" | "Unavailable" | "Updating")
704
+ def pending_window_in_days: () -> ::Integer
705
+ end
706
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#schedule_key_deletion-instance_method
707
+ def schedule_key_deletion: (
708
+ key_id: ::String,
709
+ ?pending_window_in_days: ::Integer
710
+ ) -> _ScheduleKeyDeletionResponseSuccess
711
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ScheduleKeyDeletionResponseSuccess
712
+
713
+ interface _SignResponseSuccess
714
+ include ::Seahorse::Client::_ResponseSuccess[Types::SignResponse]
715
+ def key_id: () -> ::String
716
+ def signature: () -> ::String
717
+ 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")
718
+ end
719
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#sign-instance_method
720
+ def sign: (
721
+ key_id: ::String,
722
+ message: ::String,
723
+ ?message_type: ("RAW" | "DIGEST" | "EXTERNAL_MU"),
724
+ ?grant_tokens: Array[::String],
725
+ 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"),
726
+ ?dry_run: bool
727
+ ) -> _SignResponseSuccess
728
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SignResponseSuccess
729
+
730
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#tag_resource-instance_method
731
+ def tag_resource: (
732
+ key_id: ::String,
733
+ tags: Array[
734
+ {
735
+ tag_key: ::String,
736
+ tag_value: ::String
737
+ },
738
+ ]
739
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
740
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
741
+
742
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#untag_resource-instance_method
743
+ def untag_resource: (
744
+ key_id: ::String,
745
+ tag_keys: Array[::String]
746
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
747
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
748
+
749
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_alias-instance_method
750
+ def update_alias: (
751
+ alias_name: ::String,
752
+ target_key_id: ::String
753
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
754
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
755
+
756
+ interface _UpdateCustomKeyStoreResponseSuccess
757
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCustomKeyStoreResponse]
758
+ end
759
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_custom_key_store-instance_method
760
+ def update_custom_key_store: (
761
+ custom_key_store_id: ::String,
762
+ ?new_custom_key_store_name: ::String,
763
+ ?key_store_password: ::String,
764
+ ?cloud_hsm_cluster_id: ::String,
765
+ ?xks_proxy_uri_endpoint: ::String,
766
+ ?xks_proxy_uri_path: ::String,
767
+ ?xks_proxy_vpc_endpoint_service_name: ::String,
768
+ ?xks_proxy_vpc_endpoint_service_owner: ::String,
769
+ ?xks_proxy_authentication_credential: {
770
+ access_key_id: ::String,
771
+ raw_secret_access_key: ::String
772
+ },
773
+ ?xks_proxy_connectivity: ("PUBLIC_ENDPOINT" | "VPC_ENDPOINT_SERVICE")
774
+ ) -> _UpdateCustomKeyStoreResponseSuccess
775
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCustomKeyStoreResponseSuccess
776
+
777
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_key_description-instance_method
778
+ def update_key_description: (
779
+ key_id: ::String,
780
+ description: ::String
781
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
782
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
783
+
784
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_primary_region-instance_method
785
+ def update_primary_region: (
786
+ key_id: ::String,
787
+ primary_region: ::String
788
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
789
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
790
+
791
+ interface _VerifyResponseSuccess
792
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyResponse]
793
+ def key_id: () -> ::String
794
+ def signature_valid: () -> bool
795
+ 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")
796
+ end
797
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#verify-instance_method
798
+ def verify: (
799
+ key_id: ::String,
800
+ message: ::String,
801
+ ?message_type: ("RAW" | "DIGEST" | "EXTERNAL_MU"),
802
+ signature: ::String,
803
+ 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"),
804
+ ?grant_tokens: Array[::String],
805
+ ?dry_run: bool
806
+ ) -> _VerifyResponseSuccess
807
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyResponseSuccess
808
+
809
+ interface _VerifyMacResponseSuccess
810
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyMacResponse]
811
+ def key_id: () -> ::String
812
+ def mac_valid: () -> bool
813
+ def mac_algorithm: () -> ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")
814
+ end
815
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#verify_mac-instance_method
816
+ def verify_mac: (
817
+ message: ::String,
818
+ key_id: ::String,
819
+ mac_algorithm: ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512"),
820
+ mac: ::String,
821
+ ?grant_tokens: Array[::String],
822
+ ?dry_run: bool
823
+ ) -> _VerifyMacResponseSuccess
824
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyMacResponseSuccess
825
+ end
826
+ end
827
+ end
828
+