aws-sdk-kms 1.64.0 → 1.76.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +60 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kms/client.rb +782 -183
- data/lib/aws-sdk-kms/client_api.rb +32 -0
- data/lib/aws-sdk-kms/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-kms/endpoints.rb +1 -0
- data/lib/aws-sdk-kms/errors.rb +16 -0
- data/lib/aws-sdk-kms/plugins/endpoints.rb +3 -2
- data/lib/aws-sdk-kms/types.rb +317 -69
- data/lib/aws-sdk-kms.rb +1 -1
- metadata +5 -5
@@ -72,6 +72,7 @@ module Aws::KMS
|
|
72
72
|
DisabledException = Shapes::StructureShape.new(name: 'DisabledException')
|
73
73
|
DisconnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreRequest')
|
74
74
|
DisconnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreResponse')
|
75
|
+
DryRunOperationException = Shapes::StructureShape.new(name: 'DryRunOperationException')
|
75
76
|
EnableKeyRequest = Shapes::StructureShape.new(name: 'EnableKeyRequest')
|
76
77
|
EnableKeyRotationRequest = Shapes::StructureShape.new(name: 'EnableKeyRotationRequest')
|
77
78
|
EncryptRequest = Shapes::StructureShape.new(name: 'EncryptRequest')
|
@@ -296,6 +297,7 @@ module Aws::KMS
|
|
296
297
|
CreateGrantRequest.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
|
297
298
|
CreateGrantRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
298
299
|
CreateGrantRequest.add_member(:name, Shapes::ShapeRef.new(shape: GrantNameType, location_name: "Name"))
|
300
|
+
CreateGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
299
301
|
CreateGrantRequest.struct_class = Types::CreateGrantRequest
|
300
302
|
|
301
303
|
CreateGrantResponse.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
@@ -349,6 +351,7 @@ module Aws::KMS
|
|
349
351
|
DecryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
350
352
|
DecryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
351
353
|
DecryptRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
354
|
+
DecryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
352
355
|
DecryptRequest.struct_class = Types::DecryptRequest
|
353
356
|
|
354
357
|
DecryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -403,6 +406,9 @@ module Aws::KMS
|
|
403
406
|
|
404
407
|
DisconnectCustomKeyStoreResponse.struct_class = Types::DisconnectCustomKeyStoreResponse
|
405
408
|
|
409
|
+
DryRunOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
|
410
|
+
DryRunOperationException.struct_class = Types::DryRunOperationException
|
411
|
+
|
406
412
|
EnableKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
407
413
|
EnableKeyRequest.struct_class = Types::EnableKeyRequest
|
408
414
|
|
@@ -414,6 +420,7 @@ module Aws::KMS
|
|
414
420
|
EncryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
|
415
421
|
EncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
416
422
|
EncryptRequest.add_member(:encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "EncryptionAlgorithm"))
|
423
|
+
EncryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
417
424
|
EncryptRequest.struct_class = Types::EncryptRequest
|
418
425
|
|
419
426
|
EncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
@@ -434,6 +441,7 @@ module Aws::KMS
|
|
434
441
|
GenerateDataKeyPairRequest.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, required: true, location_name: "KeyPairSpec"))
|
435
442
|
GenerateDataKeyPairRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
436
443
|
GenerateDataKeyPairRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
444
|
+
GenerateDataKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
437
445
|
GenerateDataKeyPairRequest.struct_class = Types::GenerateDataKeyPairRequest
|
438
446
|
|
439
447
|
GenerateDataKeyPairResponse.add_member(:private_key_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "PrivateKeyCiphertextBlob"))
|
@@ -448,6 +456,7 @@ module Aws::KMS
|
|
448
456
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
449
457
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:key_pair_spec, Shapes::ShapeRef.new(shape: DataKeyPairSpec, required: true, location_name: "KeyPairSpec"))
|
450
458
|
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
459
|
+
GenerateDataKeyPairWithoutPlaintextRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
451
460
|
GenerateDataKeyPairWithoutPlaintextRequest.struct_class = Types::GenerateDataKeyPairWithoutPlaintextRequest
|
452
461
|
|
453
462
|
GenerateDataKeyPairWithoutPlaintextResponse.add_member(:private_key_ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "PrivateKeyCiphertextBlob"))
|
@@ -462,6 +471,7 @@ module Aws::KMS
|
|
462
471
|
GenerateDataKeyRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
|
463
472
|
GenerateDataKeyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
464
473
|
GenerateDataKeyRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
|
474
|
+
GenerateDataKeyRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
465
475
|
GenerateDataKeyRequest.struct_class = Types::GenerateDataKeyRequest
|
466
476
|
|
467
477
|
GenerateDataKeyResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
@@ -475,6 +485,7 @@ module Aws::KMS
|
|
475
485
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
|
476
486
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
|
477
487
|
GenerateDataKeyWithoutPlaintextRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
488
|
+
GenerateDataKeyWithoutPlaintextRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
478
489
|
GenerateDataKeyWithoutPlaintextRequest.struct_class = Types::GenerateDataKeyWithoutPlaintextRequest
|
479
490
|
|
480
491
|
GenerateDataKeyWithoutPlaintextResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
@@ -485,6 +496,7 @@ module Aws::KMS
|
|
485
496
|
GenerateMacRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
486
497
|
GenerateMacRequest.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, required: true, location_name: "MacAlgorithm"))
|
487
498
|
GenerateMacRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
499
|
+
GenerateMacRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
488
500
|
GenerateMacRequest.struct_class = Types::GenerateMacRequest
|
489
501
|
|
490
502
|
GenerateMacResponse.add_member(:mac, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "Mac"))
|
@@ -742,6 +754,7 @@ module Aws::KMS
|
|
742
754
|
ReEncryptRequest.add_member(:source_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "SourceEncryptionAlgorithm"))
|
743
755
|
ReEncryptRequest.add_member(:destination_encryption_algorithm, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpec, location_name: "DestinationEncryptionAlgorithm"))
|
744
756
|
ReEncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
757
|
+
ReEncryptRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
745
758
|
ReEncryptRequest.struct_class = Types::ReEncryptRequest
|
746
759
|
|
747
760
|
ReEncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
|
@@ -771,10 +784,12 @@ module Aws::KMS
|
|
771
784
|
RetireGrantRequest.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
|
772
785
|
RetireGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
773
786
|
RetireGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
|
787
|
+
RetireGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
774
788
|
RetireGrantRequest.struct_class = Types::RetireGrantRequest
|
775
789
|
|
776
790
|
RevokeGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
777
791
|
RevokeGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, required: true, location_name: "GrantId"))
|
792
|
+
RevokeGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
778
793
|
RevokeGrantRequest.struct_class = Types::RevokeGrantRequest
|
779
794
|
|
780
795
|
ScheduleKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
|
@@ -792,6 +807,7 @@ module Aws::KMS
|
|
792
807
|
SignRequest.add_member(:message_type, Shapes::ShapeRef.new(shape: MessageType, location_name: "MessageType"))
|
793
808
|
SignRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
794
809
|
SignRequest.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, required: true, location_name: "SigningAlgorithm"))
|
810
|
+
SignRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
795
811
|
SignRequest.struct_class = Types::SignRequest
|
796
812
|
|
797
813
|
SignResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -853,6 +869,7 @@ module Aws::KMS
|
|
853
869
|
VerifyMacRequest.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, required: true, location_name: "MacAlgorithm"))
|
854
870
|
VerifyMacRequest.add_member(:mac, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "Mac"))
|
855
871
|
VerifyMacRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
872
|
+
VerifyMacRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
856
873
|
VerifyMacRequest.struct_class = Types::VerifyMacRequest
|
857
874
|
|
858
875
|
VerifyMacResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -866,6 +883,7 @@ module Aws::KMS
|
|
866
883
|
VerifyRequest.add_member(:signature, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "Signature"))
|
867
884
|
VerifyRequest.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, required: true, location_name: "SigningAlgorithm"))
|
868
885
|
VerifyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
|
886
|
+
VerifyRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
|
869
887
|
VerifyRequest.struct_class = Types::VerifyRequest
|
870
888
|
|
871
889
|
VerifyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
|
@@ -1022,6 +1040,7 @@ module Aws::KMS
|
|
1022
1040
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1023
1041
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1024
1042
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1043
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1025
1044
|
end)
|
1026
1045
|
|
1027
1046
|
api.add_operation(:create_key, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1061,6 +1080,7 @@ module Aws::KMS
|
|
1061
1080
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1062
1081
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1063
1082
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1083
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1064
1084
|
end)
|
1065
1085
|
|
1066
1086
|
api.add_operation(:delete_alias, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1212,6 +1232,7 @@ module Aws::KMS
|
|
1212
1232
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1213
1233
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1214
1234
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1235
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1215
1236
|
end)
|
1216
1237
|
|
1217
1238
|
api.add_operation(:generate_data_key, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1228,6 +1249,7 @@ module Aws::KMS
|
|
1228
1249
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1229
1250
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1230
1251
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1252
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1231
1253
|
end)
|
1232
1254
|
|
1233
1255
|
api.add_operation(:generate_data_key_pair, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1245,6 +1267,7 @@ module Aws::KMS
|
|
1245
1267
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1246
1268
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1247
1269
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1270
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1248
1271
|
end)
|
1249
1272
|
|
1250
1273
|
api.add_operation(:generate_data_key_pair_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1262,6 +1285,7 @@ module Aws::KMS
|
|
1262
1285
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1263
1286
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1264
1287
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1288
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1265
1289
|
end)
|
1266
1290
|
|
1267
1291
|
api.add_operation(:generate_data_key_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1278,6 +1302,7 @@ module Aws::KMS
|
|
1278
1302
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1279
1303
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1280
1304
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1305
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1281
1306
|
end)
|
1282
1307
|
|
1283
1308
|
api.add_operation(:generate_mac, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1293,6 +1318,7 @@ module Aws::KMS
|
|
1293
1318
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1294
1319
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1295
1320
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1321
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1296
1322
|
end)
|
1297
1323
|
|
1298
1324
|
api.add_operation(:generate_random, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1530,6 +1556,7 @@ module Aws::KMS
|
|
1530
1556
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1531
1557
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1532
1558
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1559
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1533
1560
|
end)
|
1534
1561
|
|
1535
1562
|
api.add_operation(:replicate_key, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1563,6 +1590,7 @@ module Aws::KMS
|
|
1563
1590
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
|
1564
1591
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1565
1592
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1593
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1566
1594
|
end)
|
1567
1595
|
|
1568
1596
|
api.add_operation(:revoke_grant, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1577,6 +1605,7 @@ module Aws::KMS
|
|
1577
1605
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
|
1578
1606
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1579
1607
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1608
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1580
1609
|
end)
|
1581
1610
|
|
1582
1611
|
api.add_operation(:schedule_key_deletion, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1606,6 +1635,7 @@ module Aws::KMS
|
|
1606
1635
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
|
1607
1636
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1608
1637
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1638
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1609
1639
|
end)
|
1610
1640
|
|
1611
1641
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1715,6 +1745,7 @@ module Aws::KMS
|
|
1715
1745
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1716
1746
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1717
1747
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidSignatureException)
|
1748
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1718
1749
|
end)
|
1719
1750
|
|
1720
1751
|
api.add_operation(:verify_mac, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1731,6 +1762,7 @@ module Aws::KMS
|
|
1731
1762
|
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
|
1732
1763
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidMacException)
|
1733
1764
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1765
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
|
1734
1766
|
end)
|
1735
1767
|
end
|
1736
1768
|
|
@@ -32,7 +32,7 @@ module Aws::KMS
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://kms-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
data/lib/aws-sdk-kms/errors.rb
CHANGED
@@ -39,6 +39,7 @@ module Aws::KMS
|
|
39
39
|
# * {CustomKeyStoreNotFoundException}
|
40
40
|
# * {DependencyTimeoutException}
|
41
41
|
# * {DisabledException}
|
42
|
+
# * {DryRunOperationException}
|
42
43
|
# * {ExpiredImportTokenException}
|
43
44
|
# * {IncorrectKeyException}
|
44
45
|
# * {IncorrectKeyMaterialException}
|
@@ -260,6 +261,21 @@ module Aws::KMS
|
|
260
261
|
end
|
261
262
|
end
|
262
263
|
|
264
|
+
class DryRunOperationException < ServiceError
|
265
|
+
|
266
|
+
# @param [Seahorse::Client::RequestContext] context
|
267
|
+
# @param [String] message
|
268
|
+
# @param [Aws::KMS::Types::DryRunOperationException] data
|
269
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
270
|
+
super(context, message, data)
|
271
|
+
end
|
272
|
+
|
273
|
+
# @return [String]
|
274
|
+
def message
|
275
|
+
@message || @data[:message]
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
263
279
|
class ExpiredImportTokenException < ServiceError
|
264
280
|
|
265
281
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -25,16 +25,17 @@ module Aws::KMS
|
|
25
25
|
# @api private
|
26
26
|
class Handler < Seahorse::Client::Handler
|
27
27
|
def call(context)
|
28
|
-
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
28
|
unless context[:discovered_endpoint]
|
30
29
|
params = parameters_for_operation(context)
|
31
30
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
31
|
|
33
32
|
context.http_request.endpoint = endpoint.url
|
34
33
|
apply_endpoint_headers(context, endpoint.headers)
|
34
|
+
|
35
|
+
context[:endpoint_params] = params
|
36
|
+
context[:endpoint_properties] = endpoint.properties
|
35
37
|
end
|
36
38
|
|
37
|
-
context[:endpoint_params] = params
|
38
39
|
context[:auth_scheme] =
|
39
40
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
41
|
|