aws-sdk-kms 1.23.0 → 1.77.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.
@@ -1,11 +1,82 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
4
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::KMS
11
+
12
+ # When KMS returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::KMS::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all KMS errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::KMS::Errors::ServiceError
20
+ # # rescues all KMS API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AlreadyExistsException}
31
+ # * {CloudHsmClusterInUseException}
32
+ # * {CloudHsmClusterInvalidConfigurationException}
33
+ # * {CloudHsmClusterNotActiveException}
34
+ # * {CloudHsmClusterNotFoundException}
35
+ # * {CloudHsmClusterNotRelatedException}
36
+ # * {CustomKeyStoreHasCMKsException}
37
+ # * {CustomKeyStoreInvalidStateException}
38
+ # * {CustomKeyStoreNameInUseException}
39
+ # * {CustomKeyStoreNotFoundException}
40
+ # * {DependencyTimeoutException}
41
+ # * {DisabledException}
42
+ # * {DryRunOperationException}
43
+ # * {ExpiredImportTokenException}
44
+ # * {IncorrectKeyException}
45
+ # * {IncorrectKeyMaterialException}
46
+ # * {IncorrectTrustAnchorException}
47
+ # * {InvalidAliasNameException}
48
+ # * {InvalidArnException}
49
+ # * {InvalidCiphertextException}
50
+ # * {InvalidGrantIdException}
51
+ # * {InvalidGrantTokenException}
52
+ # * {InvalidImportTokenException}
53
+ # * {InvalidKeyUsageException}
54
+ # * {InvalidMarkerException}
55
+ # * {KMSInternalException}
56
+ # * {KMSInvalidMacException}
57
+ # * {KMSInvalidSignatureException}
58
+ # * {KMSInvalidStateException}
59
+ # * {KeyUnavailableException}
60
+ # * {LimitExceededException}
61
+ # * {MalformedPolicyDocumentException}
62
+ # * {NotFoundException}
63
+ # * {TagException}
64
+ # * {UnsupportedOperationException}
65
+ # * {XksKeyAlreadyInUseException}
66
+ # * {XksKeyInvalidConfigurationException}
67
+ # * {XksKeyNotFoundException}
68
+ # * {XksProxyIncorrectAuthenticationCredentialException}
69
+ # * {XksProxyInvalidConfigurationException}
70
+ # * {XksProxyInvalidResponseException}
71
+ # * {XksProxyUriEndpointInUseException}
72
+ # * {XksProxyUriInUseException}
73
+ # * {XksProxyUriUnreachableException}
74
+ # * {XksProxyVpcEndpointServiceInUseException}
75
+ # * {XksProxyVpcEndpointServiceInvalidConfigurationException}
76
+ # * {XksProxyVpcEndpointServiceNotFoundException}
77
+ #
78
+ # Additionally, error classes are dynamically generated for service errors based on the error code
79
+ # if they are not defined above.
9
80
  module Errors
10
81
 
11
82
  extend Aws::Errors::DynamicErrors
@@ -23,7 +94,6 @@ module Aws::KMS
23
94
  def message
24
95
  @message || @data[:message]
25
96
  end
26
-
27
97
  end
28
98
 
29
99
  class CloudHsmClusterInUseException < ServiceError
@@ -39,7 +109,6 @@ module Aws::KMS
39
109
  def message
40
110
  @message || @data[:message]
41
111
  end
42
-
43
112
  end
44
113
 
45
114
  class CloudHsmClusterInvalidConfigurationException < ServiceError
@@ -55,7 +124,6 @@ module Aws::KMS
55
124
  def message
56
125
  @message || @data[:message]
57
126
  end
58
-
59
127
  end
60
128
 
61
129
  class CloudHsmClusterNotActiveException < ServiceError
@@ -71,7 +139,6 @@ module Aws::KMS
71
139
  def message
72
140
  @message || @data[:message]
73
141
  end
74
-
75
142
  end
76
143
 
77
144
  class CloudHsmClusterNotFoundException < ServiceError
@@ -87,7 +154,6 @@ module Aws::KMS
87
154
  def message
88
155
  @message || @data[:message]
89
156
  end
90
-
91
157
  end
92
158
 
93
159
  class CloudHsmClusterNotRelatedException < ServiceError
@@ -103,7 +169,6 @@ module Aws::KMS
103
169
  def message
104
170
  @message || @data[:message]
105
171
  end
106
-
107
172
  end
108
173
 
109
174
  class CustomKeyStoreHasCMKsException < ServiceError
@@ -119,7 +184,6 @@ module Aws::KMS
119
184
  def message
120
185
  @message || @data[:message]
121
186
  end
122
-
123
187
  end
124
188
 
125
189
  class CustomKeyStoreInvalidStateException < ServiceError
@@ -135,7 +199,6 @@ module Aws::KMS
135
199
  def message
136
200
  @message || @data[:message]
137
201
  end
138
-
139
202
  end
140
203
 
141
204
  class CustomKeyStoreNameInUseException < ServiceError
@@ -151,7 +214,6 @@ module Aws::KMS
151
214
  def message
152
215
  @message || @data[:message]
153
216
  end
154
-
155
217
  end
156
218
 
157
219
  class CustomKeyStoreNotFoundException < ServiceError
@@ -167,7 +229,6 @@ module Aws::KMS
167
229
  def message
168
230
  @message || @data[:message]
169
231
  end
170
-
171
232
  end
172
233
 
173
234
  class DependencyTimeoutException < ServiceError
@@ -183,7 +244,6 @@ module Aws::KMS
183
244
  def message
184
245
  @message || @data[:message]
185
246
  end
186
-
187
247
  end
188
248
 
189
249
  class DisabledException < ServiceError
@@ -199,7 +259,21 @@ module Aws::KMS
199
259
  def message
200
260
  @message || @data[:message]
201
261
  end
262
+ end
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
202
272
 
273
+ # @return [String]
274
+ def message
275
+ @message || @data[:message]
276
+ end
203
277
  end
204
278
 
205
279
  class ExpiredImportTokenException < ServiceError
@@ -215,7 +289,21 @@ module Aws::KMS
215
289
  def message
216
290
  @message || @data[:message]
217
291
  end
292
+ end
293
+
294
+ class IncorrectKeyException < ServiceError
218
295
 
296
+ # @param [Seahorse::Client::RequestContext] context
297
+ # @param [String] message
298
+ # @param [Aws::KMS::Types::IncorrectKeyException] data
299
+ def initialize(context, message, data = Aws::EmptyStructure.new)
300
+ super(context, message, data)
301
+ end
302
+
303
+ # @return [String]
304
+ def message
305
+ @message || @data[:message]
306
+ end
219
307
  end
220
308
 
221
309
  class IncorrectKeyMaterialException < ServiceError
@@ -231,7 +319,6 @@ module Aws::KMS
231
319
  def message
232
320
  @message || @data[:message]
233
321
  end
234
-
235
322
  end
236
323
 
237
324
  class IncorrectTrustAnchorException < ServiceError
@@ -247,7 +334,6 @@ module Aws::KMS
247
334
  def message
248
335
  @message || @data[:message]
249
336
  end
250
-
251
337
  end
252
338
 
253
339
  class InvalidAliasNameException < ServiceError
@@ -263,7 +349,6 @@ module Aws::KMS
263
349
  def message
264
350
  @message || @data[:message]
265
351
  end
266
-
267
352
  end
268
353
 
269
354
  class InvalidArnException < ServiceError
@@ -279,7 +364,6 @@ module Aws::KMS
279
364
  def message
280
365
  @message || @data[:message]
281
366
  end
282
-
283
367
  end
284
368
 
285
369
  class InvalidCiphertextException < ServiceError
@@ -295,7 +379,6 @@ module Aws::KMS
295
379
  def message
296
380
  @message || @data[:message]
297
381
  end
298
-
299
382
  end
300
383
 
301
384
  class InvalidGrantIdException < ServiceError
@@ -311,7 +394,6 @@ module Aws::KMS
311
394
  def message
312
395
  @message || @data[:message]
313
396
  end
314
-
315
397
  end
316
398
 
317
399
  class InvalidGrantTokenException < ServiceError
@@ -327,7 +409,6 @@ module Aws::KMS
327
409
  def message
328
410
  @message || @data[:message]
329
411
  end
330
-
331
412
  end
332
413
 
333
414
  class InvalidImportTokenException < ServiceError
@@ -343,7 +424,6 @@ module Aws::KMS
343
424
  def message
344
425
  @message || @data[:message]
345
426
  end
346
-
347
427
  end
348
428
 
349
429
  class InvalidKeyUsageException < ServiceError
@@ -359,7 +439,6 @@ module Aws::KMS
359
439
  def message
360
440
  @message || @data[:message]
361
441
  end
362
-
363
442
  end
364
443
 
365
444
  class InvalidMarkerException < ServiceError
@@ -375,7 +454,6 @@ module Aws::KMS
375
454
  def message
376
455
  @message || @data[:message]
377
456
  end
378
-
379
457
  end
380
458
 
381
459
  class KMSInternalException < ServiceError
@@ -391,7 +469,36 @@ module Aws::KMS
391
469
  def message
392
470
  @message || @data[:message]
393
471
  end
472
+ end
473
+
474
+ class KMSInvalidMacException < ServiceError
475
+
476
+ # @param [Seahorse::Client::RequestContext] context
477
+ # @param [String] message
478
+ # @param [Aws::KMS::Types::KMSInvalidMacException] data
479
+ def initialize(context, message, data = Aws::EmptyStructure.new)
480
+ super(context, message, data)
481
+ end
394
482
 
483
+ # @return [String]
484
+ def message
485
+ @message || @data[:message]
486
+ end
487
+ end
488
+
489
+ class KMSInvalidSignatureException < ServiceError
490
+
491
+ # @param [Seahorse::Client::RequestContext] context
492
+ # @param [String] message
493
+ # @param [Aws::KMS::Types::KMSInvalidSignatureException] data
494
+ def initialize(context, message, data = Aws::EmptyStructure.new)
495
+ super(context, message, data)
496
+ end
497
+
498
+ # @return [String]
499
+ def message
500
+ @message || @data[:message]
501
+ end
395
502
  end
396
503
 
397
504
  class KMSInvalidStateException < ServiceError
@@ -407,7 +514,6 @@ module Aws::KMS
407
514
  def message
408
515
  @message || @data[:message]
409
516
  end
410
-
411
517
  end
412
518
 
413
519
  class KeyUnavailableException < ServiceError
@@ -423,7 +529,6 @@ module Aws::KMS
423
529
  def message
424
530
  @message || @data[:message]
425
531
  end
426
-
427
532
  end
428
533
 
429
534
  class LimitExceededException < ServiceError
@@ -439,7 +544,6 @@ module Aws::KMS
439
544
  def message
440
545
  @message || @data[:message]
441
546
  end
442
-
443
547
  end
444
548
 
445
549
  class MalformedPolicyDocumentException < ServiceError
@@ -455,7 +559,6 @@ module Aws::KMS
455
559
  def message
456
560
  @message || @data[:message]
457
561
  end
458
-
459
562
  end
460
563
 
461
564
  class NotFoundException < ServiceError
@@ -471,7 +574,6 @@ module Aws::KMS
471
574
  def message
472
575
  @message || @data[:message]
473
576
  end
474
-
475
577
  end
476
578
 
477
579
  class TagException < ServiceError
@@ -487,7 +589,6 @@ module Aws::KMS
487
589
  def message
488
590
  @message || @data[:message]
489
591
  end
490
-
491
592
  end
492
593
 
493
594
  class UnsupportedOperationException < ServiceError
@@ -503,7 +604,186 @@ module Aws::KMS
503
604
  def message
504
605
  @message || @data[:message]
505
606
  end
607
+ end
608
+
609
+ class XksKeyAlreadyInUseException < ServiceError
610
+
611
+ # @param [Seahorse::Client::RequestContext] context
612
+ # @param [String] message
613
+ # @param [Aws::KMS::Types::XksKeyAlreadyInUseException] data
614
+ def initialize(context, message, data = Aws::EmptyStructure.new)
615
+ super(context, message, data)
616
+ end
617
+
618
+ # @return [String]
619
+ def message
620
+ @message || @data[:message]
621
+ end
622
+ end
506
623
 
624
+ class XksKeyInvalidConfigurationException < ServiceError
625
+
626
+ # @param [Seahorse::Client::RequestContext] context
627
+ # @param [String] message
628
+ # @param [Aws::KMS::Types::XksKeyInvalidConfigurationException] data
629
+ def initialize(context, message, data = Aws::EmptyStructure.new)
630
+ super(context, message, data)
631
+ end
632
+
633
+ # @return [String]
634
+ def message
635
+ @message || @data[:message]
636
+ end
637
+ end
638
+
639
+ class XksKeyNotFoundException < ServiceError
640
+
641
+ # @param [Seahorse::Client::RequestContext] context
642
+ # @param [String] message
643
+ # @param [Aws::KMS::Types::XksKeyNotFoundException] data
644
+ def initialize(context, message, data = Aws::EmptyStructure.new)
645
+ super(context, message, data)
646
+ end
647
+
648
+ # @return [String]
649
+ def message
650
+ @message || @data[:message]
651
+ end
652
+ end
653
+
654
+ class XksProxyIncorrectAuthenticationCredentialException < ServiceError
655
+
656
+ # @param [Seahorse::Client::RequestContext] context
657
+ # @param [String] message
658
+ # @param [Aws::KMS::Types::XksProxyIncorrectAuthenticationCredentialException] data
659
+ def initialize(context, message, data = Aws::EmptyStructure.new)
660
+ super(context, message, data)
661
+ end
662
+
663
+ # @return [String]
664
+ def message
665
+ @message || @data[:message]
666
+ end
667
+ end
668
+
669
+ class XksProxyInvalidConfigurationException < ServiceError
670
+
671
+ # @param [Seahorse::Client::RequestContext] context
672
+ # @param [String] message
673
+ # @param [Aws::KMS::Types::XksProxyInvalidConfigurationException] data
674
+ def initialize(context, message, data = Aws::EmptyStructure.new)
675
+ super(context, message, data)
676
+ end
677
+
678
+ # @return [String]
679
+ def message
680
+ @message || @data[:message]
681
+ end
682
+ end
683
+
684
+ class XksProxyInvalidResponseException < ServiceError
685
+
686
+ # @param [Seahorse::Client::RequestContext] context
687
+ # @param [String] message
688
+ # @param [Aws::KMS::Types::XksProxyInvalidResponseException] data
689
+ def initialize(context, message, data = Aws::EmptyStructure.new)
690
+ super(context, message, data)
691
+ end
692
+
693
+ # @return [String]
694
+ def message
695
+ @message || @data[:message]
696
+ end
697
+ end
698
+
699
+ class XksProxyUriEndpointInUseException < ServiceError
700
+
701
+ # @param [Seahorse::Client::RequestContext] context
702
+ # @param [String] message
703
+ # @param [Aws::KMS::Types::XksProxyUriEndpointInUseException] data
704
+ def initialize(context, message, data = Aws::EmptyStructure.new)
705
+ super(context, message, data)
706
+ end
707
+
708
+ # @return [String]
709
+ def message
710
+ @message || @data[:message]
711
+ end
712
+ end
713
+
714
+ class XksProxyUriInUseException < ServiceError
715
+
716
+ # @param [Seahorse::Client::RequestContext] context
717
+ # @param [String] message
718
+ # @param [Aws::KMS::Types::XksProxyUriInUseException] data
719
+ def initialize(context, message, data = Aws::EmptyStructure.new)
720
+ super(context, message, data)
721
+ end
722
+
723
+ # @return [String]
724
+ def message
725
+ @message || @data[:message]
726
+ end
727
+ end
728
+
729
+ class XksProxyUriUnreachableException < ServiceError
730
+
731
+ # @param [Seahorse::Client::RequestContext] context
732
+ # @param [String] message
733
+ # @param [Aws::KMS::Types::XksProxyUriUnreachableException] data
734
+ def initialize(context, message, data = Aws::EmptyStructure.new)
735
+ super(context, message, data)
736
+ end
737
+
738
+ # @return [String]
739
+ def message
740
+ @message || @data[:message]
741
+ end
742
+ end
743
+
744
+ class XksProxyVpcEndpointServiceInUseException < ServiceError
745
+
746
+ # @param [Seahorse::Client::RequestContext] context
747
+ # @param [String] message
748
+ # @param [Aws::KMS::Types::XksProxyVpcEndpointServiceInUseException] data
749
+ def initialize(context, message, data = Aws::EmptyStructure.new)
750
+ super(context, message, data)
751
+ end
752
+
753
+ # @return [String]
754
+ def message
755
+ @message || @data[:message]
756
+ end
757
+ end
758
+
759
+ class XksProxyVpcEndpointServiceInvalidConfigurationException < ServiceError
760
+
761
+ # @param [Seahorse::Client::RequestContext] context
762
+ # @param [String] message
763
+ # @param [Aws::KMS::Types::XksProxyVpcEndpointServiceInvalidConfigurationException] data
764
+ def initialize(context, message, data = Aws::EmptyStructure.new)
765
+ super(context, message, data)
766
+ end
767
+
768
+ # @return [String]
769
+ def message
770
+ @message || @data[:message]
771
+ end
772
+ end
773
+
774
+ class XksProxyVpcEndpointServiceNotFoundException < ServiceError
775
+
776
+ # @param [Seahorse::Client::RequestContext] context
777
+ # @param [String] message
778
+ # @param [Aws::KMS::Types::XksProxyVpcEndpointServiceNotFoundException] data
779
+ def initialize(context, message, data = Aws::EmptyStructure.new)
780
+ super(context, message, data)
781
+ end
782
+
783
+ # @return [String]
784
+ def message
785
+ @message || @data[:message]
786
+ end
507
787
  end
508
788
 
509
789
  end
@@ -0,0 +1,170 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::KMS
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::KMS::EndpointProvider',
17
+ rbs_type: 'untyped',
18
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
+ 'object that responds to `#resolve_endpoint(parameters)` '\
20
+ 'where `parameters` is a Struct similar to '\
21
+ '`Aws::KMS::EndpointParameters`'
22
+ ) do |cfg|
23
+ Aws::KMS::EndpointProvider.new
24
+ end
25
+
26
+ # @api private
27
+ class Handler < Seahorse::Client::Handler
28
+ def call(context)
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+
36
+ context[:endpoint_params] = params
37
+ context[:endpoint_properties] = endpoint.properties
38
+ end
39
+
40
+ context[:auth_scheme] =
41
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
+
43
+ @handler.call(context)
44
+ end
45
+
46
+ private
47
+
48
+ def apply_endpoint_headers(context, headers)
49
+ headers.each do |key, values|
50
+ value = values
51
+ .compact
52
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
53
+ .join(',')
54
+
55
+ context.http_request.headers[key] = value
56
+ end
57
+ end
58
+
59
+ def parameters_for_operation(context)
60
+ case context.operation_name
61
+ when :cancel_key_deletion
62
+ Aws::KMS::Endpoints::CancelKeyDeletion.build(context)
63
+ when :connect_custom_key_store
64
+ Aws::KMS::Endpoints::ConnectCustomKeyStore.build(context)
65
+ when :create_alias
66
+ Aws::KMS::Endpoints::CreateAlias.build(context)
67
+ when :create_custom_key_store
68
+ Aws::KMS::Endpoints::CreateCustomKeyStore.build(context)
69
+ when :create_grant
70
+ Aws::KMS::Endpoints::CreateGrant.build(context)
71
+ when :create_key
72
+ Aws::KMS::Endpoints::CreateKey.build(context)
73
+ when :decrypt
74
+ Aws::KMS::Endpoints::Decrypt.build(context)
75
+ when :delete_alias
76
+ Aws::KMS::Endpoints::DeleteAlias.build(context)
77
+ when :delete_custom_key_store
78
+ Aws::KMS::Endpoints::DeleteCustomKeyStore.build(context)
79
+ when :delete_imported_key_material
80
+ Aws::KMS::Endpoints::DeleteImportedKeyMaterial.build(context)
81
+ when :describe_custom_key_stores
82
+ Aws::KMS::Endpoints::DescribeCustomKeyStores.build(context)
83
+ when :describe_key
84
+ Aws::KMS::Endpoints::DescribeKey.build(context)
85
+ when :disable_key
86
+ Aws::KMS::Endpoints::DisableKey.build(context)
87
+ when :disable_key_rotation
88
+ Aws::KMS::Endpoints::DisableKeyRotation.build(context)
89
+ when :disconnect_custom_key_store
90
+ Aws::KMS::Endpoints::DisconnectCustomKeyStore.build(context)
91
+ when :enable_key
92
+ Aws::KMS::Endpoints::EnableKey.build(context)
93
+ when :enable_key_rotation
94
+ Aws::KMS::Endpoints::EnableKeyRotation.build(context)
95
+ when :encrypt
96
+ Aws::KMS::Endpoints::Encrypt.build(context)
97
+ when :generate_data_key
98
+ Aws::KMS::Endpoints::GenerateDataKey.build(context)
99
+ when :generate_data_key_pair
100
+ Aws::KMS::Endpoints::GenerateDataKeyPair.build(context)
101
+ when :generate_data_key_pair_without_plaintext
102
+ Aws::KMS::Endpoints::GenerateDataKeyPairWithoutPlaintext.build(context)
103
+ when :generate_data_key_without_plaintext
104
+ Aws::KMS::Endpoints::GenerateDataKeyWithoutPlaintext.build(context)
105
+ when :generate_mac
106
+ Aws::KMS::Endpoints::GenerateMac.build(context)
107
+ when :generate_random
108
+ Aws::KMS::Endpoints::GenerateRandom.build(context)
109
+ when :get_key_policy
110
+ Aws::KMS::Endpoints::GetKeyPolicy.build(context)
111
+ when :get_key_rotation_status
112
+ Aws::KMS::Endpoints::GetKeyRotationStatus.build(context)
113
+ when :get_parameters_for_import
114
+ Aws::KMS::Endpoints::GetParametersForImport.build(context)
115
+ when :get_public_key
116
+ Aws::KMS::Endpoints::GetPublicKey.build(context)
117
+ when :import_key_material
118
+ Aws::KMS::Endpoints::ImportKeyMaterial.build(context)
119
+ when :list_aliases
120
+ Aws::KMS::Endpoints::ListAliases.build(context)
121
+ when :list_grants
122
+ Aws::KMS::Endpoints::ListGrants.build(context)
123
+ when :list_key_policies
124
+ Aws::KMS::Endpoints::ListKeyPolicies.build(context)
125
+ when :list_keys
126
+ Aws::KMS::Endpoints::ListKeys.build(context)
127
+ when :list_resource_tags
128
+ Aws::KMS::Endpoints::ListResourceTags.build(context)
129
+ when :list_retirable_grants
130
+ Aws::KMS::Endpoints::ListRetirableGrants.build(context)
131
+ when :put_key_policy
132
+ Aws::KMS::Endpoints::PutKeyPolicy.build(context)
133
+ when :re_encrypt
134
+ Aws::KMS::Endpoints::ReEncrypt.build(context)
135
+ when :replicate_key
136
+ Aws::KMS::Endpoints::ReplicateKey.build(context)
137
+ when :retire_grant
138
+ Aws::KMS::Endpoints::RetireGrant.build(context)
139
+ when :revoke_grant
140
+ Aws::KMS::Endpoints::RevokeGrant.build(context)
141
+ when :schedule_key_deletion
142
+ Aws::KMS::Endpoints::ScheduleKeyDeletion.build(context)
143
+ when :sign
144
+ Aws::KMS::Endpoints::Sign.build(context)
145
+ when :tag_resource
146
+ Aws::KMS::Endpoints::TagResource.build(context)
147
+ when :untag_resource
148
+ Aws::KMS::Endpoints::UntagResource.build(context)
149
+ when :update_alias
150
+ Aws::KMS::Endpoints::UpdateAlias.build(context)
151
+ when :update_custom_key_store
152
+ Aws::KMS::Endpoints::UpdateCustomKeyStore.build(context)
153
+ when :update_key_description
154
+ Aws::KMS::Endpoints::UpdateKeyDescription.build(context)
155
+ when :update_primary_region
156
+ Aws::KMS::Endpoints::UpdatePrimaryRegion.build(context)
157
+ when :verify
158
+ Aws::KMS::Endpoints::Verify.build(context)
159
+ when :verify_mac
160
+ Aws::KMS::Endpoints::VerifyMac.build(context)
161
+ end
162
+ end
163
+ end
164
+
165
+ def add_handlers(handlers, _config)
166
+ handlers.add(Handler, step: :build, priority: 75)
167
+ end
168
+ end
169
+ end
170
+ end