aws-sdk-kms 1.76.0 → 1.77.0

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