aws-sdk-support 1.41.0 → 1.43.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da7424af91a4cbab74662492f840c83414d4cd9ef3957fbcaea242d31da046d9
4
- data.tar.gz: c2e59f1714707f068bcb844036b6d87107077d82289a702eaeec5b01127fd9b9
3
+ metadata.gz: 5bd39cdbc3d165ae5b9cf1351b17b4e1983e7f9adb16e6c559445c18a8c56d93
4
+ data.tar.gz: f5126c02af6a8cee80e549b57990b0e724fdd3a4b193058e851cf2d8fb0541f2
5
5
  SHA512:
6
- metadata.gz: 9ce0e779096bdf1480701a9c93d919c3ae0c22f857fb57b8916bdec9f0ade143c65b470f2d5e010de9193d13eeb8aa0d5ac9239a8f7cf24b8086a8d6de96791f
7
- data.tar.gz: f263cb8df2fd181b1dd4941e17b37ea90187b9ab42ddc7724e264935c4d3a6481ba5759d194a6662a48e39eaf83bf359314f968247d0885ea0971aba926971c2
6
+ metadata.gz: 676a1c41fdca1600ddb1454cc59b05e1ffab7a175d715c589d2d6fd80d19625b2beae87d7dbad8c124d8024febef5dbf103d6a5c9e2b95ca45b8e6f9e13bcfde
7
+ data.tar.gz: 2129baae37fd0c680614091ef2e18be3d9286f9502decbdb1946d9948189e4df1cf84c13a821004b2acd8e408ef19b4edd98ba144909084f924cde2f481bf4cb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2022-12-21)
5
+ ------------------
6
+
7
+ * Feature - Documentation updates for the AWS Support API
8
+
9
+ 1.42.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.41.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.41.0
1
+ 1.43.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:support)
@@ -79,8 +79,9 @@ module Aws::Support
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::Support::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::Support
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::Support
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::Support::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Support::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -372,7 +389,7 @@ module Aws::Support
372
389
  # plan to use the Amazon Web Services Support API.
373
390
  #
374
391
  # * If you call the Amazon Web Services Support API from an account that
375
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
392
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
376
393
  # plan, the `SubscriptionRequiredException` error message appears. For
377
394
  # information about changing your support plan, see [Amazon Web
378
395
  # Services Support][1].
@@ -440,7 +457,7 @@ module Aws::Support
440
457
  # plan to use the Amazon Web Services Support API.
441
458
  #
442
459
  # * If you call the Amazon Web Services Support API from an account that
443
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
460
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
444
461
  # plan, the `SubscriptionRequiredException` error message appears. For
445
462
  # information about changing your support plan, see [Amazon Web
446
463
  # Services Support][1].
@@ -521,7 +538,7 @@ module Aws::Support
521
538
  # plan to use the Amazon Web Services Support API.
522
539
  #
523
540
  # * If you call the Amazon Web Services Support API from an account that
524
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
541
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
525
542
  # plan, the `SubscriptionRequiredException` error message appears. For
526
543
  # information about changing your support plan, see [Amazon Web
527
544
  # Services Support][4].
@@ -593,9 +610,9 @@ module Aws::Support
593
610
  #
594
611
  # @option params [String] :language
595
612
  # The language in which Amazon Web Services Support handles the case.
596
- # You must specify the ISO 639-1 code for the `language` parameter if
597
- # you want support in that language. Currently, English ("en") and
598
- # Japanese ("ja") are supported.
613
+ # Amazon Web Services Support currently supports English ("en") and
614
+ # Japanese ("ja"). You must specify the ISO 639-1 code for the
615
+ # `language` parameter if you want support in that language.
599
616
  #
600
617
  # @option params [String] :issue_type
601
618
  # The type of issue for the case. You can specify `customer-service` or
@@ -648,7 +665,7 @@ module Aws::Support
648
665
  # plan to use the Amazon Web Services Support API.
649
666
  #
650
667
  # * If you call the Amazon Web Services Support API from an account that
651
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
668
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
652
669
  # plan, the `SubscriptionRequiredException` error message appears. For
653
670
  # information about changing your support plan, see [Amazon Web
654
671
  # Services Support][1].
@@ -707,7 +724,7 @@ module Aws::Support
707
724
  # plan to use the Amazon Web Services Support API.
708
725
  #
709
726
  # * If you call the Amazon Web Services Support API from an account that
710
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
727
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
711
728
  # plan, the `SubscriptionRequiredException` error message appears. For
712
729
  # information about changing your support plan, see [Amazon Web
713
730
  # Services Support][2].
@@ -748,10 +765,10 @@ module Aws::Support
748
765
  # The maximum number of results to return before paginating.
749
766
  #
750
767
  # @option params [String] :language
751
- # The ISO 639-1 code for the language in which Amazon Web Services
752
- # provides support. Amazon Web Services Support currently supports
753
- # English ("en") and Japanese ("ja"). Language parameters must be
754
- # passed explicitly for operations that take them.
768
+ # The language in which Amazon Web Services Support handles the case.
769
+ # Amazon Web Services Support currently supports English ("en") and
770
+ # Japanese ("ja"). You must specify the ISO 639-1 code for the
771
+ # `language` parameter if you want support in that language.
755
772
  #
756
773
  # @option params [Boolean] :include_communications
757
774
  # Specifies whether to include communications in the `DescribeCases`
@@ -831,7 +848,7 @@ module Aws::Support
831
848
  # plan to use the Amazon Web Services Support API.
832
849
  #
833
850
  # * If you call the Amazon Web Services Support API from an account that
834
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
851
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
835
852
  # plan, the `SubscriptionRequiredException` error message appears. For
836
853
  # information about changing your support plan, see [Amazon Web
837
854
  # Services Support][1].
@@ -918,7 +935,7 @@ module Aws::Support
918
935
  # plan to use the Amazon Web Services Support API.
919
936
  #
920
937
  # * If you call the Amazon Web Services Support API from an account that
921
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
938
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
922
939
  # plan, the `SubscriptionRequiredException` error message appears. For
923
940
  # information about changing your support plan, see [Amazon Web
924
941
  # Services Support][2].
@@ -935,10 +952,10 @@ module Aws::Support
935
952
  # Services services.
936
953
  #
937
954
  # @option params [String] :language
938
- # The ISO 639-1 code for the language in which Amazon Web Services
939
- # provides support. Amazon Web Services Support currently supports
940
- # English ("en") and Japanese ("ja"). Language parameters must be
941
- # passed explicitly for operations that take them.
955
+ # The language in which Amazon Web Services Support handles the case.
956
+ # Amazon Web Services Support currently supports English ("en") and
957
+ # Japanese ("ja"). You must specify the ISO 639-1 code for the
958
+ # `language` parameter if you want support in that language.
942
959
  #
943
960
  # @return [Types::DescribeServicesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
944
961
  #
@@ -977,7 +994,7 @@ module Aws::Support
977
994
  # plan to use the Amazon Web Services Support API.
978
995
  #
979
996
  # * If you call the Amazon Web Services Support API from an account that
980
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
997
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
981
998
  # plan, the `SubscriptionRequiredException` error message appears. For
982
999
  # information about changing your support plan, see [Amazon Web
983
1000
  # Services Support][1].
@@ -989,10 +1006,10 @@ module Aws::Support
989
1006
  # [1]: http://aws.amazon.com/premiumsupport/
990
1007
  #
991
1008
  # @option params [String] :language
992
- # The ISO 639-1 code for the language in which Amazon Web Services
993
- # provides support. Amazon Web Services Support currently supports
994
- # English ("en") and Japanese ("ja"). Language parameters must be
995
- # passed explicitly for operations that take them.
1009
+ # The language in which Amazon Web Services Support handles the case.
1010
+ # Amazon Web Services Support currently supports English ("en") and
1011
+ # Japanese ("ja"). You must specify the ISO 639-1 code for the
1012
+ # `language` parameter if you want support in that language.
996
1013
  #
997
1014
  # @return [Types::DescribeSeverityLevelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
998
1015
  #
@@ -1033,16 +1050,24 @@ module Aws::Support
1033
1050
  # plan to use the Amazon Web Services Support API.
1034
1051
  #
1035
1052
  # * If you call the Amazon Web Services Support API from an account that
1036
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
1053
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
1037
1054
  # plan, the `SubscriptionRequiredException` error message appears. For
1038
1055
  # information about changing your support plan, see [Amazon Web
1039
1056
  # Services Support][1].
1040
1057
  #
1041
1058
  # </note>
1042
1059
  #
1060
+ # To call the Trusted Advisor operations in the Amazon Web Services
1061
+ # Support API, you must use the US East (N. Virginia) endpoint.
1062
+ # Currently, the US West (Oregon) and Europe (Ireland) endpoints don't
1063
+ # support the Trusted Advisor operations. For more information, see
1064
+ # [About the Amazon Web Services Support API][2] in the *Amazon Web
1065
+ # Services Support User Guide*.
1066
+ #
1043
1067
  #
1044
1068
  #
1045
1069
  # [1]: http://aws.amazon.com/premiumsupport/
1070
+ # [2]: https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint
1046
1071
  #
1047
1072
  # @option params [required, Array<String>] :check_ids
1048
1073
  # The IDs of the Trusted Advisor checks to get the status.
@@ -1104,25 +1129,56 @@ module Aws::Support
1104
1129
  # plan to use the Amazon Web Services Support API.
1105
1130
  #
1106
1131
  # * If you call the Amazon Web Services Support API from an account that
1107
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
1132
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
1108
1133
  # plan, the `SubscriptionRequiredException` error message appears. For
1109
1134
  # information about changing your support plan, see [Amazon Web
1110
1135
  # Services Support][1].
1111
1136
  #
1112
1137
  # </note>
1113
1138
  #
1139
+ # To call the Trusted Advisor operations in the Amazon Web Services
1140
+ # Support API, you must use the US East (N. Virginia) endpoint.
1141
+ # Currently, the US West (Oregon) and Europe (Ireland) endpoints don't
1142
+ # support the Trusted Advisor operations. For more information, see
1143
+ # [About the Amazon Web Services Support API][2] in the *Amazon Web
1144
+ # Services Support User Guide*.
1145
+ #
1114
1146
  #
1115
1147
  #
1116
1148
  # [1]: http://aws.amazon.com/premiumsupport/
1149
+ # [2]: https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint
1117
1150
  #
1118
1151
  # @option params [required, String] :check_id
1119
1152
  # The unique identifier for the Trusted Advisor check.
1120
1153
  #
1121
1154
  # @option params [String] :language
1122
- # The ISO 639-1 code for the language in which Amazon Web Services
1123
- # provides support. Amazon Web Services Support currently supports
1124
- # English ("en") and Japanese ("ja"). Language parameters must be
1125
- # passed explicitly for operations that take them.
1155
+ # The ISO 639-1 code for the language that you want your check results
1156
+ # to appear in.
1157
+ #
1158
+ # The Amazon Web Services Support API currently supports the following
1159
+ # languages for Trusted Advisor:
1160
+ #
1161
+ # * Chinese, Simplified - `zh`
1162
+ #
1163
+ # * Chinese, Traditional - `zh_TW`
1164
+ #
1165
+ # * English - `en`
1166
+ #
1167
+ # * French - `fr`
1168
+ #
1169
+ # * German - `de`
1170
+ #
1171
+ # * Indonesian - `id`
1172
+ #
1173
+ # * Italian - `it`
1174
+ #
1175
+ # * Japanese - `ja`
1176
+ #
1177
+ # * Korean - `ko`
1178
+ #
1179
+ # * Portuguese, Brazilian - `pt_BR`
1180
+ #
1181
+ # * Spanish - `es`
1126
1182
  #
1127
1183
  # @return [Types::DescribeTrustedAdvisorCheckResultResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1128
1184
  #
@@ -1173,16 +1229,24 @@ module Aws::Support
1173
1229
  # plan to use the Amazon Web Services Support API.
1174
1230
  #
1175
1231
  # * If you call the Amazon Web Services Support API from an account that
1176
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
1232
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
1177
1233
  # plan, the `SubscriptionRequiredException` error message appears. For
1178
1234
  # information about changing your support plan, see [Amazon Web
1179
1235
  # Services Support][1].
1180
1236
  #
1181
1237
  # </note>
1182
1238
  #
1239
+ # To call the Trusted Advisor operations in the Amazon Web Services
1240
+ # Support API, you must use the US East (N. Virginia) endpoint.
1241
+ # Currently, the US West (Oregon) and Europe (Ireland) endpoints don't
1242
+ # support the Trusted Advisor operations. For more information, see
1243
+ # [About the Amazon Web Services Support API][2] in the *Amazon Web
1244
+ # Services Support User Guide*.
1245
+ #
1183
1246
  #
1184
1247
  #
1185
1248
  # [1]: http://aws.amazon.com/premiumsupport/
1249
+ # [2]: https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint
1186
1250
  #
1187
1251
  # @option params [required, Array<String>] :check_ids
1188
1252
  # The IDs of the Trusted Advisor checks.
@@ -1222,16 +1286,16 @@ module Aws::Support
1222
1286
 
1223
1287
  # Returns information about all available Trusted Advisor checks,
1224
1288
  # including the name, ID, category, description, and metadata. You must
1225
- # specify a language code. The Amazon Web Services Support API currently
1226
- # supports English ("en") and Japanese ("ja"). The response contains
1227
- # a TrustedAdvisorCheckDescription object for each check. You must set
1228
- # the Amazon Web Services Region to us-east-1.
1289
+ # specify a language code.
1290
+ #
1291
+ # The response contains a TrustedAdvisorCheckDescription object for each
1292
+ # check. You must set the Amazon Web Services Region to us-east-1.
1229
1293
  #
1230
1294
  # <note markdown="1"> * You must have a Business, Enterprise On-Ramp, or Enterprise Support
1231
1295
  # plan to use the Amazon Web Services Support API.
1232
1296
  #
1233
1297
  # * If you call the Amazon Web Services Support API from an account that
1234
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
1298
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
1235
1299
  # plan, the `SubscriptionRequiredException` error message appears. For
1236
1300
  # information about changing your support plan, see [Amazon Web
1237
1301
  # Services Support][1].
@@ -1242,15 +1306,46 @@ module Aws::Support
1242
1306
  #
1243
1307
  # </note>
1244
1308
  #
1309
+ # To call the Trusted Advisor operations in the Amazon Web Services
1310
+ # Support API, you must use the US East (N. Virginia) endpoint.
1311
+ # Currently, the US West (Oregon) and Europe (Ireland) endpoints don't
1312
+ # support the Trusted Advisor operations. For more information, see
1313
+ # [About the Amazon Web Services Support API][2] in the *Amazon Web
1314
+ # Services Support User Guide*.
1315
+ #
1245
1316
  #
1246
1317
  #
1247
1318
  # [1]: http://aws.amazon.com/premiumsupport/
1319
+ # [2]: https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint
1248
1320
  #
1249
1321
  # @option params [required, String] :language
1250
- # The ISO 639-1 code for the language in which Amazon Web Services
1251
- # provides support. Amazon Web Services Support currently supports
1252
- # English ("en") and Japanese ("ja"). Language parameters must be
1253
- # passed explicitly for operations that take them.
1322
+ # The ISO 639-1 code for the language that you want your checks to
1323
+ # appear in.
1324
+ #
1325
+ # The Amazon Web Services Support API currently supports the following
1326
+ # languages for Trusted Advisor:
1327
+ #
1328
+ # * Chinese, Simplified - `zh`
1329
+ #
1330
+ # * Chinese, Traditional - `zh_TW`
1331
+ #
1332
+ # * English - `en`
1333
+ #
1334
+ # * French - `fr`
1335
+ #
1336
+ # * German - `de`
1337
+ #
1338
+ # * Indonesian - `id`
1339
+ #
1340
+ # * Italian - `it`
1341
+ #
1342
+ # * Japanese - `ja`
1343
+ #
1344
+ # * Korean - `ko`
1345
+ #
1346
+ # * Portuguese, Brazilian - `pt_BR`
1347
+ #
1348
+ # * Spanish - `es`
1254
1349
  #
1255
1350
  # @return [Types::DescribeTrustedAdvisorChecksResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1256
1351
  #
@@ -1285,28 +1380,34 @@ module Aws::Support
1285
1380
  # ID. You can get the check IDs by calling the
1286
1381
  # DescribeTrustedAdvisorChecks operation.
1287
1382
  #
1288
- # <note markdown="1"> Some checks are refreshed automatically. If you call the
1383
+ # Some checks are refreshed automatically. If you call the
1289
1384
  # `RefreshTrustedAdvisorCheck` operation to refresh them, you might see
1290
1385
  # the `InvalidParameterValue` error.
1291
1386
  #
1292
- # </note>
1293
- #
1294
1387
  # The response contains a TrustedAdvisorCheckRefreshStatus object.
1295
1388
  #
1296
1389
  # <note markdown="1"> * You must have a Business, Enterprise On-Ramp, or Enterprise Support
1297
1390
  # plan to use the Amazon Web Services Support API.
1298
1391
  #
1299
1392
  # * If you call the Amazon Web Services Support API from an account that
1300
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
1393
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
1301
1394
  # plan, the `SubscriptionRequiredException` error message appears. For
1302
1395
  # information about changing your support plan, see [Amazon Web
1303
1396
  # Services Support][1].
1304
1397
  #
1305
1398
  # </note>
1306
1399
  #
1400
+ # To call the Trusted Advisor operations in the Amazon Web Services
1401
+ # Support API, you must use the US East (N. Virginia) endpoint.
1402
+ # Currently, the US West (Oregon) and Europe (Ireland) endpoints don't
1403
+ # support the Trusted Advisor operations. For more information, see
1404
+ # [About the Amazon Web Services Support API][2] in the *Amazon Web
1405
+ # Services Support User Guide*.
1406
+ #
1307
1407
  #
1308
1408
  #
1309
1409
  # [1]: http://aws.amazon.com/premiumsupport/
1410
+ # [2]: https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint
1310
1411
  #
1311
1412
  # @option params [required, String] :check_id
1312
1413
  # The unique identifier for the Trusted Advisor check to refresh.
@@ -1348,7 +1449,7 @@ module Aws::Support
1348
1449
  # plan to use the Amazon Web Services Support API.
1349
1450
  #
1350
1451
  # * If you call the Amazon Web Services Support API from an account that
1351
- # does not have a Business, Enterprise On-Ramp, or Enterprise Support
1452
+ # doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
1352
1453
  # plan, the `SubscriptionRequiredException` error message appears. For
1353
1454
  # information about changing your support plan, see [Amazon Web
1354
1455
  # Services Support][1].
@@ -1402,7 +1503,7 @@ module Aws::Support
1402
1503
  params: params,
1403
1504
  config: config)
1404
1505
  context[:gem_name] = 'aws-sdk-support'
1405
- context[:gem_version] = '1.41.0'
1506
+ context[:gem_version] = '1.43.0'
1406
1507
  Seahorse::Client::Request.new(handlers, context)
1407
1508
  end
1408
1509
 
@@ -0,0 +1,69 @@
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
+ module Aws::Support
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,146 @@
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
+ module Aws::Support
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
+ YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
+ ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
+ aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
+ ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
+ IHRoZSB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