aws-sdk-emr 1.71.0 → 1.72.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: 37b18e524eaa6a528630442ded2e246fda77642815d36461273abf15336f94da
4
- data.tar.gz: 4599fc3ebf3b3c97893bc93dae4cbb165e8c321299a993509378487f76a9d5ff
3
+ metadata.gz: 683fa24cc40acb9622fed9c89c2ecab1ab272de7207fc36d4ce2c126d1008e6a
4
+ data.tar.gz: 518116f435bfaa0ef04fecf0e188b7b1a9745e6929d24d4719fd80635d2b7563
5
5
  SHA512:
6
- metadata.gz: b6c082f27759be5543c632ad45b30b02085793f986a6eb876e4dfeae8e33a5ac59c015dc21590d330eb64733aba6b74c35f80a11a89c8cecedc320f735dfaa30
7
- data.tar.gz: 756ff071fb135f84efd9d56a63c417b3942f7bf3f7164073ff55c6b8e5a4fa5841a43e7af6e1b06cd5c3ce032926270dfa2decf7ec891635c26c0fe115e75402
6
+ metadata.gz: 1f55941ab97f4d2528df30b10197dc255da4782a6497ca61587d4f836c255f1ce4a27a394b681124e7ac16230a5c766b1abc701365c786c229a46fa2d2b0d32f
7
+ data.tar.gz: 9e6bad113f4decf6884aff619637f886e4225e97b54c93f913c1c1bcafec0b62bd943bf477fc2840f6f4bd8f7b72f14732d8f0bd4925ede66e1e2498f525261a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.72.0 (2023-06-21)
5
+ ------------------
6
+
7
+ * Feature - This release introduces a new Amazon EMR EPI called ListSupportedInstanceTypes that returns a list of all instance types supported by a given EMR release.
8
+
4
9
  1.71.0 (2023-06-15)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.71.0
1
+ 1.72.0
@@ -2494,6 +2494,65 @@ module Aws::EMR
2494
2494
  req.send_request(options)
2495
2495
  end
2496
2496
 
2497
+ # A list of the instance types that Amazon EMR supports. You can filter
2498
+ # the list by Amazon Web Services Region and Amazon EMR release.
2499
+ #
2500
+ # @option params [required, String] :release_label
2501
+ # The Amazon EMR release label determines the [versions of open-source
2502
+ # application packages][1] that Amazon EMR has installed on the cluster.
2503
+ # Release labels are in the format `emr-x.x.x`, where x.x.x is an Amazon
2504
+ # EMR release number such as `emr-6.10.0`. For more information about
2505
+ # Amazon EMR releases and their included application versions and
2506
+ # features, see the <i> <a
2507
+ # href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-components.html">Amazon
2508
+ # EMR Release Guide</a> </i>.
2509
+ #
2510
+ #
2511
+ #
2512
+ # [1]: https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-app-versions-6.x.html
2513
+ #
2514
+ # @option params [String] :marker
2515
+ # The pagination token that marks the next set of results to retrieve.
2516
+ #
2517
+ # @return [Types::ListSupportedInstanceTypesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2518
+ #
2519
+ # * {Types::ListSupportedInstanceTypesOutput#supported_instance_types #supported_instance_types} => Array&lt;Types::SupportedInstanceType&gt;
2520
+ # * {Types::ListSupportedInstanceTypesOutput#marker #marker} => String
2521
+ #
2522
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2523
+ #
2524
+ # @example Request syntax with placeholder values
2525
+ #
2526
+ # resp = client.list_supported_instance_types({
2527
+ # release_label: "String", # required
2528
+ # marker: "String",
2529
+ # })
2530
+ #
2531
+ # @example Response structure
2532
+ #
2533
+ # resp.supported_instance_types #=> Array
2534
+ # resp.supported_instance_types[0].type #=> String
2535
+ # resp.supported_instance_types[0].memory_gb #=> Float
2536
+ # resp.supported_instance_types[0].storage_gb #=> Integer
2537
+ # resp.supported_instance_types[0].vcpu #=> Integer
2538
+ # resp.supported_instance_types[0].is_64_bits_only #=> Boolean
2539
+ # resp.supported_instance_types[0].instance_family_id #=> String
2540
+ # resp.supported_instance_types[0].ebs_optimized_available #=> Boolean
2541
+ # resp.supported_instance_types[0].ebs_optimized_by_default #=> Boolean
2542
+ # resp.supported_instance_types[0].number_of_disks #=> Integer
2543
+ # resp.supported_instance_types[0].ebs_storage_only #=> Boolean
2544
+ # resp.supported_instance_types[0].architecture #=> String
2545
+ # resp.marker #=> String
2546
+ #
2547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSupportedInstanceTypes AWS API Documentation
2548
+ #
2549
+ # @overload list_supported_instance_types(params = {})
2550
+ # @param [Hash] params ({})
2551
+ def list_supported_instance_types(params = {}, options = {})
2552
+ req = build_request(:list_supported_instance_types, params)
2553
+ req.send_request(options)
2554
+ end
2555
+
2497
2556
  # Modifies the number of steps that can be executed concurrently for the
2498
2557
  # cluster specified using ClusterID.
2499
2558
  #
@@ -3931,7 +3990,7 @@ module Aws::EMR
3931
3990
  params: params,
3932
3991
  config: config)
3933
3992
  context[:gem_name] = 'aws-sdk-emr'
3934
- context[:gem_version] = '1.71.0'
3993
+ context[:gem_version] = '1.72.0'
3935
3994
  Seahorse::Client::Request.new(handlers, context)
3936
3995
  end
3937
3996
 
@@ -109,6 +109,7 @@ module Aws::EMR
109
109
  ExecutionEngineConfig = Shapes::StructureShape.new(name: 'ExecutionEngineConfig')
110
110
  ExecutionEngineType = Shapes::StringShape.new(name: 'ExecutionEngineType')
111
111
  FailureDetails = Shapes::StructureShape.new(name: 'FailureDetails')
112
+ Float = Shapes::FloatShape.new(name: 'Float')
112
113
  GetAutoTerminationPolicyInput = Shapes::StructureShape.new(name: 'GetAutoTerminationPolicyInput')
113
114
  GetAutoTerminationPolicyOutput = Shapes::StructureShape.new(name: 'GetAutoTerminationPolicyOutput')
114
115
  GetBlockPublicAccessConfigurationInput = Shapes::StructureShape.new(name: 'GetBlockPublicAccessConfigurationInput')
@@ -207,6 +208,8 @@ module Aws::EMR
207
208
  ListStudioSessionMappingsOutput = Shapes::StructureShape.new(name: 'ListStudioSessionMappingsOutput')
208
209
  ListStudiosInput = Shapes::StructureShape.new(name: 'ListStudiosInput')
209
210
  ListStudiosOutput = Shapes::StructureShape.new(name: 'ListStudiosOutput')
211
+ ListSupportedInstanceTypesInput = Shapes::StructureShape.new(name: 'ListSupportedInstanceTypesInput')
212
+ ListSupportedInstanceTypesOutput = Shapes::StructureShape.new(name: 'ListSupportedInstanceTypesOutput')
210
213
  Long = Shapes::IntegerShape.new(name: 'Long')
211
214
  ManagedScalingPolicy = Shapes::StructureShape.new(name: 'ManagedScalingPolicy')
212
215
  Marker = Shapes::StringShape.new(name: 'Marker')
@@ -319,6 +322,8 @@ module Aws::EMR
319
322
  StudioSummary = Shapes::StructureShape.new(name: 'StudioSummary')
320
323
  StudioSummaryList = Shapes::ListShape.new(name: 'StudioSummaryList')
321
324
  SubnetIdList = Shapes::ListShape.new(name: 'SubnetIdList')
325
+ SupportedInstanceType = Shapes::StructureShape.new(name: 'SupportedInstanceType')
326
+ SupportedInstanceTypesList = Shapes::ListShape.new(name: 'SupportedInstanceTypesList')
322
327
  SupportedProductConfig = Shapes::StructureShape.new(name: 'SupportedProductConfig')
323
328
  SupportedProductsList = Shapes::ListShape.new(name: 'SupportedProductsList')
324
329
  Tag = Shapes::StructureShape.new(name: 'Tag')
@@ -1122,6 +1127,14 @@ module Aws::EMR
1122
1127
  ListStudiosOutput.add_member(:marker, Shapes::ShapeRef.new(shape: Marker, location_name: "Marker"))
1123
1128
  ListStudiosOutput.struct_class = Types::ListStudiosOutput
1124
1129
 
1130
+ ListSupportedInstanceTypesInput.add_member(:release_label, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ReleaseLabel"))
1131
+ ListSupportedInstanceTypesInput.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
1132
+ ListSupportedInstanceTypesInput.struct_class = Types::ListSupportedInstanceTypesInput
1133
+
1134
+ ListSupportedInstanceTypesOutput.add_member(:supported_instance_types, Shapes::ShapeRef.new(shape: SupportedInstanceTypesList, location_name: "SupportedInstanceTypes"))
1135
+ ListSupportedInstanceTypesOutput.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
1136
+ ListSupportedInstanceTypesOutput.struct_class = Types::ListSupportedInstanceTypesOutput
1137
+
1125
1138
  ManagedScalingPolicy.add_member(:compute_limits, Shapes::ShapeRef.new(shape: ComputeLimits, location_name: "ComputeLimits"))
1126
1139
  ManagedScalingPolicy.struct_class = Types::ManagedScalingPolicy
1127
1140
 
@@ -1512,6 +1525,21 @@ module Aws::EMR
1512
1525
 
1513
1526
  SubnetIdList.member = Shapes::ShapeRef.new(shape: String)
1514
1527
 
1528
+ SupportedInstanceType.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
1529
+ SupportedInstanceType.add_member(:memory_gb, Shapes::ShapeRef.new(shape: Float, location_name: "MemoryGB"))
1530
+ SupportedInstanceType.add_member(:storage_gb, Shapes::ShapeRef.new(shape: Integer, location_name: "StorageGB"))
1531
+ SupportedInstanceType.add_member(:vcpu, Shapes::ShapeRef.new(shape: Integer, location_name: "VCPU"))
1532
+ SupportedInstanceType.add_member(:is_64_bits_only, Shapes::ShapeRef.new(shape: Boolean, location_name: "Is64BitsOnly"))
1533
+ SupportedInstanceType.add_member(:instance_family_id, Shapes::ShapeRef.new(shape: String, location_name: "InstanceFamilyId"))
1534
+ SupportedInstanceType.add_member(:ebs_optimized_available, Shapes::ShapeRef.new(shape: Boolean, location_name: "EbsOptimizedAvailable"))
1535
+ SupportedInstanceType.add_member(:ebs_optimized_by_default, Shapes::ShapeRef.new(shape: Boolean, location_name: "EbsOptimizedByDefault"))
1536
+ SupportedInstanceType.add_member(:number_of_disks, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfDisks"))
1537
+ SupportedInstanceType.add_member(:ebs_storage_only, Shapes::ShapeRef.new(shape: Boolean, location_name: "EbsStorageOnly"))
1538
+ SupportedInstanceType.add_member(:architecture, Shapes::ShapeRef.new(shape: String, location_name: "Architecture"))
1539
+ SupportedInstanceType.struct_class = Types::SupportedInstanceType
1540
+
1541
+ SupportedInstanceTypesList.member = Shapes::ShapeRef.new(shape: SupportedInstanceType)
1542
+
1515
1543
  SupportedProductConfig.add_member(:name, Shapes::ShapeRef.new(shape: XmlStringMaxLen256, location_name: "Name"))
1516
1544
  SupportedProductConfig.add_member(:args, Shapes::ShapeRef.new(shape: XmlStringList, location_name: "Args"))
1517
1545
  SupportedProductConfig.struct_class = Types::SupportedProductConfig
@@ -1964,6 +1992,21 @@ module Aws::EMR
1964
1992
  )
1965
1993
  end)
1966
1994
 
1995
+ api.add_operation(:list_supported_instance_types, Seahorse::Model::Operation.new.tap do |o|
1996
+ o.name = "ListSupportedInstanceTypes"
1997
+ o.http_method = "POST"
1998
+ o.http_request_uri = "/"
1999
+ o.input = Shapes::ShapeRef.new(shape: ListSupportedInstanceTypesInput)
2000
+ o.output = Shapes::ShapeRef.new(shape: ListSupportedInstanceTypesOutput)
2001
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2002
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2003
+ o[:pager] = Aws::Pager.new(
2004
+ tokens: {
2005
+ "marker" => "marker"
2006
+ }
2007
+ )
2008
+ end)
2009
+
1967
2010
  api.add_operation(:modify_cluster, Seahorse::Model::Operation.new.tap do |o|
1968
2011
  o.name = "ModifyCluster"
1969
2012
  o.http_method = "POST"
@@ -488,6 +488,20 @@ module Aws::EMR
488
488
  end
489
489
  end
490
490
 
491
+ class ListSupportedInstanceTypes
492
+ def self.build(context)
493
+ unless context.config.regional_endpoint
494
+ endpoint = context.config.endpoint.to_s
495
+ end
496
+ Aws::EMR::EndpointParameters.new(
497
+ region: context.config.region,
498
+ use_dual_stack: context.config.use_dualstack_endpoint,
499
+ use_fips: context.config.use_fips_endpoint,
500
+ endpoint: endpoint,
501
+ )
502
+ end
503
+ end
504
+
491
505
  class ModifyCluster
492
506
  def self.build(context)
493
507
  unless context.config.regional_endpoint
@@ -124,6 +124,8 @@ module Aws::EMR
124
124
  Aws::EMR::Endpoints::ListStudioSessionMappings.build(context)
125
125
  when :list_studios
126
126
  Aws::EMR::Endpoints::ListStudios.build(context)
127
+ when :list_supported_instance_types
128
+ Aws::EMR::Endpoints::ListSupportedInstanceTypes.build(context)
127
129
  when :modify_cluster
128
130
  Aws::EMR::Endpoints::ModifyCluster.build(context)
129
131
  when :modify_instance_fleet
@@ -4315,6 +4315,53 @@ module Aws::EMR
4315
4315
  include Aws::Structure
4316
4316
  end
4317
4317
 
4318
+ # @!attribute [rw] release_label
4319
+ # The Amazon EMR release label determines the [versions of open-source
4320
+ # application packages][1] that Amazon EMR has installed on the
4321
+ # cluster. Release labels are in the format `emr-x.x.x`, where x.x.x
4322
+ # is an Amazon EMR release number such as `emr-6.10.0`. For more
4323
+ # information about Amazon EMR releases and their included application
4324
+ # versions and features, see the <i> <a
4325
+ # href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-components.html">Amazon
4326
+ # EMR Release Guide</a> </i>.
4327
+ #
4328
+ #
4329
+ #
4330
+ # [1]: https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-app-versions-6.x.html
4331
+ # @return [String]
4332
+ #
4333
+ # @!attribute [rw] marker
4334
+ # The pagination token that marks the next set of results to retrieve.
4335
+ # @return [String]
4336
+ #
4337
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSupportedInstanceTypesInput AWS API Documentation
4338
+ #
4339
+ class ListSupportedInstanceTypesInput < Struct.new(
4340
+ :release_label,
4341
+ :marker)
4342
+ SENSITIVE = []
4343
+ include Aws::Structure
4344
+ end
4345
+
4346
+ # @!attribute [rw] supported_instance_types
4347
+ # The list of instance types that the release specified in
4348
+ # `ListSupportedInstanceTypesInput$ReleaseLabel` supports, filtered by
4349
+ # Amazon Web Services Region.
4350
+ # @return [Array<Types::SupportedInstanceType>]
4351
+ #
4352
+ # @!attribute [rw] marker
4353
+ # The pagination token that marks the next set of results to retrieve.
4354
+ # @return [String]
4355
+ #
4356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSupportedInstanceTypesOutput AWS API Documentation
4357
+ #
4358
+ class ListSupportedInstanceTypesOutput < Struct.new(
4359
+ :supported_instance_types,
4360
+ :marker)
4361
+ SENSITIVE = []
4362
+ include Aws::Structure
4363
+ end
4364
+
4318
4365
  # Managed scaling policy for an Amazon EMR cluster. The policy specifies
4319
4366
  # the limits for resources that can be added or terminated from a
4320
4367
  # cluster. The policy only applies to the core and task nodes. The
@@ -5939,21 +5986,10 @@ module Aws::EMR
5939
5986
  # @return [Integer]
5940
5987
  #
5941
5988
  # @!attribute [rw] allocation_strategy
5942
- # Specifies one of the following strategies to launch Spot Instance
5943
- # fleets: `price-capacity-optimized`, `capacity-optimized`,
5944
- # `lowest-price`, or `diversified`. For more information on the
5945
- # provisioning strategies, see [Allocation strategies for Spot
5946
- # Instances][1] in the *Amazon EC2 User Guide for Linux Instances*.
5947
- #
5948
- # <note markdown="1"> When you launch a Spot Instance fleet with the old console, it
5949
- # automatically launches with the `capacity-optimized` strategy. You
5950
- # can't change the allocation strategy from the old console.
5951
- #
5952
- # </note>
5953
- #
5954
- #
5955
- #
5956
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html
5989
+ # Specifies the strategy to use in launching Spot Instance fleets.
5990
+ # Currently, the only option is capacity-optimized (the default),
5991
+ # which launches instances from Spot Instance pools with optimal
5992
+ # capacity for the number of instances that are launching.
5957
5993
  # @return [String]
5958
5994
  #
5959
5995
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SpotProvisioningSpecification AWS API Documentation
@@ -6527,6 +6563,86 @@ module Aws::EMR
6527
6563
  include Aws::Structure
6528
6564
  end
6529
6565
 
6566
+ # An instance type that the specified Amazon EMR release supports.
6567
+ #
6568
+ # @!attribute [rw] type
6569
+ # The [Amazon EC2 instance type][1], for example `m5.xlarge`, of the
6570
+ # `SupportedInstanceType`.
6571
+ #
6572
+ #
6573
+ #
6574
+ # [1]: http://aws.amazon.com/ec2/instance-types/
6575
+ # @return [String]
6576
+ #
6577
+ # @!attribute [rw] memory_gb
6578
+ # The amount of memory that is available to Amazon EMR from the
6579
+ # `SupportedInstanceType`. The kernel and hypervisor software consume
6580
+ # some memory, so this value might be lower than the overall memory
6581
+ # for the instance type.
6582
+ # @return [Float]
6583
+ #
6584
+ # @!attribute [rw] storage_gb
6585
+ # `StorageGB` represents the storage capacity of the
6586
+ # `SupportedInstanceType`. This value is `0` for Amazon EBS-only
6587
+ # instance types.
6588
+ # @return [Integer]
6589
+ #
6590
+ # @!attribute [rw] vcpu
6591
+ # The number of vCPUs available for the `SupportedInstanceType`.
6592
+ # @return [Integer]
6593
+ #
6594
+ # @!attribute [rw] is_64_bits_only
6595
+ # Indicates whether the `SupportedInstanceType` only supports 64-bit
6596
+ # architecture.
6597
+ # @return [Boolean]
6598
+ #
6599
+ # @!attribute [rw] instance_family_id
6600
+ # The Amazon EC2 family and generation for the
6601
+ # `SupportedInstanceType`.
6602
+ # @return [String]
6603
+ #
6604
+ # @!attribute [rw] ebs_optimized_available
6605
+ # Indicates whether the `SupportedInstanceType` supports Amazon EBS
6606
+ # optimization.
6607
+ # @return [Boolean]
6608
+ #
6609
+ # @!attribute [rw] ebs_optimized_by_default
6610
+ # Indicates whether the `SupportedInstanceType` uses Amazon EBS
6611
+ # optimization by default.
6612
+ # @return [Boolean]
6613
+ #
6614
+ # @!attribute [rw] number_of_disks
6615
+ # Number of disks for the `SupportedInstanceType`. This value is `0`
6616
+ # for Amazon EBS-only instance types.
6617
+ # @return [Integer]
6618
+ #
6619
+ # @!attribute [rw] ebs_storage_only
6620
+ # Indicates whether the `SupportedInstanceType` only supports Amazon
6621
+ # EBS.
6622
+ # @return [Boolean]
6623
+ #
6624
+ # @!attribute [rw] architecture
6625
+ # The CPU architecture, for example `X86_64` or `AARCH64`.
6626
+ # @return [String]
6627
+ #
6628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SupportedInstanceType AWS API Documentation
6629
+ #
6630
+ class SupportedInstanceType < Struct.new(
6631
+ :type,
6632
+ :memory_gb,
6633
+ :storage_gb,
6634
+ :vcpu,
6635
+ :is_64_bits_only,
6636
+ :instance_family_id,
6637
+ :ebs_optimized_available,
6638
+ :ebs_optimized_by_default,
6639
+ :number_of_disks,
6640
+ :ebs_storage_only,
6641
+ :architecture)
6642
+ SENSITIVE = []
6643
+ include Aws::Structure
6644
+ end
6645
+
6530
6646
  # The list of supported product configurations that allow user-supplied
6531
6647
  # arguments. Amazon EMR accepts these arguments and forwards them to the
6532
6648
  # corresponding installation script as bootstrap action arguments.
data/lib/aws-sdk-emr.rb CHANGED
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-emr/customizations'
53
53
  # @!group service
54
54
  module Aws::EMR
55
55
 
56
- GEM_VERSION = '1.71.0'
56
+ GEM_VERSION = '1.72.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-emr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.71.0
4
+ version: 1.72.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: 2023-06-15 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core