aws-sdk-kms 1.3.0 → 1.88.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/types.rbs ADDED
@@ -0,0 +1,1036 @@
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::KMS
9
+ module Types
10
+
11
+ class AliasListEntry
12
+ attr_accessor alias_name: ::String
13
+ attr_accessor alias_arn: ::String
14
+ attr_accessor target_key_id: ::String
15
+ attr_accessor creation_date: ::Time
16
+ attr_accessor last_updated_date: ::Time
17
+ SENSITIVE: []
18
+ end
19
+
20
+ class AlreadyExistsException
21
+ attr_accessor message: ::String
22
+ SENSITIVE: []
23
+ end
24
+
25
+ class CancelKeyDeletionRequest
26
+ attr_accessor key_id: ::String
27
+ SENSITIVE: []
28
+ end
29
+
30
+ class CancelKeyDeletionResponse
31
+ attr_accessor key_id: ::String
32
+ SENSITIVE: []
33
+ end
34
+
35
+ class CloudHsmClusterInUseException
36
+ attr_accessor message: ::String
37
+ SENSITIVE: []
38
+ end
39
+
40
+ class CloudHsmClusterInvalidConfigurationException
41
+ attr_accessor message: ::String
42
+ SENSITIVE: []
43
+ end
44
+
45
+ class CloudHsmClusterNotActiveException
46
+ attr_accessor message: ::String
47
+ SENSITIVE: []
48
+ end
49
+
50
+ class CloudHsmClusterNotFoundException
51
+ attr_accessor message: ::String
52
+ SENSITIVE: []
53
+ end
54
+
55
+ class CloudHsmClusterNotRelatedException
56
+ attr_accessor message: ::String
57
+ SENSITIVE: []
58
+ end
59
+
60
+ class ConflictException
61
+ attr_accessor message: ::String
62
+ SENSITIVE: []
63
+ end
64
+
65
+ class ConnectCustomKeyStoreRequest
66
+ attr_accessor custom_key_store_id: ::String
67
+ SENSITIVE: []
68
+ end
69
+
70
+ class ConnectCustomKeyStoreResponse < Aws::EmptyStructure
71
+ end
72
+
73
+ class CreateAliasRequest
74
+ attr_accessor alias_name: ::String
75
+ attr_accessor target_key_id: ::String
76
+ SENSITIVE: []
77
+ end
78
+
79
+ class CreateCustomKeyStoreRequest
80
+ attr_accessor custom_key_store_name: ::String
81
+ attr_accessor cloud_hsm_cluster_id: ::String
82
+ attr_accessor trust_anchor_certificate: ::String
83
+ attr_accessor key_store_password: ::String
84
+ attr_accessor custom_key_store_type: ("AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE")
85
+ attr_accessor xks_proxy_uri_endpoint: ::String
86
+ attr_accessor xks_proxy_uri_path: ::String
87
+ attr_accessor xks_proxy_vpc_endpoint_service_name: ::String
88
+ attr_accessor xks_proxy_authentication_credential: Types::XksProxyAuthenticationCredentialType
89
+ attr_accessor xks_proxy_connectivity: ("PUBLIC_ENDPOINT" | "VPC_ENDPOINT_SERVICE")
90
+ SENSITIVE: [:key_store_password]
91
+ end
92
+
93
+ class CreateCustomKeyStoreResponse
94
+ attr_accessor custom_key_store_id: ::String
95
+ SENSITIVE: []
96
+ end
97
+
98
+ class CreateGrantRequest
99
+ attr_accessor key_id: ::String
100
+ attr_accessor grantee_principal: ::String
101
+ attr_accessor retiring_principal: ::String
102
+ attr_accessor operations: ::Array[("Decrypt" | "Encrypt" | "GenerateDataKey" | "GenerateDataKeyWithoutPlaintext" | "ReEncryptFrom" | "ReEncryptTo" | "Sign" | "Verify" | "GetPublicKey" | "CreateGrant" | "RetireGrant" | "DescribeKey" | "GenerateDataKeyPair" | "GenerateDataKeyPairWithoutPlaintext" | "GenerateMac" | "VerifyMac" | "DeriveSharedSecret")]
103
+ attr_accessor constraints: Types::GrantConstraints
104
+ attr_accessor grant_tokens: ::Array[::String]
105
+ attr_accessor name: ::String
106
+ attr_accessor dry_run: bool
107
+ SENSITIVE: []
108
+ end
109
+
110
+ class CreateGrantResponse
111
+ attr_accessor grant_token: ::String
112
+ attr_accessor grant_id: ::String
113
+ SENSITIVE: []
114
+ end
115
+
116
+ class CreateKeyRequest
117
+ attr_accessor policy: ::String
118
+ attr_accessor description: ::String
119
+ attr_accessor key_usage: ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT")
120
+ attr_accessor 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")
121
+ attr_accessor 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")
122
+ attr_accessor origin: ("AWS_KMS" | "EXTERNAL" | "AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE")
123
+ attr_accessor custom_key_store_id: ::String
124
+ attr_accessor bypass_policy_lockout_safety_check: bool
125
+ attr_accessor tags: ::Array[Types::Tag]
126
+ attr_accessor multi_region: bool
127
+ attr_accessor xks_key_id: ::String
128
+ SENSITIVE: []
129
+ end
130
+
131
+ class CreateKeyResponse
132
+ attr_accessor key_metadata: Types::KeyMetadata
133
+ SENSITIVE: []
134
+ end
135
+
136
+ class CustomKeyStoreHasCMKsException
137
+ attr_accessor message: ::String
138
+ SENSITIVE: []
139
+ end
140
+
141
+ class CustomKeyStoreInvalidStateException
142
+ attr_accessor message: ::String
143
+ SENSITIVE: []
144
+ end
145
+
146
+ class CustomKeyStoreNameInUseException
147
+ attr_accessor message: ::String
148
+ SENSITIVE: []
149
+ end
150
+
151
+ class CustomKeyStoreNotFoundException
152
+ attr_accessor message: ::String
153
+ SENSITIVE: []
154
+ end
155
+
156
+ class CustomKeyStoresListEntry
157
+ attr_accessor custom_key_store_id: ::String
158
+ attr_accessor custom_key_store_name: ::String
159
+ attr_accessor cloud_hsm_cluster_id: ::String
160
+ attr_accessor trust_anchor_certificate: ::String
161
+ attr_accessor connection_state: ("CONNECTED" | "CONNECTING" | "FAILED" | "DISCONNECTED" | "DISCONNECTING")
162
+ attr_accessor connection_error_code: ("INVALID_CREDENTIALS" | "CLUSTER_NOT_FOUND" | "NETWORK_ERRORS" | "INTERNAL_ERROR" | "INSUFFICIENT_CLOUDHSM_HSMS" | "USER_LOCKED_OUT" | "USER_NOT_FOUND" | "USER_LOGGED_IN" | "SUBNET_NOT_FOUND" | "INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET" | "XKS_PROXY_ACCESS_DENIED" | "XKS_PROXY_NOT_REACHABLE" | "XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND" | "XKS_PROXY_INVALID_RESPONSE" | "XKS_PROXY_INVALID_CONFIGURATION" | "XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION" | "XKS_PROXY_TIMED_OUT" | "XKS_PROXY_INVALID_TLS_CONFIGURATION")
163
+ attr_accessor creation_date: ::Time
164
+ attr_accessor custom_key_store_type: ("AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE")
165
+ attr_accessor xks_proxy_configuration: Types::XksProxyConfigurationType
166
+ SENSITIVE: []
167
+ end
168
+
169
+ class DecryptRequest
170
+ attr_accessor ciphertext_blob: ::String
171
+ attr_accessor encryption_context: ::Hash[::String, ::String]
172
+ attr_accessor grant_tokens: ::Array[::String]
173
+ attr_accessor key_id: ::String
174
+ attr_accessor encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
175
+ attr_accessor recipient: Types::RecipientInfo
176
+ attr_accessor dry_run: bool
177
+ SENSITIVE: []
178
+ end
179
+
180
+ class DecryptResponse
181
+ attr_accessor key_id: ::String
182
+ attr_accessor plaintext: ::String
183
+ attr_accessor encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
184
+ attr_accessor ciphertext_for_recipient: ::String
185
+ SENSITIVE: [:plaintext]
186
+ end
187
+
188
+ class DeleteAliasRequest
189
+ attr_accessor alias_name: ::String
190
+ SENSITIVE: []
191
+ end
192
+
193
+ class DeleteCustomKeyStoreRequest
194
+ attr_accessor custom_key_store_id: ::String
195
+ SENSITIVE: []
196
+ end
197
+
198
+ class DeleteCustomKeyStoreResponse < Aws::EmptyStructure
199
+ end
200
+
201
+ class DeleteImportedKeyMaterialRequest
202
+ attr_accessor key_id: ::String
203
+ SENSITIVE: []
204
+ end
205
+
206
+ class DependencyTimeoutException
207
+ attr_accessor message: ::String
208
+ SENSITIVE: []
209
+ end
210
+
211
+ class DeriveSharedSecretRequest
212
+ attr_accessor key_id: ::String
213
+ attr_accessor key_agreement_algorithm: ("ECDH")
214
+ attr_accessor public_key: ::String
215
+ attr_accessor grant_tokens: ::Array[::String]
216
+ attr_accessor dry_run: bool
217
+ attr_accessor recipient: Types::RecipientInfo
218
+ SENSITIVE: []
219
+ end
220
+
221
+ class DeriveSharedSecretResponse
222
+ attr_accessor key_id: ::String
223
+ attr_accessor shared_secret: ::String
224
+ attr_accessor ciphertext_for_recipient: ::String
225
+ attr_accessor key_agreement_algorithm: ("ECDH")
226
+ attr_accessor key_origin: ("AWS_KMS" | "EXTERNAL" | "AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE")
227
+ SENSITIVE: [:shared_secret]
228
+ end
229
+
230
+ class DescribeCustomKeyStoresRequest
231
+ attr_accessor custom_key_store_id: ::String
232
+ attr_accessor custom_key_store_name: ::String
233
+ attr_accessor limit: ::Integer
234
+ attr_accessor marker: ::String
235
+ SENSITIVE: []
236
+ end
237
+
238
+ class DescribeCustomKeyStoresResponse
239
+ attr_accessor custom_key_stores: ::Array[Types::CustomKeyStoresListEntry]
240
+ attr_accessor next_marker: ::String
241
+ attr_accessor truncated: bool
242
+ SENSITIVE: []
243
+ end
244
+
245
+ class DescribeKeyRequest
246
+ attr_accessor key_id: ::String
247
+ attr_accessor grant_tokens: ::Array[::String]
248
+ SENSITIVE: []
249
+ end
250
+
251
+ class DescribeKeyResponse
252
+ attr_accessor key_metadata: Types::KeyMetadata
253
+ SENSITIVE: []
254
+ end
255
+
256
+ class DisableKeyRequest
257
+ attr_accessor key_id: ::String
258
+ SENSITIVE: []
259
+ end
260
+
261
+ class DisableKeyRotationRequest
262
+ attr_accessor key_id: ::String
263
+ SENSITIVE: []
264
+ end
265
+
266
+ class DisabledException
267
+ attr_accessor message: ::String
268
+ SENSITIVE: []
269
+ end
270
+
271
+ class DisconnectCustomKeyStoreRequest
272
+ attr_accessor custom_key_store_id: ::String
273
+ SENSITIVE: []
274
+ end
275
+
276
+ class DisconnectCustomKeyStoreResponse < Aws::EmptyStructure
277
+ end
278
+
279
+ class DryRunOperationException
280
+ attr_accessor message: ::String
281
+ SENSITIVE: []
282
+ end
283
+
284
+ class EnableKeyRequest
285
+ attr_accessor key_id: ::String
286
+ SENSITIVE: []
287
+ end
288
+
289
+ class EnableKeyRotationRequest
290
+ attr_accessor key_id: ::String
291
+ attr_accessor rotation_period_in_days: ::Integer
292
+ SENSITIVE: []
293
+ end
294
+
295
+ class EncryptRequest
296
+ attr_accessor key_id: ::String
297
+ attr_accessor plaintext: ::String
298
+ attr_accessor encryption_context: ::Hash[::String, ::String]
299
+ attr_accessor grant_tokens: ::Array[::String]
300
+ attr_accessor encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
301
+ attr_accessor dry_run: bool
302
+ SENSITIVE: [:plaintext]
303
+ end
304
+
305
+ class EncryptResponse
306
+ attr_accessor ciphertext_blob: ::String
307
+ attr_accessor key_id: ::String
308
+ attr_accessor encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
309
+ SENSITIVE: []
310
+ end
311
+
312
+ class ExpiredImportTokenException
313
+ attr_accessor message: ::String
314
+ SENSITIVE: []
315
+ end
316
+
317
+ class GenerateDataKeyPairRequest
318
+ attr_accessor encryption_context: ::Hash[::String, ::String]
319
+ attr_accessor key_id: ::String
320
+ attr_accessor key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
321
+ attr_accessor grant_tokens: ::Array[::String]
322
+ attr_accessor recipient: Types::RecipientInfo
323
+ attr_accessor dry_run: bool
324
+ SENSITIVE: []
325
+ end
326
+
327
+ class GenerateDataKeyPairResponse
328
+ attr_accessor private_key_ciphertext_blob: ::String
329
+ attr_accessor private_key_plaintext: ::String
330
+ attr_accessor public_key: ::String
331
+ attr_accessor key_id: ::String
332
+ attr_accessor key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
333
+ attr_accessor ciphertext_for_recipient: ::String
334
+ SENSITIVE: [:private_key_plaintext]
335
+ end
336
+
337
+ class GenerateDataKeyPairWithoutPlaintextRequest
338
+ attr_accessor encryption_context: ::Hash[::String, ::String]
339
+ attr_accessor key_id: ::String
340
+ attr_accessor key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
341
+ attr_accessor grant_tokens: ::Array[::String]
342
+ attr_accessor dry_run: bool
343
+ SENSITIVE: []
344
+ end
345
+
346
+ class GenerateDataKeyPairWithoutPlaintextResponse
347
+ attr_accessor private_key_ciphertext_blob: ::String
348
+ attr_accessor public_key: ::String
349
+ attr_accessor key_id: ::String
350
+ attr_accessor key_pair_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SM2")
351
+ SENSITIVE: []
352
+ end
353
+
354
+ class GenerateDataKeyRequest
355
+ attr_accessor key_id: ::String
356
+ attr_accessor encryption_context: ::Hash[::String, ::String]
357
+ attr_accessor number_of_bytes: ::Integer
358
+ attr_accessor key_spec: ("AES_256" | "AES_128")
359
+ attr_accessor grant_tokens: ::Array[::String]
360
+ attr_accessor recipient: Types::RecipientInfo
361
+ attr_accessor dry_run: bool
362
+ SENSITIVE: []
363
+ end
364
+
365
+ class GenerateDataKeyResponse
366
+ attr_accessor ciphertext_blob: ::String
367
+ attr_accessor plaintext: ::String
368
+ attr_accessor key_id: ::String
369
+ attr_accessor ciphertext_for_recipient: ::String
370
+ SENSITIVE: [:plaintext]
371
+ end
372
+
373
+ class GenerateDataKeyWithoutPlaintextRequest
374
+ attr_accessor key_id: ::String
375
+ attr_accessor encryption_context: ::Hash[::String, ::String]
376
+ attr_accessor key_spec: ("AES_256" | "AES_128")
377
+ attr_accessor number_of_bytes: ::Integer
378
+ attr_accessor grant_tokens: ::Array[::String]
379
+ attr_accessor dry_run: bool
380
+ SENSITIVE: []
381
+ end
382
+
383
+ class GenerateDataKeyWithoutPlaintextResponse
384
+ attr_accessor ciphertext_blob: ::String
385
+ attr_accessor key_id: ::String
386
+ SENSITIVE: []
387
+ end
388
+
389
+ class GenerateMacRequest
390
+ attr_accessor message: ::String
391
+ attr_accessor key_id: ::String
392
+ attr_accessor mac_algorithm: ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")
393
+ attr_accessor grant_tokens: ::Array[::String]
394
+ attr_accessor dry_run: bool
395
+ SENSITIVE: [:message]
396
+ end
397
+
398
+ class GenerateMacResponse
399
+ attr_accessor mac: ::String
400
+ attr_accessor mac_algorithm: ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")
401
+ attr_accessor key_id: ::String
402
+ SENSITIVE: []
403
+ end
404
+
405
+ class GenerateRandomRequest
406
+ attr_accessor number_of_bytes: ::Integer
407
+ attr_accessor custom_key_store_id: ::String
408
+ attr_accessor recipient: Types::RecipientInfo
409
+ SENSITIVE: []
410
+ end
411
+
412
+ class GenerateRandomResponse
413
+ attr_accessor plaintext: ::String
414
+ attr_accessor ciphertext_for_recipient: ::String
415
+ SENSITIVE: [:plaintext]
416
+ end
417
+
418
+ class GetKeyPolicyRequest
419
+ attr_accessor key_id: ::String
420
+ attr_accessor policy_name: ::String
421
+ SENSITIVE: []
422
+ end
423
+
424
+ class GetKeyPolicyResponse
425
+ attr_accessor policy: ::String
426
+ attr_accessor policy_name: ::String
427
+ SENSITIVE: []
428
+ end
429
+
430
+ class GetKeyRotationStatusRequest
431
+ attr_accessor key_id: ::String
432
+ SENSITIVE: []
433
+ end
434
+
435
+ class GetKeyRotationStatusResponse
436
+ attr_accessor key_rotation_enabled: bool
437
+ attr_accessor key_id: ::String
438
+ attr_accessor rotation_period_in_days: ::Integer
439
+ attr_accessor next_rotation_date: ::Time
440
+ attr_accessor on_demand_rotation_start_date: ::Time
441
+ SENSITIVE: []
442
+ end
443
+
444
+ class GetParametersForImportRequest
445
+ attr_accessor key_id: ::String
446
+ attr_accessor 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")
447
+ attr_accessor wrapping_key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "SM2")
448
+ SENSITIVE: []
449
+ end
450
+
451
+ class GetParametersForImportResponse
452
+ attr_accessor key_id: ::String
453
+ attr_accessor import_token: ::String
454
+ attr_accessor public_key: ::String
455
+ attr_accessor parameters_valid_to: ::Time
456
+ SENSITIVE: [:public_key]
457
+ end
458
+
459
+ class GetPublicKeyRequest
460
+ attr_accessor key_id: ::String
461
+ attr_accessor grant_tokens: ::Array[::String]
462
+ SENSITIVE: []
463
+ end
464
+
465
+ class GetPublicKeyResponse
466
+ attr_accessor key_id: ::String
467
+ attr_accessor public_key: ::String
468
+ attr_accessor customer_master_key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2")
469
+ attr_accessor key_spec: ("RSA_2048" | "RSA_3072" | "RSA_4096" | "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "SYMMETRIC_DEFAULT" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "SM2")
470
+ attr_accessor key_usage: ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT")
471
+ attr_accessor encryption_algorithms: ::Array[("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")]
472
+ attr_accessor 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")]
473
+ attr_accessor key_agreement_algorithms: ::Array[("ECDH")]
474
+ SENSITIVE: []
475
+ end
476
+
477
+ class GrantConstraints
478
+ attr_accessor encryption_context_subset: ::Hash[::String, ::String]
479
+ attr_accessor encryption_context_equals: ::Hash[::String, ::String]
480
+ SENSITIVE: []
481
+ end
482
+
483
+ class GrantListEntry
484
+ attr_accessor key_id: ::String
485
+ attr_accessor grant_id: ::String
486
+ attr_accessor name: ::String
487
+ attr_accessor creation_date: ::Time
488
+ attr_accessor grantee_principal: ::String
489
+ attr_accessor retiring_principal: ::String
490
+ attr_accessor issuing_account: ::String
491
+ attr_accessor operations: ::Array[("Decrypt" | "Encrypt" | "GenerateDataKey" | "GenerateDataKeyWithoutPlaintext" | "ReEncryptFrom" | "ReEncryptTo" | "Sign" | "Verify" | "GetPublicKey" | "CreateGrant" | "RetireGrant" | "DescribeKey" | "GenerateDataKeyPair" | "GenerateDataKeyPairWithoutPlaintext" | "GenerateMac" | "VerifyMac" | "DeriveSharedSecret")]
492
+ attr_accessor constraints: Types::GrantConstraints
493
+ SENSITIVE: []
494
+ end
495
+
496
+ class ImportKeyMaterialRequest
497
+ attr_accessor key_id: ::String
498
+ attr_accessor import_token: ::String
499
+ attr_accessor encrypted_key_material: ::String
500
+ attr_accessor valid_to: ::Time
501
+ attr_accessor expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE")
502
+ SENSITIVE: []
503
+ end
504
+
505
+ class ImportKeyMaterialResponse < Aws::EmptyStructure
506
+ end
507
+
508
+ class IncorrectKeyException
509
+ attr_accessor message: ::String
510
+ SENSITIVE: []
511
+ end
512
+
513
+ class IncorrectKeyMaterialException
514
+ attr_accessor message: ::String
515
+ SENSITIVE: []
516
+ end
517
+
518
+ class IncorrectTrustAnchorException
519
+ attr_accessor message: ::String
520
+ SENSITIVE: []
521
+ end
522
+
523
+ class InvalidAliasNameException
524
+ attr_accessor message: ::String
525
+ SENSITIVE: []
526
+ end
527
+
528
+ class InvalidArnException
529
+ attr_accessor message: ::String
530
+ SENSITIVE: []
531
+ end
532
+
533
+ class InvalidCiphertextException
534
+ attr_accessor message: ::String
535
+ SENSITIVE: []
536
+ end
537
+
538
+ class InvalidGrantIdException
539
+ attr_accessor message: ::String
540
+ SENSITIVE: []
541
+ end
542
+
543
+ class InvalidGrantTokenException
544
+ attr_accessor message: ::String
545
+ SENSITIVE: []
546
+ end
547
+
548
+ class InvalidImportTokenException
549
+ attr_accessor message: ::String
550
+ SENSITIVE: []
551
+ end
552
+
553
+ class InvalidKeyUsageException
554
+ attr_accessor message: ::String
555
+ SENSITIVE: []
556
+ end
557
+
558
+ class InvalidMarkerException
559
+ attr_accessor message: ::String
560
+ SENSITIVE: []
561
+ end
562
+
563
+ class KMSInternalException
564
+ attr_accessor message: ::String
565
+ SENSITIVE: []
566
+ end
567
+
568
+ class KMSInvalidMacException
569
+ attr_accessor message: ::String
570
+ SENSITIVE: []
571
+ end
572
+
573
+ class KMSInvalidSignatureException
574
+ attr_accessor message: ::String
575
+ SENSITIVE: []
576
+ end
577
+
578
+ class KMSInvalidStateException
579
+ attr_accessor message: ::String
580
+ SENSITIVE: []
581
+ end
582
+
583
+ class KeyListEntry
584
+ attr_accessor key_id: ::String
585
+ attr_accessor key_arn: ::String
586
+ SENSITIVE: []
587
+ end
588
+
589
+ class KeyMetadata
590
+ attr_accessor aws_account_id: ::String
591
+ attr_accessor key_id: ::String
592
+ attr_accessor arn: ::String
593
+ attr_accessor creation_date: ::Time
594
+ attr_accessor enabled: bool
595
+ attr_accessor description: ::String
596
+ attr_accessor key_usage: ("SIGN_VERIFY" | "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT")
597
+ attr_accessor key_state: ("Creating" | "Enabled" | "Disabled" | "PendingDeletion" | "PendingImport" | "PendingReplicaDeletion" | "Unavailable" | "Updating")
598
+ attr_accessor deletion_date: ::Time
599
+ attr_accessor valid_to: ::Time
600
+ attr_accessor origin: ("AWS_KMS" | "EXTERNAL" | "AWS_CLOUDHSM" | "EXTERNAL_KEY_STORE")
601
+ attr_accessor custom_key_store_id: ::String
602
+ attr_accessor cloud_hsm_cluster_id: ::String
603
+ attr_accessor expiration_model: ("KEY_MATERIAL_EXPIRES" | "KEY_MATERIAL_DOES_NOT_EXPIRE")
604
+ attr_accessor key_manager: ("AWS" | "CUSTOMER")
605
+ attr_accessor 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")
606
+ attr_accessor 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")
607
+ attr_accessor encryption_algorithms: ::Array[("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")]
608
+ attr_accessor 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")]
609
+ attr_accessor key_agreement_algorithms: ::Array[("ECDH")]
610
+ attr_accessor multi_region: bool
611
+ attr_accessor multi_region_configuration: Types::MultiRegionConfiguration
612
+ attr_accessor pending_deletion_window_in_days: ::Integer
613
+ attr_accessor mac_algorithms: ::Array[("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")]
614
+ attr_accessor xks_key_configuration: Types::XksKeyConfigurationType
615
+ SENSITIVE: []
616
+ end
617
+
618
+ class KeyUnavailableException
619
+ attr_accessor message: ::String
620
+ SENSITIVE: []
621
+ end
622
+
623
+ class LimitExceededException
624
+ attr_accessor message: ::String
625
+ SENSITIVE: []
626
+ end
627
+
628
+ class ListAliasesRequest
629
+ attr_accessor key_id: ::String
630
+ attr_accessor limit: ::Integer
631
+ attr_accessor marker: ::String
632
+ SENSITIVE: []
633
+ end
634
+
635
+ class ListAliasesResponse
636
+ attr_accessor aliases: ::Array[Types::AliasListEntry]
637
+ attr_accessor next_marker: ::String
638
+ attr_accessor truncated: bool
639
+ SENSITIVE: []
640
+ end
641
+
642
+ class ListGrantsRequest
643
+ attr_accessor limit: ::Integer
644
+ attr_accessor marker: ::String
645
+ attr_accessor key_id: ::String
646
+ attr_accessor grant_id: ::String
647
+ attr_accessor grantee_principal: ::String
648
+ SENSITIVE: []
649
+ end
650
+
651
+ class ListGrantsResponse
652
+ attr_accessor grants: ::Array[Types::GrantListEntry]
653
+ attr_accessor next_marker: ::String
654
+ attr_accessor truncated: bool
655
+ SENSITIVE: []
656
+ end
657
+
658
+ class ListKeyPoliciesRequest
659
+ attr_accessor key_id: ::String
660
+ attr_accessor limit: ::Integer
661
+ attr_accessor marker: ::String
662
+ SENSITIVE: []
663
+ end
664
+
665
+ class ListKeyPoliciesResponse
666
+ attr_accessor policy_names: ::Array[::String]
667
+ attr_accessor next_marker: ::String
668
+ attr_accessor truncated: bool
669
+ SENSITIVE: []
670
+ end
671
+
672
+ class ListKeyRotationsRequest
673
+ attr_accessor key_id: ::String
674
+ attr_accessor limit: ::Integer
675
+ attr_accessor marker: ::String
676
+ SENSITIVE: []
677
+ end
678
+
679
+ class ListKeyRotationsResponse
680
+ attr_accessor rotations: ::Array[Types::RotationsListEntry]
681
+ attr_accessor next_marker: ::String
682
+ attr_accessor truncated: bool
683
+ SENSITIVE: []
684
+ end
685
+
686
+ class ListKeysRequest
687
+ attr_accessor limit: ::Integer
688
+ attr_accessor marker: ::String
689
+ SENSITIVE: []
690
+ end
691
+
692
+ class ListKeysResponse
693
+ attr_accessor keys: ::Array[Types::KeyListEntry]
694
+ attr_accessor next_marker: ::String
695
+ attr_accessor truncated: bool
696
+ SENSITIVE: []
697
+ end
698
+
699
+ class ListResourceTagsRequest
700
+ attr_accessor key_id: ::String
701
+ attr_accessor limit: ::Integer
702
+ attr_accessor marker: ::String
703
+ SENSITIVE: []
704
+ end
705
+
706
+ class ListResourceTagsResponse
707
+ attr_accessor tags: ::Array[Types::Tag]
708
+ attr_accessor next_marker: ::String
709
+ attr_accessor truncated: bool
710
+ SENSITIVE: []
711
+ end
712
+
713
+ class ListRetirableGrantsRequest
714
+ attr_accessor limit: ::Integer
715
+ attr_accessor marker: ::String
716
+ attr_accessor retiring_principal: ::String
717
+ SENSITIVE: []
718
+ end
719
+
720
+ class MalformedPolicyDocumentException
721
+ attr_accessor message: ::String
722
+ SENSITIVE: []
723
+ end
724
+
725
+ class MultiRegionConfiguration
726
+ attr_accessor multi_region_key_type: ("PRIMARY" | "REPLICA")
727
+ attr_accessor primary_key: Types::MultiRegionKey
728
+ attr_accessor replica_keys: ::Array[Types::MultiRegionKey]
729
+ SENSITIVE: []
730
+ end
731
+
732
+ class MultiRegionKey
733
+ attr_accessor arn: ::String
734
+ attr_accessor region: ::String
735
+ SENSITIVE: []
736
+ end
737
+
738
+ class NotFoundException
739
+ attr_accessor message: ::String
740
+ SENSITIVE: []
741
+ end
742
+
743
+ class PutKeyPolicyRequest
744
+ attr_accessor key_id: ::String
745
+ attr_accessor policy_name: ::String
746
+ attr_accessor policy: ::String
747
+ attr_accessor bypass_policy_lockout_safety_check: bool
748
+ SENSITIVE: []
749
+ end
750
+
751
+ class ReEncryptRequest
752
+ attr_accessor ciphertext_blob: ::String
753
+ attr_accessor source_encryption_context: ::Hash[::String, ::String]
754
+ attr_accessor source_key_id: ::String
755
+ attr_accessor destination_key_id: ::String
756
+ attr_accessor destination_encryption_context: ::Hash[::String, ::String]
757
+ attr_accessor source_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
758
+ attr_accessor destination_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
759
+ attr_accessor grant_tokens: ::Array[::String]
760
+ attr_accessor dry_run: bool
761
+ SENSITIVE: []
762
+ end
763
+
764
+ class ReEncryptResponse
765
+ attr_accessor ciphertext_blob: ::String
766
+ attr_accessor source_key_id: ::String
767
+ attr_accessor key_id: ::String
768
+ attr_accessor source_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
769
+ attr_accessor destination_encryption_algorithm: ("SYMMETRIC_DEFAULT" | "RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE")
770
+ SENSITIVE: []
771
+ end
772
+
773
+ class RecipientInfo
774
+ attr_accessor key_encryption_algorithm: ("RSAES_OAEP_SHA_256")
775
+ attr_accessor attestation_document: ::String
776
+ SENSITIVE: []
777
+ end
778
+
779
+ class ReplicateKeyRequest
780
+ attr_accessor key_id: ::String
781
+ attr_accessor replica_region: ::String
782
+ attr_accessor policy: ::String
783
+ attr_accessor bypass_policy_lockout_safety_check: bool
784
+ attr_accessor description: ::String
785
+ attr_accessor tags: ::Array[Types::Tag]
786
+ SENSITIVE: []
787
+ end
788
+
789
+ class ReplicateKeyResponse
790
+ attr_accessor replica_key_metadata: Types::KeyMetadata
791
+ attr_accessor replica_policy: ::String
792
+ attr_accessor replica_tags: ::Array[Types::Tag]
793
+ SENSITIVE: []
794
+ end
795
+
796
+ class RetireGrantRequest
797
+ attr_accessor grant_token: ::String
798
+ attr_accessor key_id: ::String
799
+ attr_accessor grant_id: ::String
800
+ attr_accessor dry_run: bool
801
+ SENSITIVE: []
802
+ end
803
+
804
+ class RevokeGrantRequest
805
+ attr_accessor key_id: ::String
806
+ attr_accessor grant_id: ::String
807
+ attr_accessor dry_run: bool
808
+ SENSITIVE: []
809
+ end
810
+
811
+ class RotateKeyOnDemandRequest
812
+ attr_accessor key_id: ::String
813
+ SENSITIVE: []
814
+ end
815
+
816
+ class RotateKeyOnDemandResponse
817
+ attr_accessor key_id: ::String
818
+ SENSITIVE: []
819
+ end
820
+
821
+ class RotationsListEntry
822
+ attr_accessor key_id: ::String
823
+ attr_accessor rotation_date: ::Time
824
+ attr_accessor rotation_type: ("AUTOMATIC" | "ON_DEMAND")
825
+ SENSITIVE: []
826
+ end
827
+
828
+ class ScheduleKeyDeletionRequest
829
+ attr_accessor key_id: ::String
830
+ attr_accessor pending_window_in_days: ::Integer
831
+ SENSITIVE: []
832
+ end
833
+
834
+ class ScheduleKeyDeletionResponse
835
+ attr_accessor key_id: ::String
836
+ attr_accessor deletion_date: ::Time
837
+ attr_accessor key_state: ("Creating" | "Enabled" | "Disabled" | "PendingDeletion" | "PendingImport" | "PendingReplicaDeletion" | "Unavailable" | "Updating")
838
+ attr_accessor pending_window_in_days: ::Integer
839
+ SENSITIVE: []
840
+ end
841
+
842
+ class SignRequest
843
+ attr_accessor key_id: ::String
844
+ attr_accessor message: ::String
845
+ attr_accessor message_type: ("RAW" | "DIGEST")
846
+ attr_accessor grant_tokens: ::Array[::String]
847
+ attr_accessor 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")
848
+ attr_accessor dry_run: bool
849
+ SENSITIVE: [:message]
850
+ end
851
+
852
+ class SignResponse
853
+ attr_accessor key_id: ::String
854
+ attr_accessor signature: ::String
855
+ attr_accessor 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")
856
+ SENSITIVE: []
857
+ end
858
+
859
+ class Tag
860
+ attr_accessor tag_key: ::String
861
+ attr_accessor tag_value: ::String
862
+ SENSITIVE: []
863
+ end
864
+
865
+ class TagException
866
+ attr_accessor message: ::String
867
+ SENSITIVE: []
868
+ end
869
+
870
+ class TagResourceRequest
871
+ attr_accessor key_id: ::String
872
+ attr_accessor tags: ::Array[Types::Tag]
873
+ SENSITIVE: []
874
+ end
875
+
876
+ class UnsupportedOperationException
877
+ attr_accessor message: ::String
878
+ SENSITIVE: []
879
+ end
880
+
881
+ class UntagResourceRequest
882
+ attr_accessor key_id: ::String
883
+ attr_accessor tag_keys: ::Array[::String]
884
+ SENSITIVE: []
885
+ end
886
+
887
+ class UpdateAliasRequest
888
+ attr_accessor alias_name: ::String
889
+ attr_accessor target_key_id: ::String
890
+ SENSITIVE: []
891
+ end
892
+
893
+ class UpdateCustomKeyStoreRequest
894
+ attr_accessor custom_key_store_id: ::String
895
+ attr_accessor new_custom_key_store_name: ::String
896
+ attr_accessor key_store_password: ::String
897
+ attr_accessor cloud_hsm_cluster_id: ::String
898
+ attr_accessor xks_proxy_uri_endpoint: ::String
899
+ attr_accessor xks_proxy_uri_path: ::String
900
+ attr_accessor xks_proxy_vpc_endpoint_service_name: ::String
901
+ attr_accessor xks_proxy_authentication_credential: Types::XksProxyAuthenticationCredentialType
902
+ attr_accessor xks_proxy_connectivity: ("PUBLIC_ENDPOINT" | "VPC_ENDPOINT_SERVICE")
903
+ SENSITIVE: [:key_store_password]
904
+ end
905
+
906
+ class UpdateCustomKeyStoreResponse < Aws::EmptyStructure
907
+ end
908
+
909
+ class UpdateKeyDescriptionRequest
910
+ attr_accessor key_id: ::String
911
+ attr_accessor description: ::String
912
+ SENSITIVE: []
913
+ end
914
+
915
+ class UpdatePrimaryRegionRequest
916
+ attr_accessor key_id: ::String
917
+ attr_accessor primary_region: ::String
918
+ SENSITIVE: []
919
+ end
920
+
921
+ class VerifyMacRequest
922
+ attr_accessor message: ::String
923
+ attr_accessor key_id: ::String
924
+ attr_accessor mac_algorithm: ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")
925
+ attr_accessor mac: ::String
926
+ attr_accessor grant_tokens: ::Array[::String]
927
+ attr_accessor dry_run: bool
928
+ SENSITIVE: [:message]
929
+ end
930
+
931
+ class VerifyMacResponse
932
+ attr_accessor key_id: ::String
933
+ attr_accessor mac_valid: bool
934
+ attr_accessor mac_algorithm: ("HMAC_SHA_224" | "HMAC_SHA_256" | "HMAC_SHA_384" | "HMAC_SHA_512")
935
+ SENSITIVE: []
936
+ end
937
+
938
+ class VerifyRequest
939
+ attr_accessor key_id: ::String
940
+ attr_accessor message: ::String
941
+ attr_accessor message_type: ("RAW" | "DIGEST")
942
+ attr_accessor signature: ::String
943
+ attr_accessor 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")
944
+ attr_accessor grant_tokens: ::Array[::String]
945
+ attr_accessor dry_run: bool
946
+ SENSITIVE: [:message]
947
+ end
948
+
949
+ class VerifyResponse
950
+ attr_accessor key_id: ::String
951
+ attr_accessor signature_valid: bool
952
+ attr_accessor 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")
953
+ SENSITIVE: []
954
+ end
955
+
956
+ class XksKeyAlreadyInUseException
957
+ attr_accessor message: ::String
958
+ SENSITIVE: []
959
+ end
960
+
961
+ class XksKeyConfigurationType
962
+ attr_accessor id: ::String
963
+ SENSITIVE: []
964
+ end
965
+
966
+ class XksKeyInvalidConfigurationException
967
+ attr_accessor message: ::String
968
+ SENSITIVE: []
969
+ end
970
+
971
+ class XksKeyNotFoundException
972
+ attr_accessor message: ::String
973
+ SENSITIVE: []
974
+ end
975
+
976
+ class XksProxyAuthenticationCredentialType
977
+ attr_accessor access_key_id: ::String
978
+ attr_accessor raw_secret_access_key: ::String
979
+ SENSITIVE: [:access_key_id, :raw_secret_access_key]
980
+ end
981
+
982
+ class XksProxyConfigurationType
983
+ attr_accessor connectivity: ("PUBLIC_ENDPOINT" | "VPC_ENDPOINT_SERVICE")
984
+ attr_accessor access_key_id: ::String
985
+ attr_accessor uri_endpoint: ::String
986
+ attr_accessor uri_path: ::String
987
+ attr_accessor vpc_endpoint_service_name: ::String
988
+ SENSITIVE: [:access_key_id]
989
+ end
990
+
991
+ class XksProxyIncorrectAuthenticationCredentialException
992
+ attr_accessor message: ::String
993
+ SENSITIVE: []
994
+ end
995
+
996
+ class XksProxyInvalidConfigurationException
997
+ attr_accessor message: ::String
998
+ SENSITIVE: []
999
+ end
1000
+
1001
+ class XksProxyInvalidResponseException
1002
+ attr_accessor message: ::String
1003
+ SENSITIVE: []
1004
+ end
1005
+
1006
+ class XksProxyUriEndpointInUseException
1007
+ attr_accessor message: ::String
1008
+ SENSITIVE: []
1009
+ end
1010
+
1011
+ class XksProxyUriInUseException
1012
+ attr_accessor message: ::String
1013
+ SENSITIVE: []
1014
+ end
1015
+
1016
+ class XksProxyUriUnreachableException
1017
+ attr_accessor message: ::String
1018
+ SENSITIVE: []
1019
+ end
1020
+
1021
+ class XksProxyVpcEndpointServiceInUseException
1022
+ attr_accessor message: ::String
1023
+ SENSITIVE: []
1024
+ end
1025
+
1026
+ class XksProxyVpcEndpointServiceInvalidConfigurationException
1027
+ attr_accessor message: ::String
1028
+ SENSITIVE: []
1029
+ end
1030
+
1031
+ class XksProxyVpcEndpointServiceNotFoundException
1032
+ attr_accessor message: ::String
1033
+ SENSITIVE: []
1034
+ end
1035
+ end
1036
+ end