aws-sdk-kms 1.76.0 → 1.78.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,749 @@
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
+ def policy_name: () -> ::String
403
+ end
404
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_policy-instance_method
405
+ def get_key_policy: (
406
+ key_id: ::String,
407
+ ?policy_name: ::String
408
+ ) -> _GetKeyPolicyResponseSuccess
409
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyPolicyResponseSuccess
410
+
411
+ interface _GetKeyRotationStatusResponseSuccess
412
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyRotationStatusResponse]
413
+ def key_rotation_enabled: () -> bool
414
+ end
415
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_rotation_status-instance_method
416
+ def get_key_rotation_status: (
417
+ key_id: ::String
418
+ ) -> _GetKeyRotationStatusResponseSuccess
419
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyRotationStatusResponseSuccess
420
+
421
+ interface _GetParametersForImportResponseSuccess
422
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetParametersForImportResponse]
423
+ def key_id: () -> ::String
424
+ def import_token: () -> ::String
425
+ def public_key: () -> ::String
426
+ def parameters_valid_to: () -> ::Time
427
+ end
428
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_parameters_for_import-instance_method
429
+ def get_parameters_for_import: (
430
+ key_id: ::String,
431
+ 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"),
432
+ wrapping_key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096")
433
+ ) -> _GetParametersForImportResponseSuccess
434
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParametersForImportResponseSuccess
435
+
436
+ interface _GetPublicKeyResponseSuccess
437
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPublicKeyResponse]
438
+ def key_id: () -> ::String
439
+ def public_key: () -> ::String
440
+ 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")
441
+ 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")
442
+ def key_usage: () -> ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC")
443
+ def encryption_algorithms: () -> ::Array[("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")]
444
+ 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")]
445
+ end
446
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_public_key-instance_method
447
+ def get_public_key: (
448
+ key_id: ::String,
449
+ ?grant_tokens: Array[::String]
450
+ ) -> _GetPublicKeyResponseSuccess
451
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPublicKeyResponseSuccess
452
+
453
+ interface _ImportKeyMaterialResponseSuccess
454
+ include ::Seahorse::Client::_ResponseSuccess[Types::ImportKeyMaterialResponse]
455
+ end
456
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#import_key_material-instance_method
457
+ def import_key_material: (
458
+ key_id: ::String,
459
+ import_token: ::String,
460
+ encrypted_key_material: ::String,
461
+ ?valid_to: ::Time,
462
+ ?expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE")
463
+ ) -> _ImportKeyMaterialResponseSuccess
464
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportKeyMaterialResponseSuccess
465
+
466
+ interface _ListAliasesResponseSuccess
467
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAliasesResponse]
468
+ def aliases: () -> ::Array[Types::AliasListEntry]
469
+ def next_marker: () -> ::String
470
+ def truncated: () -> bool
471
+ end
472
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_aliases-instance_method
473
+ def list_aliases: (
474
+ ?key_id: ::String,
475
+ ?limit: ::Integer,
476
+ ?marker: ::String
477
+ ) -> _ListAliasesResponseSuccess
478
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAliasesResponseSuccess
479
+
480
+ interface _ListGrantsResponseSuccess
481
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListGrantsResponse]
482
+ def grants: () -> ::Array[Types::GrantListEntry]
483
+ def next_marker: () -> ::String
484
+ def truncated: () -> bool
485
+ end
486
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_grants-instance_method
487
+ def list_grants: (
488
+ ?limit: ::Integer,
489
+ ?marker: ::String,
490
+ key_id: ::String,
491
+ ?grant_id: ::String,
492
+ ?grantee_principal: ::String
493
+ ) -> _ListGrantsResponseSuccess
494
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListGrantsResponseSuccess
495
+
496
+ interface _ListKeyPoliciesResponseSuccess
497
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKeyPoliciesResponse]
498
+ def policy_names: () -> ::Array[::String]
499
+ def next_marker: () -> ::String
500
+ def truncated: () -> bool
501
+ end
502
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_key_policies-instance_method
503
+ def list_key_policies: (
504
+ key_id: ::String,
505
+ ?limit: ::Integer,
506
+ ?marker: ::String
507
+ ) -> _ListKeyPoliciesResponseSuccess
508
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeyPoliciesResponseSuccess
509
+
510
+ interface _ListKeysResponseSuccess
511
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKeysResponse]
512
+ def keys: () -> ::Array[Types::KeyListEntry]
513
+ def next_marker: () -> ::String
514
+ def truncated: () -> bool
515
+ end
516
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_keys-instance_method
517
+ def list_keys: (
518
+ ?limit: ::Integer,
519
+ ?marker: ::String
520
+ ) -> _ListKeysResponseSuccess
521
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeysResponseSuccess
522
+
523
+ interface _ListResourceTagsResponseSuccess
524
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListResourceTagsResponse]
525
+ def tags: () -> ::Array[Types::Tag]
526
+ def next_marker: () -> ::String
527
+ def truncated: () -> bool
528
+ end
529
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_resource_tags-instance_method
530
+ def list_resource_tags: (
531
+ key_id: ::String,
532
+ ?limit: ::Integer,
533
+ ?marker: ::String
534
+ ) -> _ListResourceTagsResponseSuccess
535
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListResourceTagsResponseSuccess
536
+
537
+ interface _ListRetirableGrantsResponseSuccess
538
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListGrantsResponse]
539
+ def grants: () -> ::Array[Types::GrantListEntry]
540
+ def next_marker: () -> ::String
541
+ def truncated: () -> bool
542
+ end
543
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_retirable_grants-instance_method
544
+ def list_retirable_grants: (
545
+ ?limit: ::Integer,
546
+ ?marker: ::String,
547
+ retiring_principal: ::String
548
+ ) -> _ListRetirableGrantsResponseSuccess
549
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRetirableGrantsResponseSuccess
550
+
551
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#put_key_policy-instance_method
552
+ def put_key_policy: (
553
+ key_id: ::String,
554
+ ?policy_name: ::String,
555
+ policy: ::String,
556
+ ?bypass_policy_lockout_safety_check: bool
557
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
558
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
559
+
560
+ interface _ReEncryptResponseSuccess
561
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReEncryptResponse]
562
+ def ciphertext_blob: () -> ::String
563
+ def source_key_id: () -> ::String
564
+ def key_id: () -> ::String
565
+ def source_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
566
+ def destination_encryption_algorithm: () -> ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
567
+ end
568
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#re_encrypt-instance_method
569
+ def re_encrypt: (
570
+ ciphertext_blob: ::String,
571
+ ?source_encryption_context: Hash[::String, ::String],
572
+ ?source_key_id: ::String,
573
+ destination_key_id: ::String,
574
+ ?destination_encryption_context: Hash[::String, ::String],
575
+ ?source_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
576
+ ?destination_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE"),
577
+ ?grant_tokens: Array[::String],
578
+ ?dry_run: bool
579
+ ) -> _ReEncryptResponseSuccess
580
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReEncryptResponseSuccess
581
+
582
+ interface _ReplicateKeyResponseSuccess
583
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReplicateKeyResponse]
584
+ def replica_key_metadata: () -> Types::KeyMetadata
585
+ def replica_policy: () -> ::String
586
+ def replica_tags: () -> ::Array[Types::Tag]
587
+ end
588
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#replicate_key-instance_method
589
+ def replicate_key: (
590
+ key_id: ::String,
591
+ replica_region: ::String,
592
+ ?policy: ::String,
593
+ ?bypass_policy_lockout_safety_check: bool,
594
+ ?description: ::String,
595
+ ?tags: Array[
596
+ {
597
+ tag_key: ::String,
598
+ tag_value: ::String
599
+ },
600
+ ]
601
+ ) -> _ReplicateKeyResponseSuccess
602
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReplicateKeyResponseSuccess
603
+
604
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#retire_grant-instance_method
605
+ def retire_grant: (
606
+ ?grant_token: ::String,
607
+ ?key_id: ::String,
608
+ ?grant_id: ::String,
609
+ ?dry_run: bool
610
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
611
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
612
+
613
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#revoke_grant-instance_method
614
+ def revoke_grant: (
615
+ key_id: ::String,
616
+ grant_id: ::String,
617
+ ?dry_run: bool
618
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
619
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
620
+
621
+ interface _ScheduleKeyDeletionResponseSuccess
622
+ include ::Seahorse::Client::_ResponseSuccess[Types::ScheduleKeyDeletionResponse]
623
+ def key_id: () -> ::String
624
+ def deletion_date: () -> ::Time
625
+ def key_state: () -> ("Creating" | "Enabled" | "Disabled" | "PendingDeletion" | "PendingImport" | "PendingReplicaDeletion" | "Unavailable" | "Updating")
626
+ def pending_window_in_days: () -> ::Integer
627
+ end
628
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#schedule_key_deletion-instance_method
629
+ def schedule_key_deletion: (
630
+ key_id: ::String,
631
+ ?pending_window_in_days: ::Integer
632
+ ) -> _ScheduleKeyDeletionResponseSuccess
633
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ScheduleKeyDeletionResponseSuccess
634
+
635
+ interface _SignResponseSuccess
636
+ include ::Seahorse::Client::_ResponseSuccess[Types::SignResponse]
637
+ def key_id: () -> ::String
638
+ def signature: () -> ::String
639
+ 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")
640
+ end
641
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#sign-instance_method
642
+ def sign: (
643
+ key_id: ::String,
644
+ message: ::String,
645
+ ?message_type: ("RAW" | "DIGEST"),
646
+ ?grant_tokens: Array[::String],
647
+ 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"),
648
+ ?dry_run: bool
649
+ ) -> _SignResponseSuccess
650
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SignResponseSuccess
651
+
652
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#tag_resource-instance_method
653
+ def tag_resource: (
654
+ key_id: ::String,
655
+ tags: Array[
656
+ {
657
+ tag_key: ::String,
658
+ tag_value: ::String
659
+ },
660
+ ]
661
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
662
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
663
+
664
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#untag_resource-instance_method
665
+ def untag_resource: (
666
+ key_id: ::String,
667
+ tag_keys: Array[::String]
668
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
669
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
670
+
671
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_alias-instance_method
672
+ def update_alias: (
673
+ alias_name: ::String,
674
+ target_key_id: ::String
675
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
676
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
677
+
678
+ interface _UpdateCustomKeyStoreResponseSuccess
679
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCustomKeyStoreResponse]
680
+ end
681
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_custom_key_store-instance_method
682
+ def update_custom_key_store: (
683
+ custom_key_store_id: ::String,
684
+ ?new_custom_key_store_name: ::String,
685
+ ?key_store_password: ::String,
686
+ ?cloud_hsm_cluster_id: ::String,
687
+ ?xks_proxy_uri_endpoint: ::String,
688
+ ?xks_proxy_uri_path: ::String,
689
+ ?xks_proxy_vpc_endpoint_service_name: ::String,
690
+ ?xks_proxy_authentication_credential: {
691
+ access_key_id: ::String,
692
+ raw_secret_access_key: ::String
693
+ },
694
+ ?xks_proxy_connectivity: ("PUBLIC_ENDPOINT" | "VPC_ENDPOINT_SERVICE")
695
+ ) -> _UpdateCustomKeyStoreResponseSuccess
696
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCustomKeyStoreResponseSuccess
697
+
698
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_key_description-instance_method
699
+ def update_key_description: (
700
+ key_id: ::String,
701
+ description: ::String
702
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
703
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
704
+
705
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#update_primary_region-instance_method
706
+ def update_primary_region: (
707
+ key_id: ::String,
708
+ primary_region: ::String
709
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
710
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
711
+
712
+ interface _VerifyResponseSuccess
713
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyResponse]
714
+ def key_id: () -> ::String
715
+ def signature_valid: () -> bool
716
+ 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")
717
+ end
718
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#verify-instance_method
719
+ def verify: (
720
+ key_id: ::String,
721
+ message: ::String,
722
+ ?message_type: ("RAW" | "DIGEST"),
723
+ signature: ::String,
724
+ 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"),
725
+ ?grant_tokens: Array[::String],
726
+ ?dry_run: bool
727
+ ) -> _VerifyResponseSuccess
728
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyResponseSuccess
729
+
730
+ interface _VerifyMacResponseSuccess
731
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyMacResponse]
732
+ def key_id: () -> ::String
733
+ def mac_valid: () -> bool
734
+ def mac_algorithm: () -> ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")
735
+ end
736
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#verify_mac-instance_method
737
+ def verify_mac: (
738
+ message: ::String,
739
+ key_id: ::String,
740
+ mac_algorithm: ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512"),
741
+ mac: ::String,
742
+ ?grant_tokens: Array[::String],
743
+ ?dry_run: bool
744
+ ) -> _VerifyMacResponseSuccess
745
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyMacResponseSuccess
746
+ end
747
+ end
748
+ end
749
+