aws-sdk-kms 1.72.0 → 1.96.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  module Aws::KMS
11
12
  # @api private
12
13
  module ClientApi
@@ -31,6 +32,7 @@ module Aws::KMS
31
32
  CloudHsmClusterNotActiveException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotActiveException')
32
33
  CloudHsmClusterNotFoundException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotFoundException')
33
34
  CloudHsmClusterNotRelatedException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotRelatedException')
35
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
34
36
  ConnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreRequest')
35
37
  ConnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreResponse')
36
38
  ConnectionErrorCodeType = Shapes::StringShape.new(name: 'ConnectionErrorCodeType')
@@ -62,6 +64,8 @@ module Aws::KMS
62
64
  DeleteCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreResponse')
63
65
  DeleteImportedKeyMaterialRequest = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialRequest')
64
66
  DependencyTimeoutException = Shapes::StructureShape.new(name: 'DependencyTimeoutException')
67
+ DeriveSharedSecretRequest = Shapes::StructureShape.new(name: 'DeriveSharedSecretRequest')
68
+ DeriveSharedSecretResponse = Shapes::StructureShape.new(name: 'DeriveSharedSecretResponse')
65
69
  DescribeCustomKeyStoresRequest = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresRequest')
66
70
  DescribeCustomKeyStoresResponse = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresResponse')
67
71
  DescribeKeyRequest = Shapes::StructureShape.new(name: 'DescribeKeyRequest')
@@ -131,6 +135,8 @@ module Aws::KMS
131
135
  KMSInvalidMacException = Shapes::StructureShape.new(name: 'KMSInvalidMacException')
132
136
  KMSInvalidSignatureException = Shapes::StructureShape.new(name: 'KMSInvalidSignatureException')
133
137
  KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
138
+ KeyAgreementAlgorithmSpec = Shapes::StringShape.new(name: 'KeyAgreementAlgorithmSpec')
139
+ KeyAgreementAlgorithmSpecList = Shapes::ListShape.new(name: 'KeyAgreementAlgorithmSpecList')
134
140
  KeyEncryptionMechanism = Shapes::StringShape.new(name: 'KeyEncryptionMechanism')
135
141
  KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
136
142
  KeyList = Shapes::ListShape.new(name: 'KeyList')
@@ -150,6 +156,8 @@ module Aws::KMS
150
156
  ListGrantsResponse = Shapes::StructureShape.new(name: 'ListGrantsResponse')
151
157
  ListKeyPoliciesRequest = Shapes::StructureShape.new(name: 'ListKeyPoliciesRequest')
152
158
  ListKeyPoliciesResponse = Shapes::StructureShape.new(name: 'ListKeyPoliciesResponse')
159
+ ListKeyRotationsRequest = Shapes::StructureShape.new(name: 'ListKeyRotationsRequest')
160
+ ListKeyRotationsResponse = Shapes::StructureShape.new(name: 'ListKeyRotationsResponse')
153
161
  ListKeysRequest = Shapes::StructureShape.new(name: 'ListKeysRequest')
154
162
  ListKeysResponse = Shapes::StructureShape.new(name: 'ListKeysResponse')
155
163
  ListResourceTagsRequest = Shapes::StructureShape.new(name: 'ListResourceTagsRequest')
@@ -184,6 +192,12 @@ module Aws::KMS
184
192
  ReplicateKeyResponse = Shapes::StructureShape.new(name: 'ReplicateKeyResponse')
185
193
  RetireGrantRequest = Shapes::StructureShape.new(name: 'RetireGrantRequest')
186
194
  RevokeGrantRequest = Shapes::StructureShape.new(name: 'RevokeGrantRequest')
195
+ RotateKeyOnDemandRequest = Shapes::StructureShape.new(name: 'RotateKeyOnDemandRequest')
196
+ RotateKeyOnDemandResponse = Shapes::StructureShape.new(name: 'RotateKeyOnDemandResponse')
197
+ RotationPeriodInDaysType = Shapes::IntegerShape.new(name: 'RotationPeriodInDaysType')
198
+ RotationType = Shapes::StringShape.new(name: 'RotationType')
199
+ RotationsList = Shapes::ListShape.new(name: 'RotationsList')
200
+ RotationsListEntry = Shapes::StructureShape.new(name: 'RotationsListEntry')
187
201
  ScheduleKeyDeletionRequest = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionRequest')
188
202
  ScheduleKeyDeletionResponse = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionResponse')
189
203
  SignRequest = Shapes::StructureShape.new(name: 'SignRequest')
@@ -266,6 +280,9 @@ module Aws::KMS
266
280
  CloudHsmClusterNotRelatedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
267
281
  CloudHsmClusterNotRelatedException.struct_class = Types::CloudHsmClusterNotRelatedException
268
282
 
283
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
284
+ ConflictException.struct_class = Types::ConflictException
285
+
269
286
  ConnectCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
270
287
  ConnectCustomKeyStoreRequest.struct_class = Types::ConnectCustomKeyStoreRequest
271
288
 
@@ -374,6 +391,21 @@ module Aws::KMS
374
391
  DependencyTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
375
392
  DependencyTimeoutException.struct_class = Types::DependencyTimeoutException
376
393
 
394
+ DeriveSharedSecretRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
395
+ DeriveSharedSecretRequest.add_member(:key_agreement_algorithm, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec, required: true, location_name: "KeyAgreementAlgorithm"))
396
+ DeriveSharedSecretRequest.add_member(:public_key, Shapes::ShapeRef.new(shape: PublicKeyType, required: true, location_name: "PublicKey"))
397
+ DeriveSharedSecretRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
398
+ DeriveSharedSecretRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
399
+ DeriveSharedSecretRequest.add_member(:recipient, Shapes::ShapeRef.new(shape: RecipientInfo, location_name: "Recipient"))
400
+ DeriveSharedSecretRequest.struct_class = Types::DeriveSharedSecretRequest
401
+
402
+ DeriveSharedSecretResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
403
+ DeriveSharedSecretResponse.add_member(:shared_secret, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "SharedSecret"))
404
+ DeriveSharedSecretResponse.add_member(:ciphertext_for_recipient, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextForRecipient"))
405
+ DeriveSharedSecretResponse.add_member(:key_agreement_algorithm, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec, location_name: "KeyAgreementAlgorithm"))
406
+ DeriveSharedSecretResponse.add_member(:key_origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "KeyOrigin"))
407
+ DeriveSharedSecretResponse.struct_class = Types::DeriveSharedSecretResponse
408
+
377
409
  DescribeCustomKeyStoresRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
378
410
  DescribeCustomKeyStoresRequest.add_member(:custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "CustomKeyStoreName"))
379
411
  DescribeCustomKeyStoresRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
@@ -413,6 +445,7 @@ module Aws::KMS
413
445
  EnableKeyRequest.struct_class = Types::EnableKeyRequest
414
446
 
415
447
  EnableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
448
+ EnableKeyRotationRequest.add_member(:rotation_period_in_days, Shapes::ShapeRef.new(shape: RotationPeriodInDaysType, location_name: "RotationPeriodInDays"))
416
449
  EnableKeyRotationRequest.struct_class = Types::EnableKeyRotationRequest
417
450
 
418
451
  EncryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
@@ -514,16 +547,21 @@ module Aws::KMS
514
547
  GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
515
548
 
516
549
  GetKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
517
- GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
550
+ GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
518
551
  GetKeyPolicyRequest.struct_class = Types::GetKeyPolicyRequest
519
552
 
520
553
  GetKeyPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
554
+ GetKeyPolicyResponse.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
521
555
  GetKeyPolicyResponse.struct_class = Types::GetKeyPolicyResponse
522
556
 
523
557
  GetKeyRotationStatusRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
524
558
  GetKeyRotationStatusRequest.struct_class = Types::GetKeyRotationStatusRequest
525
559
 
526
560
  GetKeyRotationStatusResponse.add_member(:key_rotation_enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "KeyRotationEnabled"))
561
+ GetKeyRotationStatusResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
562
+ GetKeyRotationStatusResponse.add_member(:rotation_period_in_days, Shapes::ShapeRef.new(shape: RotationPeriodInDaysType, location_name: "RotationPeriodInDays"))
563
+ GetKeyRotationStatusResponse.add_member(:next_rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "NextRotationDate"))
564
+ GetKeyRotationStatusResponse.add_member(:on_demand_rotation_start_date, Shapes::ShapeRef.new(shape: DateType, location_name: "OnDemandRotationStartDate"))
527
565
  GetKeyRotationStatusResponse.struct_class = Types::GetKeyRotationStatusResponse
528
566
 
529
567
  GetParametersForImportRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
@@ -548,6 +586,7 @@ module Aws::KMS
548
586
  GetPublicKeyResponse.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
549
587
  GetPublicKeyResponse.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
550
588
  GetPublicKeyResponse.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
589
+ GetPublicKeyResponse.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
551
590
  GetPublicKeyResponse.struct_class = Types::GetPublicKeyResponse
552
591
 
553
592
  GrantConstraints.add_member(:encryption_context_subset, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextSubset"))
@@ -625,6 +664,8 @@ module Aws::KMS
625
664
  KMSInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
626
665
  KMSInvalidStateException.struct_class = Types::KMSInvalidStateException
627
666
 
667
+ KeyAgreementAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpec)
668
+
628
669
  KeyList.member = Shapes::ShapeRef.new(shape: KeyListEntry)
629
670
 
630
671
  KeyListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
@@ -650,6 +691,7 @@ module Aws::KMS
650
691
  KeyMetadata.add_member(:key_spec, Shapes::ShapeRef.new(shape: KeySpec, location_name: "KeySpec"))
651
692
  KeyMetadata.add_member(:encryption_algorithms, Shapes::ShapeRef.new(shape: EncryptionAlgorithmSpecList, location_name: "EncryptionAlgorithms"))
652
693
  KeyMetadata.add_member(:signing_algorithms, Shapes::ShapeRef.new(shape: SigningAlgorithmSpecList, location_name: "SigningAlgorithms"))
694
+ KeyMetadata.add_member(:key_agreement_algorithms, Shapes::ShapeRef.new(shape: KeyAgreementAlgorithmSpecList, location_name: "KeyAgreementAlgorithms"))
653
695
  KeyMetadata.add_member(:multi_region, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "MultiRegion"))
654
696
  KeyMetadata.add_member(:multi_region_configuration, Shapes::ShapeRef.new(shape: MultiRegionConfiguration, location_name: "MultiRegionConfiguration"))
655
697
  KeyMetadata.add_member(:pending_deletion_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingDeletionWindowInDays"))
@@ -695,6 +737,16 @@ module Aws::KMS
695
737
  ListKeyPoliciesResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
696
738
  ListKeyPoliciesResponse.struct_class = Types::ListKeyPoliciesResponse
697
739
 
740
+ ListKeyRotationsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
741
+ ListKeyRotationsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
742
+ ListKeyRotationsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
743
+ ListKeyRotationsRequest.struct_class = Types::ListKeyRotationsRequest
744
+
745
+ ListKeyRotationsResponse.add_member(:rotations, Shapes::ShapeRef.new(shape: RotationsList, location_name: "Rotations"))
746
+ ListKeyRotationsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
747
+ ListKeyRotationsResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
748
+ ListKeyRotationsResponse.struct_class = Types::ListKeyRotationsResponse
749
+
698
750
  ListKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
699
751
  ListKeysRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
700
752
  ListKeysRequest.struct_class = Types::ListKeysRequest
@@ -741,7 +793,7 @@ module Aws::KMS
741
793
  PolicyNameList.member = Shapes::ShapeRef.new(shape: PolicyNameType)
742
794
 
743
795
  PutKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
744
- PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
796
+ PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, location_name: "PolicyName"))
745
797
  PutKeyPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "Policy"))
746
798
  PutKeyPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
747
799
  PutKeyPolicyRequest.struct_class = Types::PutKeyPolicyRequest
@@ -792,6 +844,19 @@ module Aws::KMS
792
844
  RevokeGrantRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "DryRun"))
793
845
  RevokeGrantRequest.struct_class = Types::RevokeGrantRequest
794
846
 
847
+ RotateKeyOnDemandRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
848
+ RotateKeyOnDemandRequest.struct_class = Types::RotateKeyOnDemandRequest
849
+
850
+ RotateKeyOnDemandResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
851
+ RotateKeyOnDemandResponse.struct_class = Types::RotateKeyOnDemandResponse
852
+
853
+ RotationsList.member = Shapes::ShapeRef.new(shape: RotationsListEntry)
854
+
855
+ RotationsListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
856
+ RotationsListEntry.add_member(:rotation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "RotationDate"))
857
+ RotationsListEntry.add_member(:rotation_type, Shapes::ShapeRef.new(shape: RotationType, location_name: "RotationType"))
858
+ RotationsListEntry.struct_class = Types::RotationsListEntry
859
+
795
860
  ScheduleKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
796
861
  ScheduleKeyDeletionRequest.add_member(:pending_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingWindowInDays"))
797
862
  ScheduleKeyDeletionRequest.struct_class = Types::ScheduleKeyDeletionRequest
@@ -949,9 +1014,11 @@ module Aws::KMS
949
1014
 
950
1015
  api.metadata = {
951
1016
  "apiVersion" => "2014-11-01",
1017
+ "auth" => ["aws.auth#sigv4"],
952
1018
  "endpointPrefix" => "kms",
953
1019
  "jsonVersion" => "1.1",
954
1020
  "protocol" => "json",
1021
+ "protocols" => ["json"],
955
1022
  "serviceAbbreviation" => "KMS",
956
1023
  "serviceFullName" => "AWS Key Management Service",
957
1024
  "serviceId" => "KMS",
@@ -1121,6 +1188,23 @@ module Aws::KMS
1121
1188
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1122
1189
  end)
1123
1190
 
1191
+ api.add_operation(:derive_shared_secret, Seahorse::Model::Operation.new.tap do |o|
1192
+ o.name = "DeriveSharedSecret"
1193
+ o.http_method = "POST"
1194
+ o.http_request_uri = "/"
1195
+ o.input = Shapes::ShapeRef.new(shape: DeriveSharedSecretRequest)
1196
+ o.output = Shapes::ShapeRef.new(shape: DeriveSharedSecretResponse)
1197
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1198
+ o.errors << Shapes::ShapeRef.new(shape: DisabledException)
1199
+ o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
1200
+ o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
1201
+ o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
1202
+ o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
1203
+ o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1204
+ o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1205
+ o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
1206
+ end)
1207
+
1124
1208
  api.add_operation(:describe_custom_key_stores, Seahorse::Model::Operation.new.tap do |o|
1125
1209
  o.name = "DescribeCustomKeyStores"
1126
1210
  o.http_method = "POST"
@@ -1131,6 +1215,7 @@ module Aws::KMS
1131
1215
  o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
1132
1216
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1133
1217
  o[:pager] = Aws::Pager.new(
1218
+ more_results: "truncated",
1134
1219
  limit_key: "limit",
1135
1220
  tokens: {
1136
1221
  "next_marker" => "marker"
@@ -1423,6 +1508,7 @@ module Aws::KMS
1423
1508
  o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
1424
1509
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1425
1510
  o[:pager] = Aws::Pager.new(
1511
+ more_results: "truncated",
1426
1512
  limit_key: "limit",
1427
1513
  tokens: {
1428
1514
  "next_marker" => "marker"
@@ -1444,6 +1530,7 @@ module Aws::KMS
1444
1530
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1445
1531
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1446
1532
  o[:pager] = Aws::Pager.new(
1533
+ more_results: "truncated",
1447
1534
  limit_key: "limit",
1448
1535
  tokens: {
1449
1536
  "next_marker" => "marker"
@@ -1463,6 +1550,28 @@ module Aws::KMS
1463
1550
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1464
1551
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1465
1552
  o[:pager] = Aws::Pager.new(
1553
+ more_results: "truncated",
1554
+ limit_key: "limit",
1555
+ tokens: {
1556
+ "next_marker" => "marker"
1557
+ }
1558
+ )
1559
+ end)
1560
+
1561
+ api.add_operation(:list_key_rotations, Seahorse::Model::Operation.new.tap do |o|
1562
+ o.name = "ListKeyRotations"
1563
+ o.http_method = "POST"
1564
+ o.http_request_uri = "/"
1565
+ o.input = Shapes::ShapeRef.new(shape: ListKeyRotationsRequest)
1566
+ o.output = Shapes::ShapeRef.new(shape: ListKeyRotationsResponse)
1567
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1568
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
1569
+ o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
1570
+ o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1571
+ o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1572
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1573
+ o[:pager] = Aws::Pager.new(
1574
+ more_results: "truncated",
1466
1575
  limit_key: "limit",
1467
1576
  tokens: {
1468
1577
  "next_marker" => "marker"
@@ -1480,6 +1589,7 @@ module Aws::KMS
1480
1589
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1481
1590
  o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
1482
1591
  o[:pager] = Aws::Pager.new(
1592
+ more_results: "truncated",
1483
1593
  limit_key: "limit",
1484
1594
  tokens: {
1485
1595
  "next_marker" => "marker"
@@ -1498,6 +1608,7 @@ module Aws::KMS
1498
1608
  o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
1499
1609
  o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
1500
1610
  o[:pager] = Aws::Pager.new(
1611
+ more_results: "truncated",
1501
1612
  limit_key: "limit",
1502
1613
  tokens: {
1503
1614
  "next_marker" => "marker"
@@ -1517,6 +1628,7 @@ module Aws::KMS
1517
1628
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1518
1629
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1519
1630
  o[:pager] = Aws::Pager.new(
1631
+ more_results: "truncated",
1520
1632
  limit_key: "limit",
1521
1633
  tokens: {
1522
1634
  "next_marker" => "marker"
@@ -1608,6 +1720,23 @@ module Aws::KMS
1608
1720
  o.errors << Shapes::ShapeRef.new(shape: DryRunOperationException)
1609
1721
  end)
1610
1722
 
1723
+ api.add_operation(:rotate_key_on_demand, Seahorse::Model::Operation.new.tap do |o|
1724
+ o.name = "RotateKeyOnDemand"
1725
+ o.http_method = "POST"
1726
+ o.http_request_uri = "/"
1727
+ o.input = Shapes::ShapeRef.new(shape: RotateKeyOnDemandRequest)
1728
+ o.output = Shapes::ShapeRef.new(shape: RotateKeyOnDemandResponse)
1729
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1730
+ o.errors << Shapes::ShapeRef.new(shape: DisabledException)
1731
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
1732
+ o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
1733
+ o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1734
+ o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1735
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1736
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1737
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1738
+ end)
1739
+
1611
1740
  api.add_operation(:schedule_key_deletion, Seahorse::Model::Operation.new.tap do |o|
1612
1741
  o.name = "ScheduleKeyDeletion"
1613
1742
  o.http_method = "POST"
@@ -52,15 +52,18 @@ module Aws::KMS
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -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?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
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"