aws-sdk-savingsplans 1.27.0 → 1.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-savingsplans/client.rb +1 -1
- data/lib/aws-sdk-savingsplans/endpoint_provider.rb +59 -152
- data/lib/aws-sdk-savingsplans/types.rb +0 -155
- data/lib/aws-sdk-savingsplans.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b223ef7bc8871b4c3782f7d9bf65a364419778792f58ffa2ec7e954687060b9e
|
4
|
+
data.tar.gz: 315252d24d4702613a4288e2b3e5829bce55676512fcf0ae6fe2da11cc7031ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b05c7dd7c6c23a327818cdf1e1c44e82d26345cbbed10ec38f1d120e341f24deba91b42711527f9dbdb6b22b4e2e7ce47f939fc1220031b3a10a44032cdd249
|
7
|
+
data.tar.gz: ff9d77ce363bc1bf03f69b12c15809118aaa19dc554a1e9d175ff184ded65e7330600dab438be7b5aba4f3b53d1997e43170e2e2f5b1b54da6b558a82f026b5d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.28.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
4
11
|
1.27.0 (2022-10-25)
|
5
12
|
------------------
|
6
13
|
|
@@ -145,4 +152,4 @@ Unreleased Changes
|
|
145
152
|
1.0.0 (2019-11-06)
|
146
153
|
------------------
|
147
154
|
|
148
|
-
* Feature - Initial release of `aws-sdk-savingsplans`.
|
155
|
+
* Feature - Initial release of `aws-sdk-savingsplans`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.28.0
|
@@ -9,160 +9,67 @@
|
|
9
9
|
|
10
10
|
module Aws::SavingsPlans
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans-fips.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"savingsplans", "signingRegion"=>"us-east-1"}]})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
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"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans-fips.#{region}.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"savingsplans", "signingRegion"=>"us-east-1"}]})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"savingsplans", "signingRegion"=>"us-east-1"}]})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"savingsplans", "signingRegion"=>"us-east-1"}]})
|
47
|
+
end
|
48
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
49
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
51
|
+
end
|
52
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
53
|
+
end
|
54
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
55
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
57
|
+
end
|
58
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
59
|
+
end
|
60
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
61
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
62
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
63
|
+
end
|
64
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
65
|
+
end
|
66
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
67
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"savingsplans", "signingRegion"=>"us-east-1"}]})
|
68
|
+
end
|
69
|
+
return Aws::Endpoints::Endpoint.new(url: "https://savingsplans.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
70
|
end
|
22
|
-
|
23
|
-
end
|
71
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
72
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
73
|
end
|
28
|
-
|
29
|
-
# @api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b2VzIG5vdCBzdXBw
|
154
|
-
b3J0IER1YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25z
|
155
|
-
IjpbXSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W3si
|
156
|
-
Zm4iOiJzdHJpbmdFcXVhbHMiLCJhcmd2IjpbeyJyZWYiOiJSZWdpb24ifSwi
|
157
|
-
YXdzLWdsb2JhbCJdfV0sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vc2F2
|
158
|
-
aW5nc3BsYW5zLmFtYXpvbmF3cy5jb20iLCJwcm9wZXJ0aWVzIjp7ImF1dGhT
|
159
|
-
Y2hlbWVzIjpbeyJuYW1lIjoic2lndjQiLCJzaWduaW5nTmFtZSI6InNhdmlu
|
160
|
-
Z3NwbGFucyIsInNpZ25pbmdSZWdpb24iOiJ1cy1lYXN0LTEifV19LCJoZWFk
|
161
|
-
ZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9LHsiY29uZGl0aW9ucyI6W10s
|
162
|
-
ImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vc2F2aW5nc3BsYW5zLntSZWdp
|
163
|
-
b259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMi
|
164
|
-
Ont9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfV19
|
165
|
-
|
166
|
-
JSON
|
167
74
|
end
|
168
75
|
end
|
@@ -10,20 +10,6 @@
|
|
10
10
|
module Aws::SavingsPlans
|
11
11
|
module Types
|
12
12
|
|
13
|
-
# @note When making an API call, you may pass CreateSavingsPlanRequest
|
14
|
-
# data as a hash:
|
15
|
-
#
|
16
|
-
# {
|
17
|
-
# savings_plan_offering_id: "SavingsPlanOfferingId", # required
|
18
|
-
# commitment: "Amount", # required
|
19
|
-
# upfront_payment_amount: "Amount",
|
20
|
-
# purchase_time: Time.now,
|
21
|
-
# client_token: "ClientToken",
|
22
|
-
# tags: {
|
23
|
-
# "TagKey" => "TagValue",
|
24
|
-
# },
|
25
|
-
# }
|
26
|
-
#
|
27
13
|
# @!attribute [rw] savings_plan_offering_id
|
28
14
|
# The ID of the offering.
|
29
15
|
# @return [String]
|
@@ -82,13 +68,6 @@ module Aws::SavingsPlans
|
|
82
68
|
include Aws::Structure
|
83
69
|
end
|
84
70
|
|
85
|
-
# @note When making an API call, you may pass DeleteQueuedSavingsPlanRequest
|
86
|
-
# data as a hash:
|
87
|
-
#
|
88
|
-
# {
|
89
|
-
# savings_plan_id: "SavingsPlanId", # required
|
90
|
-
# }
|
91
|
-
#
|
92
71
|
# @!attribute [rw] savings_plan_id
|
93
72
|
# The ID of the Savings Plan.
|
94
73
|
# @return [String]
|
@@ -105,21 +84,6 @@ module Aws::SavingsPlans
|
|
105
84
|
#
|
106
85
|
class DeleteQueuedSavingsPlanResponse < Aws::EmptyStructure; end
|
107
86
|
|
108
|
-
# @note When making an API call, you may pass DescribeSavingsPlanRatesRequest
|
109
|
-
# data as a hash:
|
110
|
-
#
|
111
|
-
# {
|
112
|
-
# savings_plan_id: "SavingsPlanId", # required
|
113
|
-
# filters: [
|
114
|
-
# {
|
115
|
-
# name: "region", # accepts region, instanceType, productDescription, tenancy, productType, serviceCode, usageType, operation
|
116
|
-
# values: ["String"],
|
117
|
-
# },
|
118
|
-
# ],
|
119
|
-
# next_token: "PaginationToken",
|
120
|
-
# max_results: 1,
|
121
|
-
# }
|
122
|
-
#
|
123
87
|
# @!attribute [rw] savings_plan_id
|
124
88
|
# The ID of the Savings Plan.
|
125
89
|
# @return [String]
|
@@ -172,27 +136,6 @@ module Aws::SavingsPlans
|
|
172
136
|
include Aws::Structure
|
173
137
|
end
|
174
138
|
|
175
|
-
# @note When making an API call, you may pass DescribeSavingsPlansOfferingRatesRequest
|
176
|
-
# data as a hash:
|
177
|
-
#
|
178
|
-
# {
|
179
|
-
# savings_plan_offering_ids: ["UUID"],
|
180
|
-
# savings_plan_payment_options: ["All Upfront"], # accepts All Upfront, Partial Upfront, No Upfront
|
181
|
-
# savings_plan_types: ["Compute"], # accepts Compute, EC2Instance, SageMaker
|
182
|
-
# products: ["EC2"], # accepts EC2, Fargate, Lambda, SageMaker
|
183
|
-
# service_codes: ["AmazonEC2"], # accepts AmazonEC2, AmazonECS, AmazonEKS, AWSLambda, AmazonSageMaker
|
184
|
-
# usage_types: ["SavingsPlanRateUsageType"],
|
185
|
-
# operations: ["SavingsPlanRateOperation"],
|
186
|
-
# filters: [
|
187
|
-
# {
|
188
|
-
# name: "region", # accepts region, instanceFamily, instanceType, productDescription, tenancy, productId
|
189
|
-
# values: ["JsonSafeFilterValueString"],
|
190
|
-
# },
|
191
|
-
# ],
|
192
|
-
# next_token: "PaginationToken",
|
193
|
-
# max_results: 1,
|
194
|
-
# }
|
195
|
-
#
|
196
139
|
# @!attribute [rw] savings_plan_offering_ids
|
197
140
|
# The IDs of the offerings.
|
198
141
|
# @return [Array<String>]
|
@@ -270,30 +213,6 @@ module Aws::SavingsPlans
|
|
270
213
|
include Aws::Structure
|
271
214
|
end
|
272
215
|
|
273
|
-
# @note When making an API call, you may pass DescribeSavingsPlansOfferingsRequest
|
274
|
-
# data as a hash:
|
275
|
-
#
|
276
|
-
# {
|
277
|
-
# offering_ids: ["UUID"],
|
278
|
-
# payment_options: ["All Upfront"], # accepts All Upfront, Partial Upfront, No Upfront
|
279
|
-
# product_type: "EC2", # accepts EC2, Fargate, Lambda, SageMaker
|
280
|
-
# plan_types: ["Compute"], # accepts Compute, EC2Instance, SageMaker
|
281
|
-
# durations: [1],
|
282
|
-
# currencies: ["CNY"], # accepts CNY, USD
|
283
|
-
# descriptions: ["SavingsPlanDescription"],
|
284
|
-
# service_codes: ["SavingsPlanServiceCode"],
|
285
|
-
# usage_types: ["SavingsPlanUsageType"],
|
286
|
-
# operations: ["SavingsPlanOperation"],
|
287
|
-
# filters: [
|
288
|
-
# {
|
289
|
-
# name: "region", # accepts region, instanceFamily
|
290
|
-
# values: ["JsonSafeFilterValueString"],
|
291
|
-
# },
|
292
|
-
# ],
|
293
|
-
# next_token: "PaginationToken",
|
294
|
-
# max_results: 1,
|
295
|
-
# }
|
296
|
-
#
|
297
216
|
# @!attribute [rw] offering_ids
|
298
217
|
# The IDs of the offerings.
|
299
218
|
# @return [Array<String>]
|
@@ -386,23 +305,6 @@ module Aws::SavingsPlans
|
|
386
305
|
include Aws::Structure
|
387
306
|
end
|
388
307
|
|
389
|
-
# @note When making an API call, you may pass DescribeSavingsPlansRequest
|
390
|
-
# data as a hash:
|
391
|
-
#
|
392
|
-
# {
|
393
|
-
# savings_plan_arns: ["SavingsPlanArn"],
|
394
|
-
# savings_plan_ids: ["SavingsPlanId"],
|
395
|
-
# next_token: "PaginationToken",
|
396
|
-
# max_results: 1,
|
397
|
-
# states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired, queued, queued-deleted
|
398
|
-
# filters: [
|
399
|
-
# {
|
400
|
-
# name: "region", # accepts region, ec2-instance-family, commitment, upfront, term, savings-plan-type, payment-option, start, end
|
401
|
-
# values: ["String"],
|
402
|
-
# },
|
403
|
-
# ],
|
404
|
-
# }
|
405
|
-
#
|
406
308
|
# @!attribute [rw] savings_plan_arns
|
407
309
|
# The Amazon Resource Names (ARN) of the Savings Plans.
|
408
310
|
# @return [Array<String>]
|
@@ -473,13 +375,6 @@ module Aws::SavingsPlans
|
|
473
375
|
include Aws::Structure
|
474
376
|
end
|
475
377
|
|
476
|
-
# @note When making an API call, you may pass ListTagsForResourceRequest
|
477
|
-
# data as a hash:
|
478
|
-
#
|
479
|
-
# {
|
480
|
-
# resource_arn: "SavingsPlanArn", # required
|
481
|
-
# }
|
482
|
-
#
|
483
378
|
# @!attribute [rw] resource_arn
|
484
379
|
# The Amazon Resource Name (ARN) of the resource.
|
485
380
|
# @return [String]
|
@@ -657,14 +552,6 @@ module Aws::SavingsPlans
|
|
657
552
|
|
658
553
|
# Information about a filter.
|
659
554
|
#
|
660
|
-
# @note When making an API call, you may pass SavingsPlanFilter
|
661
|
-
# data as a hash:
|
662
|
-
#
|
663
|
-
# {
|
664
|
-
# name: "region", # accepts region, ec2-instance-family, commitment, upfront, term, savings-plan-type, payment-option, start, end
|
665
|
-
# values: ["String"],
|
666
|
-
# }
|
667
|
-
#
|
668
555
|
# @!attribute [rw] name
|
669
556
|
# The filter name.
|
670
557
|
# @return [String]
|
@@ -748,14 +635,6 @@ module Aws::SavingsPlans
|
|
748
635
|
|
749
636
|
# Information about a filter.
|
750
637
|
#
|
751
|
-
# @note When making an API call, you may pass SavingsPlanOfferingFilterElement
|
752
|
-
# data as a hash:
|
753
|
-
#
|
754
|
-
# {
|
755
|
-
# name: "region", # accepts region, instanceFamily
|
756
|
-
# values: ["JsonSafeFilterValueString"],
|
757
|
-
# }
|
758
|
-
#
|
759
638
|
# @!attribute [rw] name
|
760
639
|
# The filter name.
|
761
640
|
# @return [String]
|
@@ -843,14 +722,6 @@ module Aws::SavingsPlans
|
|
843
722
|
|
844
723
|
# Information about a filter.
|
845
724
|
#
|
846
|
-
# @note When making an API call, you may pass SavingsPlanOfferingRateFilterElement
|
847
|
-
# data as a hash:
|
848
|
-
#
|
849
|
-
# {
|
850
|
-
# name: "region", # accepts region, instanceFamily, instanceType, productDescription, tenancy, productId
|
851
|
-
# values: ["JsonSafeFilterValueString"],
|
852
|
-
# }
|
853
|
-
#
|
854
725
|
# @!attribute [rw] name
|
855
726
|
# The filter name.
|
856
727
|
# @return [String]
|
@@ -938,14 +809,6 @@ module Aws::SavingsPlans
|
|
938
809
|
|
939
810
|
# Information about a filter.
|
940
811
|
#
|
941
|
-
# @note When making an API call, you may pass SavingsPlanRateFilter
|
942
|
-
# data as a hash:
|
943
|
-
#
|
944
|
-
# {
|
945
|
-
# name: "region", # accepts region, instanceType, productDescription, tenancy, productType, serviceCode, usageType, operation
|
946
|
-
# values: ["String"],
|
947
|
-
# }
|
948
|
-
#
|
949
812
|
# @!attribute [rw] name
|
950
813
|
# The filter name.
|
951
814
|
# @return [String]
|
@@ -995,16 +858,6 @@ module Aws::SavingsPlans
|
|
995
858
|
include Aws::Structure
|
996
859
|
end
|
997
860
|
|
998
|
-
# @note When making an API call, you may pass TagResourceRequest
|
999
|
-
# data as a hash:
|
1000
|
-
#
|
1001
|
-
# {
|
1002
|
-
# resource_arn: "SavingsPlanArn", # required
|
1003
|
-
# tags: { # required
|
1004
|
-
# "TagKey" => "TagValue",
|
1005
|
-
# },
|
1006
|
-
# }
|
1007
|
-
#
|
1008
861
|
# @!attribute [rw] resource_arn
|
1009
862
|
# The Amazon Resource Name (ARN) of the resource.
|
1010
863
|
# @return [String]
|
@@ -1027,14 +880,6 @@ module Aws::SavingsPlans
|
|
1027
880
|
#
|
1028
881
|
class TagResourceResponse < Aws::EmptyStructure; end
|
1029
882
|
|
1030
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
1031
|
-
# data as a hash:
|
1032
|
-
#
|
1033
|
-
# {
|
1034
|
-
# resource_arn: "SavingsPlanArn", # required
|
1035
|
-
# tag_keys: ["TagKey"], # required
|
1036
|
-
# }
|
1037
|
-
#
|
1038
883
|
# @!attribute [rw] resource_arn
|
1039
884
|
# The Amazon Resource Name (ARN) of the resource.
|
1040
885
|
# @return [String]
|
data/lib/aws-sdk-savingsplans.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-savingsplans
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|