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.
@@ -1,14 +1,806 @@
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
+ # * {ConflictException}
37
+ # * {CustomKeyStoreHasCMKsException}
38
+ # * {CustomKeyStoreInvalidStateException}
39
+ # * {CustomKeyStoreNameInUseException}
40
+ # * {CustomKeyStoreNotFoundException}
41
+ # * {DependencyTimeoutException}
42
+ # * {DisabledException}
43
+ # * {DryRunOperationException}
44
+ # * {ExpiredImportTokenException}
45
+ # * {IncorrectKeyException}
46
+ # * {IncorrectKeyMaterialException}
47
+ # * {IncorrectTrustAnchorException}
48
+ # * {InvalidAliasNameException}
49
+ # * {InvalidArnException}
50
+ # * {InvalidCiphertextException}
51
+ # * {InvalidGrantIdException}
52
+ # * {InvalidGrantTokenException}
53
+ # * {InvalidImportTokenException}
54
+ # * {InvalidKeyUsageException}
55
+ # * {InvalidMarkerException}
56
+ # * {KMSInternalException}
57
+ # * {KMSInvalidMacException}
58
+ # * {KMSInvalidSignatureException}
59
+ # * {KMSInvalidStateException}
60
+ # * {KeyUnavailableException}
61
+ # * {LimitExceededException}
62
+ # * {MalformedPolicyDocumentException}
63
+ # * {NotFoundException}
64
+ # * {TagException}
65
+ # * {UnsupportedOperationException}
66
+ # * {XksKeyAlreadyInUseException}
67
+ # * {XksKeyInvalidConfigurationException}
68
+ # * {XksKeyNotFoundException}
69
+ # * {XksProxyIncorrectAuthenticationCredentialException}
70
+ # * {XksProxyInvalidConfigurationException}
71
+ # * {XksProxyInvalidResponseException}
72
+ # * {XksProxyUriEndpointInUseException}
73
+ # * {XksProxyUriInUseException}
74
+ # * {XksProxyUriUnreachableException}
75
+ # * {XksProxyVpcEndpointServiceInUseException}
76
+ # * {XksProxyVpcEndpointServiceInvalidConfigurationException}
77
+ # * {XksProxyVpcEndpointServiceNotFoundException}
78
+ #
79
+ # Additionally, error classes are dynamically generated for service errors based on the error code
80
+ # if they are not defined above.
9
81
  module Errors
10
82
 
11
83
  extend Aws::Errors::DynamicErrors
12
84
 
85
+ class AlreadyExistsException < ServiceError
86
+
87
+ # @param [Seahorse::Client::RequestContext] context
88
+ # @param [String] message
89
+ # @param [Aws::KMS::Types::AlreadyExistsException] data
90
+ def initialize(context, message, data = Aws::EmptyStructure.new)
91
+ super(context, message, data)
92
+ end
93
+
94
+ # @return [String]
95
+ def message
96
+ @message || @data[:message]
97
+ end
98
+ end
99
+
100
+ class CloudHsmClusterInUseException < ServiceError
101
+
102
+ # @param [Seahorse::Client::RequestContext] context
103
+ # @param [String] message
104
+ # @param [Aws::KMS::Types::CloudHsmClusterInUseException] data
105
+ def initialize(context, message, data = Aws::EmptyStructure.new)
106
+ super(context, message, data)
107
+ end
108
+
109
+ # @return [String]
110
+ def message
111
+ @message || @data[:message]
112
+ end
113
+ end
114
+
115
+ class CloudHsmClusterInvalidConfigurationException < ServiceError
116
+
117
+ # @param [Seahorse::Client::RequestContext] context
118
+ # @param [String] message
119
+ # @param [Aws::KMS::Types::CloudHsmClusterInvalidConfigurationException] data
120
+ def initialize(context, message, data = Aws::EmptyStructure.new)
121
+ super(context, message, data)
122
+ end
123
+
124
+ # @return [String]
125
+ def message
126
+ @message || @data[:message]
127
+ end
128
+ end
129
+
130
+ class CloudHsmClusterNotActiveException < ServiceError
131
+
132
+ # @param [Seahorse::Client::RequestContext] context
133
+ # @param [String] message
134
+ # @param [Aws::KMS::Types::CloudHsmClusterNotActiveException] data
135
+ def initialize(context, message, data = Aws::EmptyStructure.new)
136
+ super(context, message, data)
137
+ end
138
+
139
+ # @return [String]
140
+ def message
141
+ @message || @data[:message]
142
+ end
143
+ end
144
+
145
+ class CloudHsmClusterNotFoundException < ServiceError
146
+
147
+ # @param [Seahorse::Client::RequestContext] context
148
+ # @param [String] message
149
+ # @param [Aws::KMS::Types::CloudHsmClusterNotFoundException] data
150
+ def initialize(context, message, data = Aws::EmptyStructure.new)
151
+ super(context, message, data)
152
+ end
153
+
154
+ # @return [String]
155
+ def message
156
+ @message || @data[:message]
157
+ end
158
+ end
159
+
160
+ class CloudHsmClusterNotRelatedException < ServiceError
161
+
162
+ # @param [Seahorse::Client::RequestContext] context
163
+ # @param [String] message
164
+ # @param [Aws::KMS::Types::CloudHsmClusterNotRelatedException] data
165
+ def initialize(context, message, data = Aws::EmptyStructure.new)
166
+ super(context, message, data)
167
+ end
168
+
169
+ # @return [String]
170
+ def message
171
+ @message || @data[:message]
172
+ end
173
+ end
174
+
175
+ class ConflictException < ServiceError
176
+
177
+ # @param [Seahorse::Client::RequestContext] context
178
+ # @param [String] message
179
+ # @param [Aws::KMS::Types::ConflictException] data
180
+ def initialize(context, message, data = Aws::EmptyStructure.new)
181
+ super(context, message, data)
182
+ end
183
+
184
+ # @return [String]
185
+ def message
186
+ @message || @data[:message]
187
+ end
188
+ end
189
+
190
+ class CustomKeyStoreHasCMKsException < ServiceError
191
+
192
+ # @param [Seahorse::Client::RequestContext] context
193
+ # @param [String] message
194
+ # @param [Aws::KMS::Types::CustomKeyStoreHasCMKsException] data
195
+ def initialize(context, message, data = Aws::EmptyStructure.new)
196
+ super(context, message, data)
197
+ end
198
+
199
+ # @return [String]
200
+ def message
201
+ @message || @data[:message]
202
+ end
203
+ end
204
+
205
+ class CustomKeyStoreInvalidStateException < ServiceError
206
+
207
+ # @param [Seahorse::Client::RequestContext] context
208
+ # @param [String] message
209
+ # @param [Aws::KMS::Types::CustomKeyStoreInvalidStateException] data
210
+ def initialize(context, message, data = Aws::EmptyStructure.new)
211
+ super(context, message, data)
212
+ end
213
+
214
+ # @return [String]
215
+ def message
216
+ @message || @data[:message]
217
+ end
218
+ end
219
+
220
+ class CustomKeyStoreNameInUseException < ServiceError
221
+
222
+ # @param [Seahorse::Client::RequestContext] context
223
+ # @param [String] message
224
+ # @param [Aws::KMS::Types::CustomKeyStoreNameInUseException] data
225
+ def initialize(context, message, data = Aws::EmptyStructure.new)
226
+ super(context, message, data)
227
+ end
228
+
229
+ # @return [String]
230
+ def message
231
+ @message || @data[:message]
232
+ end
233
+ end
234
+
235
+ class CustomKeyStoreNotFoundException < ServiceError
236
+
237
+ # @param [Seahorse::Client::RequestContext] context
238
+ # @param [String] message
239
+ # @param [Aws::KMS::Types::CustomKeyStoreNotFoundException] data
240
+ def initialize(context, message, data = Aws::EmptyStructure.new)
241
+ super(context, message, data)
242
+ end
243
+
244
+ # @return [String]
245
+ def message
246
+ @message || @data[:message]
247
+ end
248
+ end
249
+
250
+ class DependencyTimeoutException < ServiceError
251
+
252
+ # @param [Seahorse::Client::RequestContext] context
253
+ # @param [String] message
254
+ # @param [Aws::KMS::Types::DependencyTimeoutException] data
255
+ def initialize(context, message, data = Aws::EmptyStructure.new)
256
+ super(context, message, data)
257
+ end
258
+
259
+ # @return [String]
260
+ def message
261
+ @message || @data[:message]
262
+ end
263
+ end
264
+
265
+ class DisabledException < ServiceError
266
+
267
+ # @param [Seahorse::Client::RequestContext] context
268
+ # @param [String] message
269
+ # @param [Aws::KMS::Types::DisabledException] data
270
+ def initialize(context, message, data = Aws::EmptyStructure.new)
271
+ super(context, message, data)
272
+ end
273
+
274
+ # @return [String]
275
+ def message
276
+ @message || @data[:message]
277
+ end
278
+ end
279
+
280
+ class DryRunOperationException < ServiceError
281
+
282
+ # @param [Seahorse::Client::RequestContext] context
283
+ # @param [String] message
284
+ # @param [Aws::KMS::Types::DryRunOperationException] data
285
+ def initialize(context, message, data = Aws::EmptyStructure.new)
286
+ super(context, message, data)
287
+ end
288
+
289
+ # @return [String]
290
+ def message
291
+ @message || @data[:message]
292
+ end
293
+ end
294
+
295
+ class ExpiredImportTokenException < ServiceError
296
+
297
+ # @param [Seahorse::Client::RequestContext] context
298
+ # @param [String] message
299
+ # @param [Aws::KMS::Types::ExpiredImportTokenException] data
300
+ def initialize(context, message, data = Aws::EmptyStructure.new)
301
+ super(context, message, data)
302
+ end
303
+
304
+ # @return [String]
305
+ def message
306
+ @message || @data[:message]
307
+ end
308
+ end
309
+
310
+ class IncorrectKeyException < ServiceError
311
+
312
+ # @param [Seahorse::Client::RequestContext] context
313
+ # @param [String] message
314
+ # @param [Aws::KMS::Types::IncorrectKeyException] data
315
+ def initialize(context, message, data = Aws::EmptyStructure.new)
316
+ super(context, message, data)
317
+ end
318
+
319
+ # @return [String]
320
+ def message
321
+ @message || @data[:message]
322
+ end
323
+ end
324
+
325
+ class IncorrectKeyMaterialException < ServiceError
326
+
327
+ # @param [Seahorse::Client::RequestContext] context
328
+ # @param [String] message
329
+ # @param [Aws::KMS::Types::IncorrectKeyMaterialException] data
330
+ def initialize(context, message, data = Aws::EmptyStructure.new)
331
+ super(context, message, data)
332
+ end
333
+
334
+ # @return [String]
335
+ def message
336
+ @message || @data[:message]
337
+ end
338
+ end
339
+
340
+ class IncorrectTrustAnchorException < ServiceError
341
+
342
+ # @param [Seahorse::Client::RequestContext] context
343
+ # @param [String] message
344
+ # @param [Aws::KMS::Types::IncorrectTrustAnchorException] data
345
+ def initialize(context, message, data = Aws::EmptyStructure.new)
346
+ super(context, message, data)
347
+ end
348
+
349
+ # @return [String]
350
+ def message
351
+ @message || @data[:message]
352
+ end
353
+ end
354
+
355
+ class InvalidAliasNameException < ServiceError
356
+
357
+ # @param [Seahorse::Client::RequestContext] context
358
+ # @param [String] message
359
+ # @param [Aws::KMS::Types::InvalidAliasNameException] data
360
+ def initialize(context, message, data = Aws::EmptyStructure.new)
361
+ super(context, message, data)
362
+ end
363
+
364
+ # @return [String]
365
+ def message
366
+ @message || @data[:message]
367
+ end
368
+ end
369
+
370
+ class InvalidArnException < ServiceError
371
+
372
+ # @param [Seahorse::Client::RequestContext] context
373
+ # @param [String] message
374
+ # @param [Aws::KMS::Types::InvalidArnException] data
375
+ def initialize(context, message, data = Aws::EmptyStructure.new)
376
+ super(context, message, data)
377
+ end
378
+
379
+ # @return [String]
380
+ def message
381
+ @message || @data[:message]
382
+ end
383
+ end
384
+
385
+ class InvalidCiphertextException < ServiceError
386
+
387
+ # @param [Seahorse::Client::RequestContext] context
388
+ # @param [String] message
389
+ # @param [Aws::KMS::Types::InvalidCiphertextException] data
390
+ def initialize(context, message, data = Aws::EmptyStructure.new)
391
+ super(context, message, data)
392
+ end
393
+
394
+ # @return [String]
395
+ def message
396
+ @message || @data[:message]
397
+ end
398
+ end
399
+
400
+ class InvalidGrantIdException < ServiceError
401
+
402
+ # @param [Seahorse::Client::RequestContext] context
403
+ # @param [String] message
404
+ # @param [Aws::KMS::Types::InvalidGrantIdException] data
405
+ def initialize(context, message, data = Aws::EmptyStructure.new)
406
+ super(context, message, data)
407
+ end
408
+
409
+ # @return [String]
410
+ def message
411
+ @message || @data[:message]
412
+ end
413
+ end
414
+
415
+ class InvalidGrantTokenException < ServiceError
416
+
417
+ # @param [Seahorse::Client::RequestContext] context
418
+ # @param [String] message
419
+ # @param [Aws::KMS::Types::InvalidGrantTokenException] data
420
+ def initialize(context, message, data = Aws::EmptyStructure.new)
421
+ super(context, message, data)
422
+ end
423
+
424
+ # @return [String]
425
+ def message
426
+ @message || @data[:message]
427
+ end
428
+ end
429
+
430
+ class InvalidImportTokenException < ServiceError
431
+
432
+ # @param [Seahorse::Client::RequestContext] context
433
+ # @param [String] message
434
+ # @param [Aws::KMS::Types::InvalidImportTokenException] data
435
+ def initialize(context, message, data = Aws::EmptyStructure.new)
436
+ super(context, message, data)
437
+ end
438
+
439
+ # @return [String]
440
+ def message
441
+ @message || @data[:message]
442
+ end
443
+ end
444
+
445
+ class InvalidKeyUsageException < ServiceError
446
+
447
+ # @param [Seahorse::Client::RequestContext] context
448
+ # @param [String] message
449
+ # @param [Aws::KMS::Types::InvalidKeyUsageException] data
450
+ def initialize(context, message, data = Aws::EmptyStructure.new)
451
+ super(context, message, data)
452
+ end
453
+
454
+ # @return [String]
455
+ def message
456
+ @message || @data[:message]
457
+ end
458
+ end
459
+
460
+ class InvalidMarkerException < ServiceError
461
+
462
+ # @param [Seahorse::Client::RequestContext] context
463
+ # @param [String] message
464
+ # @param [Aws::KMS::Types::InvalidMarkerException] data
465
+ def initialize(context, message, data = Aws::EmptyStructure.new)
466
+ super(context, message, data)
467
+ end
468
+
469
+ # @return [String]
470
+ def message
471
+ @message || @data[:message]
472
+ end
473
+ end
474
+
475
+ class KMSInternalException < ServiceError
476
+
477
+ # @param [Seahorse::Client::RequestContext] context
478
+ # @param [String] message
479
+ # @param [Aws::KMS::Types::KMSInternalException] data
480
+ def initialize(context, message, data = Aws::EmptyStructure.new)
481
+ super(context, message, data)
482
+ end
483
+
484
+ # @return [String]
485
+ def message
486
+ @message || @data[:message]
487
+ end
488
+ end
489
+
490
+ class KMSInvalidMacException < ServiceError
491
+
492
+ # @param [Seahorse::Client::RequestContext] context
493
+ # @param [String] message
494
+ # @param [Aws::KMS::Types::KMSInvalidMacException] data
495
+ def initialize(context, message, data = Aws::EmptyStructure.new)
496
+ super(context, message, data)
497
+ end
498
+
499
+ # @return [String]
500
+ def message
501
+ @message || @data[:message]
502
+ end
503
+ end
504
+
505
+ class KMSInvalidSignatureException < ServiceError
506
+
507
+ # @param [Seahorse::Client::RequestContext] context
508
+ # @param [String] message
509
+ # @param [Aws::KMS::Types::KMSInvalidSignatureException] data
510
+ def initialize(context, message, data = Aws::EmptyStructure.new)
511
+ super(context, message, data)
512
+ end
513
+
514
+ # @return [String]
515
+ def message
516
+ @message || @data[:message]
517
+ end
518
+ end
519
+
520
+ class KMSInvalidStateException < ServiceError
521
+
522
+ # @param [Seahorse::Client::RequestContext] context
523
+ # @param [String] message
524
+ # @param [Aws::KMS::Types::KMSInvalidStateException] data
525
+ def initialize(context, message, data = Aws::EmptyStructure.new)
526
+ super(context, message, data)
527
+ end
528
+
529
+ # @return [String]
530
+ def message
531
+ @message || @data[:message]
532
+ end
533
+ end
534
+
535
+ class KeyUnavailableException < ServiceError
536
+
537
+ # @param [Seahorse::Client::RequestContext] context
538
+ # @param [String] message
539
+ # @param [Aws::KMS::Types::KeyUnavailableException] data
540
+ def initialize(context, message, data = Aws::EmptyStructure.new)
541
+ super(context, message, data)
542
+ end
543
+
544
+ # @return [String]
545
+ def message
546
+ @message || @data[:message]
547
+ end
548
+ end
549
+
550
+ class LimitExceededException < ServiceError
551
+
552
+ # @param [Seahorse::Client::RequestContext] context
553
+ # @param [String] message
554
+ # @param [Aws::KMS::Types::LimitExceededException] data
555
+ def initialize(context, message, data = Aws::EmptyStructure.new)
556
+ super(context, message, data)
557
+ end
558
+
559
+ # @return [String]
560
+ def message
561
+ @message || @data[:message]
562
+ end
563
+ end
564
+
565
+ class MalformedPolicyDocumentException < ServiceError
566
+
567
+ # @param [Seahorse::Client::RequestContext] context
568
+ # @param [String] message
569
+ # @param [Aws::KMS::Types::MalformedPolicyDocumentException] data
570
+ def initialize(context, message, data = Aws::EmptyStructure.new)
571
+ super(context, message, data)
572
+ end
573
+
574
+ # @return [String]
575
+ def message
576
+ @message || @data[:message]
577
+ end
578
+ end
579
+
580
+ class NotFoundException < ServiceError
581
+
582
+ # @param [Seahorse::Client::RequestContext] context
583
+ # @param [String] message
584
+ # @param [Aws::KMS::Types::NotFoundException] data
585
+ def initialize(context, message, data = Aws::EmptyStructure.new)
586
+ super(context, message, data)
587
+ end
588
+
589
+ # @return [String]
590
+ def message
591
+ @message || @data[:message]
592
+ end
593
+ end
594
+
595
+ class TagException < ServiceError
596
+
597
+ # @param [Seahorse::Client::RequestContext] context
598
+ # @param [String] message
599
+ # @param [Aws::KMS::Types::TagException] data
600
+ def initialize(context, message, data = Aws::EmptyStructure.new)
601
+ super(context, message, data)
602
+ end
603
+
604
+ # @return [String]
605
+ def message
606
+ @message || @data[:message]
607
+ end
608
+ end
609
+
610
+ class UnsupportedOperationException < ServiceError
611
+
612
+ # @param [Seahorse::Client::RequestContext] context
613
+ # @param [String] message
614
+ # @param [Aws::KMS::Types::UnsupportedOperationException] data
615
+ def initialize(context, message, data = Aws::EmptyStructure.new)
616
+ super(context, message, data)
617
+ end
618
+
619
+ # @return [String]
620
+ def message
621
+ @message || @data[:message]
622
+ end
623
+ end
624
+
625
+ class XksKeyAlreadyInUseException < ServiceError
626
+
627
+ # @param [Seahorse::Client::RequestContext] context
628
+ # @param [String] message
629
+ # @param [Aws::KMS::Types::XksKeyAlreadyInUseException] data
630
+ def initialize(context, message, data = Aws::EmptyStructure.new)
631
+ super(context, message, data)
632
+ end
633
+
634
+ # @return [String]
635
+ def message
636
+ @message || @data[:message]
637
+ end
638
+ end
639
+
640
+ class XksKeyInvalidConfigurationException < ServiceError
641
+
642
+ # @param [Seahorse::Client::RequestContext] context
643
+ # @param [String] message
644
+ # @param [Aws::KMS::Types::XksKeyInvalidConfigurationException] data
645
+ def initialize(context, message, data = Aws::EmptyStructure.new)
646
+ super(context, message, data)
647
+ end
648
+
649
+ # @return [String]
650
+ def message
651
+ @message || @data[:message]
652
+ end
653
+ end
654
+
655
+ class XksKeyNotFoundException < ServiceError
656
+
657
+ # @param [Seahorse::Client::RequestContext] context
658
+ # @param [String] message
659
+ # @param [Aws::KMS::Types::XksKeyNotFoundException] data
660
+ def initialize(context, message, data = Aws::EmptyStructure.new)
661
+ super(context, message, data)
662
+ end
663
+
664
+ # @return [String]
665
+ def message
666
+ @message || @data[:message]
667
+ end
668
+ end
669
+
670
+ class XksProxyIncorrectAuthenticationCredentialException < ServiceError
671
+
672
+ # @param [Seahorse::Client::RequestContext] context
673
+ # @param [String] message
674
+ # @param [Aws::KMS::Types::XksProxyIncorrectAuthenticationCredentialException] data
675
+ def initialize(context, message, data = Aws::EmptyStructure.new)
676
+ super(context, message, data)
677
+ end
678
+
679
+ # @return [String]
680
+ def message
681
+ @message || @data[:message]
682
+ end
683
+ end
684
+
685
+ class XksProxyInvalidConfigurationException < ServiceError
686
+
687
+ # @param [Seahorse::Client::RequestContext] context
688
+ # @param [String] message
689
+ # @param [Aws::KMS::Types::XksProxyInvalidConfigurationException] data
690
+ def initialize(context, message, data = Aws::EmptyStructure.new)
691
+ super(context, message, data)
692
+ end
693
+
694
+ # @return [String]
695
+ def message
696
+ @message || @data[:message]
697
+ end
698
+ end
699
+
700
+ class XksProxyInvalidResponseException < ServiceError
701
+
702
+ # @param [Seahorse::Client::RequestContext] context
703
+ # @param [String] message
704
+ # @param [Aws::KMS::Types::XksProxyInvalidResponseException] data
705
+ def initialize(context, message, data = Aws::EmptyStructure.new)
706
+ super(context, message, data)
707
+ end
708
+
709
+ # @return [String]
710
+ def message
711
+ @message || @data[:message]
712
+ end
713
+ end
714
+
715
+ class XksProxyUriEndpointInUseException < ServiceError
716
+
717
+ # @param [Seahorse::Client::RequestContext] context
718
+ # @param [String] message
719
+ # @param [Aws::KMS::Types::XksProxyUriEndpointInUseException] data
720
+ def initialize(context, message, data = Aws::EmptyStructure.new)
721
+ super(context, message, data)
722
+ end
723
+
724
+ # @return [String]
725
+ def message
726
+ @message || @data[:message]
727
+ end
728
+ end
729
+
730
+ class XksProxyUriInUseException < ServiceError
731
+
732
+ # @param [Seahorse::Client::RequestContext] context
733
+ # @param [String] message
734
+ # @param [Aws::KMS::Types::XksProxyUriInUseException] data
735
+ def initialize(context, message, data = Aws::EmptyStructure.new)
736
+ super(context, message, data)
737
+ end
738
+
739
+ # @return [String]
740
+ def message
741
+ @message || @data[:message]
742
+ end
743
+ end
744
+
745
+ class XksProxyUriUnreachableException < ServiceError
746
+
747
+ # @param [Seahorse::Client::RequestContext] context
748
+ # @param [String] message
749
+ # @param [Aws::KMS::Types::XksProxyUriUnreachableException] data
750
+ def initialize(context, message, data = Aws::EmptyStructure.new)
751
+ super(context, message, data)
752
+ end
753
+
754
+ # @return [String]
755
+ def message
756
+ @message || @data[:message]
757
+ end
758
+ end
759
+
760
+ class XksProxyVpcEndpointServiceInUseException < ServiceError
761
+
762
+ # @param [Seahorse::Client::RequestContext] context
763
+ # @param [String] message
764
+ # @param [Aws::KMS::Types::XksProxyVpcEndpointServiceInUseException] data
765
+ def initialize(context, message, data = Aws::EmptyStructure.new)
766
+ super(context, message, data)
767
+ end
768
+
769
+ # @return [String]
770
+ def message
771
+ @message || @data[:message]
772
+ end
773
+ end
774
+
775
+ class XksProxyVpcEndpointServiceInvalidConfigurationException < ServiceError
776
+
777
+ # @param [Seahorse::Client::RequestContext] context
778
+ # @param [String] message
779
+ # @param [Aws::KMS::Types::XksProxyVpcEndpointServiceInvalidConfigurationException] data
780
+ def initialize(context, message, data = Aws::EmptyStructure.new)
781
+ super(context, message, data)
782
+ end
783
+
784
+ # @return [String]
785
+ def message
786
+ @message || @data[:message]
787
+ end
788
+ end
789
+
790
+ class XksProxyVpcEndpointServiceNotFoundException < ServiceError
791
+
792
+ # @param [Seahorse::Client::RequestContext] context
793
+ # @param [String] message
794
+ # @param [Aws::KMS::Types::XksProxyVpcEndpointServiceNotFoundException] data
795
+ def initialize(context, message, data = Aws::EmptyStructure.new)
796
+ super(context, message, data)
797
+ end
798
+
799
+ # @return [String]
800
+ def message
801
+ @message || @data[:message]
802
+ end
803
+ end
804
+
13
805
  end
14
806
  end