aws-sdk-billingconductor 1.4.0 → 1.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a79fb5c71fac49640897b60ca618d4faff54eeef7b2f31374c39b4c9c8a4117a
4
- data.tar.gz: f3bb59537b99dadd31af438c97260f8893a34a99ff7fc4827919396eb504e7bf
3
+ metadata.gz: 45506604ad1357858ff60356e51cc1c06a3b53fa989beca6b9abcb82620fb74b
4
+ data.tar.gz: d07f6d89fb7797e4dc9155f1ecd0d249fe0397ee810b8825d83677eec0597f70
5
5
  SHA512:
6
- metadata.gz: 1cd85702b50052edb03021dac53de04235a48e233096cdfcece75c20d973169fbdec5f87ba43e43435a7c085bee62ed6394ff8691c822dc871fa0e3a9be94074
7
- data.tar.gz: d2019459f16ca14994861f8f9ab82824acf462a0bf92eb6b350f27e9a95eaf84f864bc11fb0268cab8774dc3a7e262f78cde9ce29f594cdf82987748ac400d72
6
+ metadata.gz: dd6858fc1663592dfe62db09ac83f89d5245e0dbf66459600fe56eb8c8dd3c00b599b2684d75f7f1dbf6120968c4523f0813a17fe44806c8023686b3a7573255
7
+ data.tar.gz: 3d87e9e10f92408e600536ae6f609dc6cc093007315f70e8cf56bb8d916b7f31a728a930ebe9236764edd1d02fb713b9d703eb308e1e89b62b1ebf95200046c7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.6.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
+
11
+ 1.5.0 (2023-01-17)
12
+ ------------------
13
+
14
+ * Feature - This release adds support for SKU Scope for pricing plans.
15
+
4
16
  1.4.0 (2022-12-06)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.6.0
@@ -760,8 +760,8 @@ module Aws::BillingConductor
760
760
  # A percentage modifier that's applied on the public pricing rates.
761
761
  #
762
762
  # @option params [String] :service
763
- # If the `Scope` attribute is set to `SERVICE`, the attribute indicates
764
- # which service the `PricingRule` is applicable for.
763
+ # If the `Scope` attribute is set to `SERVICE` or `SKU`, the attribute
764
+ # indicates which service the `PricingRule` is applicable for.
765
765
  #
766
766
  # @option params [Hash<String,String>] :tags
767
767
  # A map that contains tag keys and tag values that are attached to a
@@ -775,6 +775,24 @@ module Aws::BillingConductor
775
775
  # @option params [Types::CreateTieringInput] :tiering
776
776
  # The set of tiering configurations for the pricing rule.
777
777
  #
778
+ # @option params [String] :usage_type
779
+ # Usage type is the unit that each service uses to measure the usage of
780
+ # a specific type of resource.
781
+ #
782
+ # If the `Scope` attribute is set to `SKU`, this attribute indicates
783
+ # which usage type the `PricingRule` is modifying. For example,
784
+ # `USW2-BoxUsage:m2.2xlarge` describes an` M2 High Memory Double Extra
785
+ # Large` instance in the US West (Oregon) Region. </p>
786
+ #
787
+ # @option params [String] :operation
788
+ # Operation is the specific Amazon Web Services action covered by this
789
+ # line item. This describes the specific usage of the line item.
790
+ #
791
+ # If the `Scope` attribute is set to `SKU`, this attribute indicates
792
+ # which operation the `PricingRule` is modifying. For example, a value
793
+ # of `RunInstances:0202` indicates the operation of running an Amazon
794
+ # EC2 instance.
795
+ #
778
796
  # @return [Types::CreatePricingRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
779
797
  #
780
798
  # * {Types::CreatePricingRuleOutput#arn #arn} => String
@@ -798,6 +816,8 @@ module Aws::BillingConductor
798
816
  # activated: false, # required
799
817
  # },
800
818
  # },
819
+ # usage_type: "UsageType",
820
+ # operation: "Operation",
801
821
  # })
802
822
  #
803
823
  # @example Response structure
@@ -1897,6 +1917,8 @@ module Aws::BillingConductor
1897
1917
  # * {Types::UpdatePricingRuleOutput#last_modified_time #last_modified_time} => Integer
1898
1918
  # * {Types::UpdatePricingRuleOutput#billing_entity #billing_entity} => String
1899
1919
  # * {Types::UpdatePricingRuleOutput#tiering #tiering} => Types::UpdateTieringInput
1920
+ # * {Types::UpdatePricingRuleOutput#usage_type #usage_type} => String
1921
+ # * {Types::UpdatePricingRuleOutput#operation #operation} => String
1900
1922
  #
1901
1923
  # @example Request syntax with placeholder values
1902
1924
  #
@@ -1926,6 +1948,8 @@ module Aws::BillingConductor
1926
1948
  # resp.last_modified_time #=> Integer
1927
1949
  # resp.billing_entity #=> String
1928
1950
  # resp.tiering.free_tier.activated #=> Boolean
1951
+ # resp.usage_type #=> String
1952
+ # resp.operation #=> String
1929
1953
  #
1930
1954
  # @see http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule AWS API Documentation
1931
1955
  #
@@ -1949,7 +1973,7 @@ module Aws::BillingConductor
1949
1973
  params: params,
1950
1974
  config: config)
1951
1975
  context[:gem_name] = 'aws-sdk-billingconductor'
1952
- context[:gem_version] = '1.4.0'
1976
+ context[:gem_version] = '1.6.0'
1953
1977
  Seahorse::Client::Request.new(handlers, context)
1954
1978
  end
1955
1979
 
@@ -151,6 +151,7 @@ module Aws::BillingConductor
151
151
  NumberOfAssociatedPricingRules = Shapes::IntegerShape.new(name: 'NumberOfAssociatedPricingRules')
152
152
  NumberOfAssociations = Shapes::IntegerShape.new(name: 'NumberOfAssociations')
153
153
  NumberOfPricingPlansAssociatedWith = Shapes::IntegerShape.new(name: 'NumberOfPricingPlansAssociatedWith')
154
+ Operation = Shapes::StringShape.new(name: 'Operation')
154
155
  PricingPlanArn = Shapes::StringShape.new(name: 'PricingPlanArn')
155
156
  PricingPlanArns = Shapes::ListShape.new(name: 'PricingPlanArns')
156
157
  PricingPlanDescription = Shapes::StringShape.new(name: 'PricingPlanDescription')
@@ -199,6 +200,7 @@ module Aws::BillingConductor
199
200
  UpdatePricingRuleInput = Shapes::StructureShape.new(name: 'UpdatePricingRuleInput')
200
201
  UpdatePricingRuleOutput = Shapes::StructureShape.new(name: 'UpdatePricingRuleOutput')
201
202
  UpdateTieringInput = Shapes::StructureShape.new(name: 'UpdateTieringInput')
203
+ UsageType = Shapes::StringShape.new(name: 'UsageType')
202
204
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
203
205
  ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
204
206
  ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
@@ -344,6 +346,8 @@ module Aws::BillingConductor
344
346
  CreatePricingRuleInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
345
347
  CreatePricingRuleInput.add_member(:billing_entity, Shapes::ShapeRef.new(shape: BillingEntity, location_name: "BillingEntity"))
346
348
  CreatePricingRuleInput.add_member(:tiering, Shapes::ShapeRef.new(shape: CreateTieringInput, location_name: "Tiering"))
349
+ CreatePricingRuleInput.add_member(:usage_type, Shapes::ShapeRef.new(shape: UsageType, location_name: "UsageType"))
350
+ CreatePricingRuleInput.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "Operation"))
347
351
  CreatePricingRuleInput.struct_class = Types::CreatePricingRuleInput
348
352
 
349
353
  CreatePricingRuleOutput.add_member(:arn, Shapes::ShapeRef.new(shape: PricingRuleArn, location_name: "Arn"))
@@ -770,6 +774,8 @@ module Aws::BillingConductor
770
774
  UpdatePricingRuleOutput.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Instant, location_name: "LastModifiedTime"))
771
775
  UpdatePricingRuleOutput.add_member(:billing_entity, Shapes::ShapeRef.new(shape: BillingEntity, location_name: "BillingEntity"))
772
776
  UpdatePricingRuleOutput.add_member(:tiering, Shapes::ShapeRef.new(shape: UpdateTieringInput, location_name: "Tiering"))
777
+ UpdatePricingRuleOutput.add_member(:usage_type, Shapes::ShapeRef.new(shape: UsageType, location_name: "UsageType"))
778
+ UpdatePricingRuleOutput.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "Operation"))
773
779
  UpdatePricingRuleOutput.struct_class = Types::UpdatePricingRuleOutput
774
780
 
775
781
  UpdateTieringInput.add_member(:free_tier, Shapes::ShapeRef.new(shape: UpdateFreeTierConfig, required: true, location_name: "FreeTier"))
@@ -9,162 +9,67 @@
9
9
 
10
10
  module Aws::BillingConductor
11
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
- )
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)
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://billingconductor-fips.#{region}.api.aws", headers: {}, properties: {})
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://billingconductor-fips.#{region}.amazonaws.com", headers: {}, properties: {})
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://billingconductor.#{region}.api.aws", headers: {}, properties: {})
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://billingconductor.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"billingconductor"}]})
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://billingconductor-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://billingconductor-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://billingconductor.#{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://billingconductor.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"billingconductor"}]})
68
+ end
69
+ return Aws::Endpoints::Endpoint.new(url: "https://billingconductor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
70
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
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 private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdG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uUmVzdWx0I2R1YWxTdGFj
152
- a0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0
153
- eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0aW9ucyI6W10sImVycm9yIjoi
154
- RHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRoaXMgcGFydGl0aW9uIGRvZXMg
155
- bm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6ImVycm9yIn1dfSx7ImNv
156
- bmRpdGlvbnMiOltdLCJ0eXBlIjoidHJlZSIsInJ1bGVzIjpbeyJjb25kaXRp
157
- b25zIjpbeyJmbiI6InN0cmluZ0VxdWFscyIsImFyZ3YiOlt7InJlZiI6IlJl
158
- Z2lvbiJ9LCJhd3MtZ2xvYmFsIl19XSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0
159
- cHM6Ly9iaWxsaW5nY29uZHVjdG9yLnVzLWVhc3QtMS5hbWF6b25hd3MuY29t
160
- IiwicHJvcGVydGllcyI6eyJhdXRoU2NoZW1lcyI6W3sibmFtZSI6InNpZ3Y0
161
- Iiwic2lnbmluZ1JlZ2lvbiI6InVzLWVhc3QtMSIsInNpZ25pbmdOYW1lIjoi
162
- YmlsbGluZ2NvbmR1Y3RvciJ9XX0sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVu
163
- ZHBvaW50In0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoi
164
- aHR0cHM6Ly9iaWxsaW5nY29uZHVjdG9yLntSZWdpb259LntQYXJ0aXRpb25S
165
- ZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7
166
- fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfV19
167
-
168
- JSON
169
74
  end
170
75
  end
@@ -622,7 +622,7 @@ module Aws::BillingConductor
622
622
  # @return [Float]
623
623
  #
624
624
  # @!attribute [rw] service
625
- # If the `Scope` attribute is set to `SERVICE`, the attribute
625
+ # If the `Scope` attribute is set to `SERVICE` or `SKU`, the attribute
626
626
  # indicates which service the `PricingRule` is applicable for.
627
627
  # @return [String]
628
628
  #
@@ -641,6 +641,26 @@ module Aws::BillingConductor
641
641
  # The set of tiering configurations for the pricing rule.
642
642
  # @return [Types::CreateTieringInput]
643
643
  #
644
+ # @!attribute [rw] usage_type
645
+ # Usage type is the unit that each service uses to measure the usage
646
+ # of a specific type of resource.
647
+ #
648
+ # If the `Scope` attribute is set to `SKU`, this attribute indicates
649
+ # which usage type the `PricingRule` is modifying. For example,
650
+ # `USW2-BoxUsage:m2.2xlarge` describes an` M2 High Memory Double Extra
651
+ # Large` instance in the US West (Oregon) Region. </p>
652
+ # @return [String]
653
+ #
654
+ # @!attribute [rw] operation
655
+ # Operation is the specific Amazon Web Services action covered by this
656
+ # line item. This describes the specific usage of the line item.
657
+ #
658
+ # If the `Scope` attribute is set to `SKU`, this attribute indicates
659
+ # which operation the `PricingRule` is modifying. For example, a value
660
+ # of `RunInstances:0202` indicates the operation of running an Amazon
661
+ # EC2 instance.
662
+ # @return [String]
663
+ #
644
664
  # @see http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRuleInput AWS API Documentation
645
665
  #
646
666
  class CreatePricingRuleInput < Struct.new(
@@ -653,7 +673,9 @@ module Aws::BillingConductor
653
673
  :service,
654
674
  :tags,
655
675
  :billing_entity,
656
- :tiering)
676
+ :tiering,
677
+ :usage_type,
678
+ :operation)
657
679
  SENSITIVE = [:name, :description]
658
680
  include Aws::Structure
659
681
  end
@@ -2570,6 +2592,26 @@ module Aws::BillingConductor
2570
2592
  # The set of tiering configurations for the pricing rule.
2571
2593
  # @return [Types::UpdateTieringInput]
2572
2594
  #
2595
+ # @!attribute [rw] usage_type
2596
+ # Usage type is the unit that each service uses to measure the usage
2597
+ # of a specific type of resource.
2598
+ #
2599
+ # If the `Scope` attribute is set to `SKU`, this attribute indicates
2600
+ # which usage type the `PricingRule` is modifying. For example,
2601
+ # `USW2-BoxUsage:m2.2xlarge` describes an `M2 High Memory Double Extra
2602
+ # Large` instance in the US West (Oregon) Region.
2603
+ # @return [String]
2604
+ #
2605
+ # @!attribute [rw] operation
2606
+ # Operation refers to the specific Amazon Web Services covered by this
2607
+ # line item. This describes the specific usage of the line item.
2608
+ #
2609
+ # If the `Scope` attribute is set to `SKU`, this attribute indicates
2610
+ # which operation the `PricingRule` is modifying. For example, a value
2611
+ # of `RunInstances:0202` indicates the operation of running an Amazon
2612
+ # EC2 instance.
2613
+ # @return [String]
2614
+ #
2573
2615
  # @see http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRuleOutput AWS API Documentation
2574
2616
  #
2575
2617
  class UpdatePricingRuleOutput < Struct.new(
@@ -2583,7 +2625,9 @@ module Aws::BillingConductor
2583
2625
  :associated_pricing_plan_count,
2584
2626
  :last_modified_time,
2585
2627
  :billing_entity,
2586
- :tiering)
2628
+ :tiering,
2629
+ :usage_type,
2630
+ :operation)
2587
2631
  SENSITIVE = [:name, :description]
2588
2632
  include Aws::Structure
2589
2633
  end
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-billingconductor/customizations'
53
53
  # @!group service
54
54
  module Aws::BillingConductor
55
55
 
56
- GEM_VERSION = '1.4.0'
56
+ GEM_VERSION = '1.6.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-billingconductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.6.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: 2022-12-06 00:00:00.000000000 Z
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