aws-sdk-ec2 1.443.0 → 1.444.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: 984ec6937889a106c81b27b988385abfc900a395cee92376a56a0d15f922214f
4
- data.tar.gz: c037f163548ede1fec6a55da26290d364b37250ed8708ff433c5bf58c1e197c9
3
+ metadata.gz: 841e89e019070b27212d99b17d625185c9ee861576e914bdfa86e718edc6af71
4
+ data.tar.gz: cddf12db85a8c9e03f544eef7195004b8b229c4dd54c3c500b2b1f0bd41a87b7
5
5
  SHA512:
6
- metadata.gz: 0b64aecbd53e8a3994980a44cd1af70ee06cbf39b9d293c0e89050c56d1e21cae52a8b7663ac991463f9c4092e2378c159b5919886deca3a7936ba147904a462
7
- data.tar.gz: 1fd963e996681b13f92572c93f850bf03a4ebc5ebded7c6c693bfd03cefda47663efbf2f6a427cf0bdbfe31b4e481e5a94ed3b1e78ed0e397781902c9392f6c4
6
+ metadata.gz: 07bd9a41706f0b593751c716f68a9acf39b3d8afa458e53f8bb253352ad8efe4105e1e75cf5cf748f8bb76b4d1b792f92e708ffb23e99c5b00412594616fb9b5
7
+ data.tar.gz: c92c3c61aff7e187aada0c6a6cf78e8fe518f5035f603daeaa62a34ebff379be849c1c217117ba77e2f40adb1290ee3085c4289c8a9c9ee9f3ff741e4e43f998
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.444.0 (2024-03-19)
5
+ ------------------
6
+
7
+ * Feature - This release adds the new DescribeMacHosts API operation for getting information about EC2 Mac Dedicated Hosts. Users can now see the latest macOS versions that their underlying Apple Mac can support without needing to be updated.
8
+
4
9
  1.443.0 (2024-03-15)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.443.0
1
+ 1.444.0
@@ -27776,6 +27776,69 @@ module Aws::EC2
27776
27776
  req.send_request(options)
27777
27777
  end
27778
27778
 
27779
+ # Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac
27780
+ # Dedicated Hosts.
27781
+ #
27782
+ # @option params [Array<Types::Filter>] :filters
27783
+ # The filters.
27784
+ #
27785
+ # * `availability-zone` - The Availability Zone of the EC2 Mac Dedicated
27786
+ # Host.
27787
+ #
27788
+ # * `instance-type` - The instance type size that the EC2 Mac Dedicated
27789
+ # Host is configured to support.
27790
+ #
27791
+ # @option params [Array<String>] :host_ids
27792
+ # The IDs of the EC2 Mac Dedicated Hosts.
27793
+ #
27794
+ # @option params [Integer] :max_results
27795
+ # The maximum number of results to return for the request in a single
27796
+ # page. The remaining results can be seen by sending another request
27797
+ # with the returned `nextToken` value. This value can be between 5 and
27798
+ # 500. If `maxResults` is given a larger value than 500, you receive an
27799
+ # error.
27800
+ #
27801
+ # @option params [String] :next_token
27802
+ # The token to use to retrieve the next page of results.
27803
+ #
27804
+ # @return [Types::DescribeMacHostsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
27805
+ #
27806
+ # * {Types::DescribeMacHostsResult#mac_hosts #mac_hosts} => Array&lt;Types::MacHost&gt;
27807
+ # * {Types::DescribeMacHostsResult#next_token #next_token} => String
27808
+ #
27809
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
27810
+ #
27811
+ # @example Request syntax with placeholder values
27812
+ #
27813
+ # resp = client.describe_mac_hosts({
27814
+ # filters: [
27815
+ # {
27816
+ # name: "String",
27817
+ # values: ["String"],
27818
+ # },
27819
+ # ],
27820
+ # host_ids: ["DedicatedHostId"],
27821
+ # max_results: 1,
27822
+ # next_token: "String",
27823
+ # })
27824
+ #
27825
+ # @example Response structure
27826
+ #
27827
+ # resp.mac_hosts #=> Array
27828
+ # resp.mac_hosts[0].host_id #=> String
27829
+ # resp.mac_hosts[0].mac_os_latest_supported_versions #=> Array
27830
+ # resp.mac_hosts[0].mac_os_latest_supported_versions[0] #=> String
27831
+ # resp.next_token #=> String
27832
+ #
27833
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMacHosts AWS API Documentation
27834
+ #
27835
+ # @overload describe_mac_hosts(params = {})
27836
+ # @param [Hash] params ({})
27837
+ def describe_mac_hosts(params = {}, options = {})
27838
+ req = build_request(:describe_mac_hosts, params)
27839
+ req.send_request(options)
27840
+ end
27841
+
27779
27842
  # Describes your managed prefix lists and any Amazon Web
27780
27843
  # Services-managed prefix lists.
27781
27844
  #
@@ -58918,7 +58981,7 @@ module Aws::EC2
58918
58981
  params: params,
58919
58982
  config: config)
58920
58983
  context[:gem_name] = 'aws-sdk-ec2'
58921
- context[:gem_version] = '1.443.0'
58984
+ context[:gem_version] = '1.444.0'
58922
58985
  Seahorse::Client::Request.new(handlers, context)
58923
58986
  end
58924
58987
 
@@ -938,6 +938,9 @@ module Aws::EC2
938
938
  DescribeLockedSnapshotsMaxResults = Shapes::IntegerShape.new(name: 'DescribeLockedSnapshotsMaxResults')
939
939
  DescribeLockedSnapshotsRequest = Shapes::StructureShape.new(name: 'DescribeLockedSnapshotsRequest')
940
940
  DescribeLockedSnapshotsResult = Shapes::StructureShape.new(name: 'DescribeLockedSnapshotsResult')
941
+ DescribeMacHostsRequest = Shapes::StructureShape.new(name: 'DescribeMacHostsRequest')
942
+ DescribeMacHostsRequestMaxResults = Shapes::IntegerShape.new(name: 'DescribeMacHostsRequestMaxResults')
943
+ DescribeMacHostsResult = Shapes::StructureShape.new(name: 'DescribeMacHostsResult')
941
944
  DescribeManagedPrefixListsRequest = Shapes::StructureShape.new(name: 'DescribeManagedPrefixListsRequest')
942
945
  DescribeManagedPrefixListsResult = Shapes::StructureShape.new(name: 'DescribeManagedPrefixListsResult')
943
946
  DescribeMovingAddressesMaxResults = Shapes::IntegerShape.new(name: 'DescribeMovingAddressesMaxResults')
@@ -2026,6 +2029,9 @@ module Aws::EC2
2026
2029
  LockedSnapshotsInfoList = Shapes::ListShape.new(name: 'LockedSnapshotsInfoList')
2027
2030
  LogDestinationType = Shapes::StringShape.new(name: 'LogDestinationType')
2028
2031
  Long = Shapes::IntegerShape.new(name: 'Long')
2032
+ MacHost = Shapes::StructureShape.new(name: 'MacHost')
2033
+ MacHostList = Shapes::ListShape.new(name: 'MacHostList')
2034
+ MacOSVersionStringList = Shapes::ListShape.new(name: 'MacOSVersionStringList')
2029
2035
  MaintenanceDetails = Shapes::StructureShape.new(name: 'MaintenanceDetails')
2030
2036
  ManagedPrefixList = Shapes::StructureShape.new(name: 'ManagedPrefixList')
2031
2037
  ManagedPrefixListSet = Shapes::ListShape.new(name: 'ManagedPrefixListSet')
@@ -6990,6 +6996,16 @@ module Aws::EC2
6990
6996
  DescribeLockedSnapshotsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
6991
6997
  DescribeLockedSnapshotsResult.struct_class = Types::DescribeLockedSnapshotsResult
6992
6998
 
6999
+ DescribeMacHostsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
7000
+ DescribeMacHostsRequest.add_member(:host_ids, Shapes::ShapeRef.new(shape: RequestHostIdList, location_name: "HostId"))
7001
+ DescribeMacHostsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeMacHostsRequestMaxResults, location_name: "MaxResults"))
7002
+ DescribeMacHostsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
7003
+ DescribeMacHostsRequest.struct_class = Types::DescribeMacHostsRequest
7004
+
7005
+ DescribeMacHostsResult.add_member(:mac_hosts, Shapes::ShapeRef.new(shape: MacHostList, location_name: "macHostSet"))
7006
+ DescribeMacHostsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
7007
+ DescribeMacHostsResult.struct_class = Types::DescribeMacHostsResult
7008
+
6993
7009
  DescribeManagedPrefixListsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
6994
7010
  DescribeManagedPrefixListsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
6995
7011
  DescribeManagedPrefixListsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PrefixListMaxResults, location_name: "MaxResults"))
@@ -11203,6 +11219,14 @@ module Aws::EC2
11203
11219
 
11204
11220
  LockedSnapshotsInfoList.member = Shapes::ShapeRef.new(shape: LockedSnapshotsInfo, location_name: "item")
11205
11221
 
11222
+ MacHost.add_member(:host_id, Shapes::ShapeRef.new(shape: DedicatedHostId, location_name: "hostId"))
11223
+ MacHost.add_member(:mac_os_latest_supported_versions, Shapes::ShapeRef.new(shape: MacOSVersionStringList, location_name: "macOSLatestSupportedVersionSet"))
11224
+ MacHost.struct_class = Types::MacHost
11225
+
11226
+ MacHostList.member = Shapes::ShapeRef.new(shape: MacHost, location_name: "item")
11227
+
11228
+ MacOSVersionStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
11229
+
11206
11230
  MaintenanceDetails.add_member(:pending_maintenance, Shapes::ShapeRef.new(shape: String, location_name: "pendingMaintenance"))
11207
11231
  MaintenanceDetails.add_member(:maintenance_auto_applied_after, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "maintenanceAutoAppliedAfter"))
11208
11232
  MaintenanceDetails.add_member(:last_maintenance_applied, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "lastMaintenanceApplied"))
@@ -18278,6 +18302,20 @@ module Aws::EC2
18278
18302
  o.output = Shapes::ShapeRef.new(shape: DescribeLockedSnapshotsResult)
18279
18303
  end)
18280
18304
 
18305
+ api.add_operation(:describe_mac_hosts, Seahorse::Model::Operation.new.tap do |o|
18306
+ o.name = "DescribeMacHosts"
18307
+ o.http_method = "POST"
18308
+ o.http_request_uri = "/"
18309
+ o.input = Shapes::ShapeRef.new(shape: DescribeMacHostsRequest)
18310
+ o.output = Shapes::ShapeRef.new(shape: DescribeMacHostsResult)
18311
+ o[:pager] = Aws::Pager.new(
18312
+ limit_key: "max_results",
18313
+ tokens: {
18314
+ "next_token" => "next_token"
18315
+ }
18316
+ )
18317
+ end)
18318
+
18281
18319
  api.add_operation(:describe_managed_prefix_lists, Seahorse::Model::Operation.new.tap do |o|
18282
18320
  o.name = "DescribeManagedPrefixLists"
18283
18321
  o.http_method = "POST"
@@ -4100,6 +4100,20 @@ module Aws::EC2
4100
4100
  end
4101
4101
  end
4102
4102
 
4103
+ class DescribeMacHosts
4104
+ def self.build(context)
4105
+ unless context.config.regional_endpoint
4106
+ endpoint = context.config.endpoint.to_s
4107
+ end
4108
+ Aws::EC2::EndpointParameters.new(
4109
+ region: context.config.region,
4110
+ use_dual_stack: context.config.use_dualstack_endpoint,
4111
+ use_fips: context.config.use_fips_endpoint,
4112
+ endpoint: endpoint,
4113
+ )
4114
+ end
4115
+ end
4116
+
4103
4117
  class DescribeManagedPrefixLists
4104
4118
  def self.build(context)
4105
4119
  unless context.config.regional_endpoint
@@ -642,6 +642,8 @@ module Aws::EC2
642
642
  Aws::EC2::Endpoints::DescribeLocalGateways.build(context)
643
643
  when :describe_locked_snapshots
644
644
  Aws::EC2::Endpoints::DescribeLockedSnapshots.build(context)
645
+ when :describe_mac_hosts
646
+ Aws::EC2::Endpoints::DescribeMacHosts.build(context)
645
647
  when :describe_managed_prefix_lists
646
648
  Aws::EC2::Endpoints::DescribeManagedPrefixLists.build(context)
647
649
  when :describe_moving_addresses
@@ -22086,6 +22086,60 @@ module Aws::EC2
22086
22086
  include Aws::Structure
22087
22087
  end
22088
22088
 
22089
+ # @!attribute [rw] filters
22090
+ # The filters.
22091
+ #
22092
+ # * `availability-zone` - The Availability Zone of the EC2 Mac
22093
+ # Dedicated Host.
22094
+ #
22095
+ # * `instance-type` - The instance type size that the EC2 Mac
22096
+ # Dedicated Host is configured to support.
22097
+ # @return [Array<Types::Filter>]
22098
+ #
22099
+ # @!attribute [rw] host_ids
22100
+ # The IDs of the EC2 Mac Dedicated Hosts.
22101
+ # @return [Array<String>]
22102
+ #
22103
+ # @!attribute [rw] max_results
22104
+ # The maximum number of results to return for the request in a single
22105
+ # page. The remaining results can be seen by sending another request
22106
+ # with the returned `nextToken` value. This value can be between 5 and
22107
+ # 500. If `maxResults` is given a larger value than 500, you receive
22108
+ # an error.
22109
+ # @return [Integer]
22110
+ #
22111
+ # @!attribute [rw] next_token
22112
+ # The token to use to retrieve the next page of results.
22113
+ # @return [String]
22114
+ #
22115
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMacHostsRequest AWS API Documentation
22116
+ #
22117
+ class DescribeMacHostsRequest < Struct.new(
22118
+ :filters,
22119
+ :host_ids,
22120
+ :max_results,
22121
+ :next_token)
22122
+ SENSITIVE = []
22123
+ include Aws::Structure
22124
+ end
22125
+
22126
+ # @!attribute [rw] mac_hosts
22127
+ # Information about the EC2 Mac Dedicated Hosts.
22128
+ # @return [Array<Types::MacHost>]
22129
+ #
22130
+ # @!attribute [rw] next_token
22131
+ # The token to use to retrieve the next page of results.
22132
+ # @return [String]
22133
+ #
22134
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMacHostsResult AWS API Documentation
22135
+ #
22136
+ class DescribeMacHostsResult < Struct.new(
22137
+ :mac_hosts,
22138
+ :next_token)
22139
+ SENSITIVE = []
22140
+ include Aws::Structure
22141
+ end
22142
+
22089
22143
  # @!attribute [rw] dry_run
22090
22144
  # Checks whether you have the required permissions for the action,
22091
22145
  # without actually making the request, and provides an error response.
@@ -46203,6 +46257,26 @@ module Aws::EC2
46203
46257
  include Aws::Structure
46204
46258
  end
46205
46259
 
46260
+ # Information about the EC2 Mac Dedicated Host.
46261
+ #
46262
+ # @!attribute [rw] host_id
46263
+ # The EC2 Mac Dedicated Host ID.
46264
+ # @return [String]
46265
+ #
46266
+ # @!attribute [rw] mac_os_latest_supported_versions
46267
+ # The latest macOS versions that the EC2 Mac Dedicated Host can launch
46268
+ # without being upgraded.
46269
+ # @return [Array<String>]
46270
+ #
46271
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MacHost AWS API Documentation
46272
+ #
46273
+ class MacHost < Struct.new(
46274
+ :host_id,
46275
+ :mac_os_latest_supported_versions)
46276
+ SENSITIVE = []
46277
+ include Aws::Structure
46278
+ end
46279
+
46206
46280
  # Details for Site-to-Site VPN tunnel endpoint maintenance events.
46207
46281
  #
46208
46282
  # @!attribute [rw] pending_maintenance
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.443.0'
79
+ GEM_VERSION = '1.444.0'
80
80
 
81
81
  end
data/sig/client.rbs CHANGED
@@ -6212,6 +6212,25 @@ module Aws
6212
6212
  ) -> _DescribeLockedSnapshotsResponseSuccess
6213
6213
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeLockedSnapshotsResponseSuccess
6214
6214
 
6215
+ interface _DescribeMacHostsResponseSuccess
6216
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeMacHostsResult]
6217
+ def mac_hosts: () -> ::Array[Types::MacHost]
6218
+ def next_token: () -> ::String
6219
+ end
6220
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#describe_mac_hosts-instance_method
6221
+ def describe_mac_hosts: (
6222
+ ?filters: Array[
6223
+ {
6224
+ name: ::String?,
6225
+ values: Array[::String]?
6226
+ },
6227
+ ],
6228
+ ?host_ids: Array[::String],
6229
+ ?max_results: ::Integer,
6230
+ ?next_token: ::String
6231
+ ) -> _DescribeMacHostsResponseSuccess
6232
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeMacHostsResponseSuccess
6233
+
6215
6234
  interface _DescribeManagedPrefixListsResponseSuccess
6216
6235
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeManagedPrefixListsResult]
6217
6236
  def next_token: () -> ::String
data/sig/types.rbs CHANGED
@@ -5000,6 +5000,20 @@ module Aws::EC2
5000
5000
  SENSITIVE: []
5001
5001
  end
5002
5002
 
5003
+ class DescribeMacHostsRequest
5004
+ attr_accessor filters: ::Array[Types::Filter]
5005
+ attr_accessor host_ids: ::Array[::String]
5006
+ attr_accessor max_results: ::Integer
5007
+ attr_accessor next_token: ::String
5008
+ SENSITIVE: []
5009
+ end
5010
+
5011
+ class DescribeMacHostsResult
5012
+ attr_accessor mac_hosts: ::Array[Types::MacHost]
5013
+ attr_accessor next_token: ::String
5014
+ SENSITIVE: []
5015
+ end
5016
+
5003
5017
  class DescribeManagedPrefixListsRequest
5004
5018
  attr_accessor dry_run: bool
5005
5019
  attr_accessor filters: ::Array[Types::Filter]
@@ -10099,6 +10113,12 @@ module Aws::EC2
10099
10113
  SENSITIVE: []
10100
10114
  end
10101
10115
 
10116
+ class MacHost
10117
+ attr_accessor host_id: ::String
10118
+ attr_accessor mac_os_latest_supported_versions: ::Array[::String]
10119
+ SENSITIVE: []
10120
+ end
10121
+
10102
10122
  class MaintenanceDetails
10103
10123
  attr_accessor pending_maintenance: ::String
10104
10124
  attr_accessor maintenance_auto_applied_after: ::Time
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.443.0
4
+ version: 1.444.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: 2024-03-15 00:00:00.000000000 Z
11
+ date: 2024-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core