aws-sdk-ec2 1.566.0 → 1.567.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +123 -4
- data/lib/aws-sdk-ec2/client_api.rb +39 -0
- data/lib/aws-sdk-ec2/types.rb +155 -2
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +20 -0
- data/sig/types.rbs +27 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 423ea3e7f50369e047ef337ab463659865ff16b3f027f629b513167f0351cccf
|
|
4
|
+
data.tar.gz: d61b4add4e169aa5d10116c650c84b169dace57f089029dba4933876e0f6f27d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6acebf2f29a556f721d1304e57aacd95c484b220e297f17202dee25143fea4e7dad836e1a5a09411de5b42c28b9f56af4dea21777d544a67a554d9e65dac385
|
|
7
|
+
data.tar.gz: 530b66cc7d03e60b49380c898ee3c1477a8fe0e000dbe9525d9ff82fc2fcdd42ddabe9d47dcc830896a797c00db2ccb6e65832db27d02047025ba183cc51abf6
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.567.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
|
@@ -24167,6 +24167,125 @@ module Aws::EC2
|
|
|
24167
24167
|
req.send_request(options)
|
|
24168
24168
|
end
|
|
24169
24169
|
|
|
24170
|
+
# Describes a tree-based hierarchy that represents the physical host
|
|
24171
|
+
# placement of your pending or active Capacity Reservations within an
|
|
24172
|
+
# Availability Zone or Local Zone. You can use this information to
|
|
24173
|
+
# determine the relative proximity of your capacity within the Amazon
|
|
24174
|
+
# Web Services network before it is launched and use this information to
|
|
24175
|
+
# allocate capacity together to support your tightly coupled workloads.
|
|
24176
|
+
#
|
|
24177
|
+
# Capacity Reservation topology is supported for specific instance types
|
|
24178
|
+
# only. For more information, see [Prerequisites for Amazon EC2 instance
|
|
24179
|
+
# topology][1] in the *Amazon EC2 User Guide*.
|
|
24180
|
+
#
|
|
24181
|
+
# <note markdown="1"> The Amazon EC2 API follows an eventual consistency model due to the
|
|
24182
|
+
# distributed nature of the system supporting it. As a result, when you
|
|
24183
|
+
# call the DescribeCapacityReservationTopology API command immediately
|
|
24184
|
+
# after launching instances, the response might return a `null` value
|
|
24185
|
+
# for `capacityBlockId` because the data might not have fully propagated
|
|
24186
|
+
# across all subsystems. For more information, see [Eventual consistency
|
|
24187
|
+
# in the Amazon EC2 API][2] in the *Amazon EC2 Developer Guide*.
|
|
24188
|
+
#
|
|
24189
|
+
# </note>
|
|
24190
|
+
#
|
|
24191
|
+
# For more information, see [Amazon EC2 topology][3] in the *Amazon EC2
|
|
24192
|
+
# User Guide*.
|
|
24193
|
+
#
|
|
24194
|
+
#
|
|
24195
|
+
#
|
|
24196
|
+
#
|
|
24197
|
+
#
|
|
24198
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-topology-prerequisites.html
|
|
24199
|
+
# [2]: https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html
|
|
24200
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-topology.html
|
|
24201
|
+
#
|
|
24202
|
+
# @option params [Boolean] :dry_run
|
|
24203
|
+
# Checks whether you have the required permissions for the operation,
|
|
24204
|
+
# without actually making the request, and provides an error response.
|
|
24205
|
+
# If you have the required permissions, the error response is
|
|
24206
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
24207
|
+
#
|
|
24208
|
+
# @option params [String] :next_token
|
|
24209
|
+
# The token returned from a previous paginated request. Pagination
|
|
24210
|
+
# continues from the end of the items returned by the previous request.
|
|
24211
|
+
#
|
|
24212
|
+
# @option params [Integer] :max_results
|
|
24213
|
+
# The maximum number of items to return for this request. To get the
|
|
24214
|
+
# next page of items, make another request with the token returned in
|
|
24215
|
+
# the output. For more information, see [Pagination][1].
|
|
24216
|
+
#
|
|
24217
|
+
# You can't specify this parameter and the Capacity Reservation IDs
|
|
24218
|
+
# parameter in the same request.
|
|
24219
|
+
#
|
|
24220
|
+
# Default: `10`
|
|
24221
|
+
#
|
|
24222
|
+
#
|
|
24223
|
+
#
|
|
24224
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
|
24225
|
+
#
|
|
24226
|
+
# @option params [Array<String>] :capacity_reservation_ids
|
|
24227
|
+
# The Capacity Reservation IDs.
|
|
24228
|
+
#
|
|
24229
|
+
# Default: Describes all your Capacity Reservations.
|
|
24230
|
+
#
|
|
24231
|
+
# Constraints: Maximum 100 explicitly specified Capacity Reservation
|
|
24232
|
+
# IDs.
|
|
24233
|
+
#
|
|
24234
|
+
# @option params [Array<Types::Filter>] :filters
|
|
24235
|
+
# The filters.
|
|
24236
|
+
#
|
|
24237
|
+
# * `availability-zone` - The name of the Availability Zone (for
|
|
24238
|
+
# example, `us-west-2a`) or Local Zone (for example,
|
|
24239
|
+
# `us-west-2-lax-1b`) that the Capacity Reservation is in.
|
|
24240
|
+
#
|
|
24241
|
+
# * `instance-type` - The instance type (for example, `p4d.24xlarge`) or
|
|
24242
|
+
# instance family (for example, `p4d*`). You can use the `*` wildcard
|
|
24243
|
+
# to match zero or more characters, or the `?` wildcard to match zero
|
|
24244
|
+
# or one character.
|
|
24245
|
+
#
|
|
24246
|
+
# @return [Types::DescribeCapacityReservationTopologyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
24247
|
+
#
|
|
24248
|
+
# * {Types::DescribeCapacityReservationTopologyResult#next_token #next_token} => String
|
|
24249
|
+
# * {Types::DescribeCapacityReservationTopologyResult#capacity_reservations #capacity_reservations} => Array<Types::CapacityReservationTopology>
|
|
24250
|
+
#
|
|
24251
|
+
# @example Request syntax with placeholder values
|
|
24252
|
+
#
|
|
24253
|
+
# resp = client.describe_capacity_reservation_topology({
|
|
24254
|
+
# dry_run: false,
|
|
24255
|
+
# next_token: "String",
|
|
24256
|
+
# max_results: 1,
|
|
24257
|
+
# capacity_reservation_ids: ["CapacityReservationId"],
|
|
24258
|
+
# filters: [
|
|
24259
|
+
# {
|
|
24260
|
+
# name: "String",
|
|
24261
|
+
# values: ["String"],
|
|
24262
|
+
# },
|
|
24263
|
+
# ],
|
|
24264
|
+
# })
|
|
24265
|
+
#
|
|
24266
|
+
# @example Response structure
|
|
24267
|
+
#
|
|
24268
|
+
# resp.next_token #=> String
|
|
24269
|
+
# resp.capacity_reservations #=> Array
|
|
24270
|
+
# resp.capacity_reservations[0].capacity_reservation_id #=> String
|
|
24271
|
+
# resp.capacity_reservations[0].capacity_block_id #=> String
|
|
24272
|
+
# resp.capacity_reservations[0].state #=> String
|
|
24273
|
+
# resp.capacity_reservations[0].instance_type #=> String
|
|
24274
|
+
# resp.capacity_reservations[0].group_name #=> String
|
|
24275
|
+
# resp.capacity_reservations[0].network_nodes #=> Array
|
|
24276
|
+
# resp.capacity_reservations[0].network_nodes[0] #=> String
|
|
24277
|
+
# resp.capacity_reservations[0].availability_zone_id #=> String
|
|
24278
|
+
# resp.capacity_reservations[0].availability_zone #=> String
|
|
24279
|
+
#
|
|
24280
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservationTopology AWS API Documentation
|
|
24281
|
+
#
|
|
24282
|
+
# @overload describe_capacity_reservation_topology(params = {})
|
|
24283
|
+
# @param [Hash] params ({})
|
|
24284
|
+
def describe_capacity_reservation_topology(params = {}, options = {})
|
|
24285
|
+
req = build_request(:describe_capacity_reservation_topology, params)
|
|
24286
|
+
req.send_request(options)
|
|
24287
|
+
end
|
|
24288
|
+
|
|
24170
24289
|
# Describes one or more of your Capacity Reservations. The results
|
|
24171
24290
|
# describe only the Capacity Reservations in the Amazon Web Services
|
|
24172
24291
|
# Region that you're currently using.
|
|
@@ -29121,7 +29240,7 @@ module Aws::EC2
|
|
|
29121
29240
|
# support your tightly coupled workloads.
|
|
29122
29241
|
#
|
|
29123
29242
|
# Instance topology is supported for specific instance types only. For
|
|
29124
|
-
# more information, see [
|
|
29243
|
+
# more information, see [Prerequisites for Amazon EC2 instance
|
|
29125
29244
|
# topology][1] in the *Amazon EC2 User Guide*.
|
|
29126
29245
|
#
|
|
29127
29246
|
# <note markdown="1"> The Amazon EC2 API follows an eventual consistency model due to the
|
|
@@ -29134,8 +29253,8 @@ module Aws::EC2
|
|
|
29134
29253
|
#
|
|
29135
29254
|
# </note>
|
|
29136
29255
|
#
|
|
29137
|
-
# For more information, see [Amazon EC2
|
|
29138
|
-
#
|
|
29256
|
+
# For more information, see [Amazon EC2 topology][3] in the *Amazon EC2
|
|
29257
|
+
# User Guide*.
|
|
29139
29258
|
#
|
|
29140
29259
|
#
|
|
29141
29260
|
#
|
|
@@ -67935,7 +68054,7 @@ module Aws::EC2
|
|
|
67935
68054
|
tracer: tracer
|
|
67936
68055
|
)
|
|
67937
68056
|
context[:gem_name] = 'aws-sdk-ec2'
|
|
67938
|
-
context[:gem_version] = '1.
|
|
68057
|
+
context[:gem_version] = '1.567.0'
|
|
67939
68058
|
Seahorse::Client::Request.new(handlers, context)
|
|
67940
68059
|
end
|
|
67941
68060
|
|
|
@@ -362,6 +362,8 @@ module Aws::EC2
|
|
|
362
362
|
CapacityReservationTarget = Shapes::StructureShape.new(name: 'CapacityReservationTarget')
|
|
363
363
|
CapacityReservationTargetResponse = Shapes::StructureShape.new(name: 'CapacityReservationTargetResponse')
|
|
364
364
|
CapacityReservationTenancy = Shapes::StringShape.new(name: 'CapacityReservationTenancy')
|
|
365
|
+
CapacityReservationTopology = Shapes::StructureShape.new(name: 'CapacityReservationTopology')
|
|
366
|
+
CapacityReservationTopologySet = Shapes::ListShape.new(name: 'CapacityReservationTopologySet')
|
|
365
367
|
CapacityReservationType = Shapes::StringShape.new(name: 'CapacityReservationType')
|
|
366
368
|
CapacityTenancy = Shapes::StringShape.new(name: 'CapacityTenancy')
|
|
367
369
|
CarrierGateway = Shapes::StructureShape.new(name: 'CarrierGateway')
|
|
@@ -936,6 +938,9 @@ module Aws::EC2
|
|
|
936
938
|
DescribeCapacityReservationFleetsMaxResults = Shapes::IntegerShape.new(name: 'DescribeCapacityReservationFleetsMaxResults')
|
|
937
939
|
DescribeCapacityReservationFleetsRequest = Shapes::StructureShape.new(name: 'DescribeCapacityReservationFleetsRequest')
|
|
938
940
|
DescribeCapacityReservationFleetsResult = Shapes::StructureShape.new(name: 'DescribeCapacityReservationFleetsResult')
|
|
941
|
+
DescribeCapacityReservationTopologyMaxResults = Shapes::IntegerShape.new(name: 'DescribeCapacityReservationTopologyMaxResults')
|
|
942
|
+
DescribeCapacityReservationTopologyRequest = Shapes::StructureShape.new(name: 'DescribeCapacityReservationTopologyRequest')
|
|
943
|
+
DescribeCapacityReservationTopologyResult = Shapes::StructureShape.new(name: 'DescribeCapacityReservationTopologyResult')
|
|
939
944
|
DescribeCapacityReservationsMaxResults = Shapes::IntegerShape.new(name: 'DescribeCapacityReservationsMaxResults')
|
|
940
945
|
DescribeCapacityReservationsRequest = Shapes::StructureShape.new(name: 'DescribeCapacityReservationsRequest')
|
|
941
946
|
DescribeCapacityReservationsResult = Shapes::StructureShape.new(name: 'DescribeCapacityReservationsResult')
|
|
@@ -2655,6 +2660,7 @@ module Aws::EC2
|
|
|
2655
2660
|
NetworkInterfacePrivateIpAddressList = Shapes::ListShape.new(name: 'NetworkInterfacePrivateIpAddressList')
|
|
2656
2661
|
NetworkInterfaceStatus = Shapes::StringShape.new(name: 'NetworkInterfaceStatus')
|
|
2657
2662
|
NetworkInterfaceType = Shapes::StringShape.new(name: 'NetworkInterfaceType')
|
|
2663
|
+
NetworkNodeSet = Shapes::ListShape.new(name: 'NetworkNodeSet')
|
|
2658
2664
|
NetworkNodesList = Shapes::ListShape.new(name: 'NetworkNodesList')
|
|
2659
2665
|
NetworkPerformance = Shapes::StringShape.new(name: 'NetworkPerformance')
|
|
2660
2666
|
NeuronDeviceCoreCount = Shapes::IntegerShape.new(name: 'NeuronDeviceCoreCount')
|
|
@@ -4919,6 +4925,18 @@ module Aws::EC2
|
|
|
4919
4925
|
CapacityReservationTargetResponse.add_member(:capacity_reservation_resource_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "capacityReservationResourceGroupArn"))
|
|
4920
4926
|
CapacityReservationTargetResponse.struct_class = Types::CapacityReservationTargetResponse
|
|
4921
4927
|
|
|
4928
|
+
CapacityReservationTopology.add_member(:capacity_reservation_id, Shapes::ShapeRef.new(shape: String, location_name: "capacityReservationId"))
|
|
4929
|
+
CapacityReservationTopology.add_member(:capacity_block_id, Shapes::ShapeRef.new(shape: String, location_name: "capacityBlockId"))
|
|
4930
|
+
CapacityReservationTopology.add_member(:state, Shapes::ShapeRef.new(shape: String, location_name: "state"))
|
|
4931
|
+
CapacityReservationTopology.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
|
4932
|
+
CapacityReservationTopology.add_member(:group_name, Shapes::ShapeRef.new(shape: String, location_name: "groupName"))
|
|
4933
|
+
CapacityReservationTopology.add_member(:network_nodes, Shapes::ShapeRef.new(shape: NetworkNodeSet, location_name: "networkNodeSet"))
|
|
4934
|
+
CapacityReservationTopology.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZoneId"))
|
|
4935
|
+
CapacityReservationTopology.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
|
|
4936
|
+
CapacityReservationTopology.struct_class = Types::CapacityReservationTopology
|
|
4937
|
+
|
|
4938
|
+
CapacityReservationTopologySet.member = Shapes::ShapeRef.new(shape: CapacityReservationTopology, location_name: "item")
|
|
4939
|
+
|
|
4922
4940
|
CarrierGateway.add_member(:carrier_gateway_id, Shapes::ShapeRef.new(shape: CarrierGatewayId, location_name: "carrierGatewayId"))
|
|
4923
4941
|
CarrierGateway.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
|
|
4924
4942
|
CarrierGateway.add_member(:state, Shapes::ShapeRef.new(shape: CarrierGatewayState, location_name: "state"))
|
|
@@ -7457,6 +7475,17 @@ module Aws::EC2
|
|
|
7457
7475
|
DescribeCapacityReservationFleetsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
7458
7476
|
DescribeCapacityReservationFleetsResult.struct_class = Types::DescribeCapacityReservationFleetsResult
|
|
7459
7477
|
|
|
7478
|
+
DescribeCapacityReservationTopologyRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
|
7479
|
+
DescribeCapacityReservationTopologyRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
|
7480
|
+
DescribeCapacityReservationTopologyRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeCapacityReservationTopologyMaxResults, location_name: "MaxResults"))
|
|
7481
|
+
DescribeCapacityReservationTopologyRequest.add_member(:capacity_reservation_ids, Shapes::ShapeRef.new(shape: CapacityReservationIdSet, location_name: "CapacityReservationId"))
|
|
7482
|
+
DescribeCapacityReservationTopologyRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
|
7483
|
+
DescribeCapacityReservationTopologyRequest.struct_class = Types::DescribeCapacityReservationTopologyRequest
|
|
7484
|
+
|
|
7485
|
+
DescribeCapacityReservationTopologyResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
7486
|
+
DescribeCapacityReservationTopologyResult.add_member(:capacity_reservations, Shapes::ShapeRef.new(shape: CapacityReservationTopologySet, location_name: "capacityReservationSet"))
|
|
7487
|
+
DescribeCapacityReservationTopologyResult.struct_class = Types::DescribeCapacityReservationTopologyResult
|
|
7488
|
+
|
|
7460
7489
|
DescribeCapacityReservationsRequest.add_member(:capacity_reservation_ids, Shapes::ShapeRef.new(shape: CapacityReservationIdSet, location_name: "CapacityReservationId"))
|
|
7461
7490
|
DescribeCapacityReservationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
|
7462
7491
|
DescribeCapacityReservationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeCapacityReservationsMaxResults, location_name: "MaxResults"))
|
|
@@ -14401,6 +14430,8 @@ module Aws::EC2
|
|
|
14401
14430
|
|
|
14402
14431
|
NetworkInterfacePrivateIpAddressList.member = Shapes::ShapeRef.new(shape: NetworkInterfacePrivateIpAddress, location_name: "item")
|
|
14403
14432
|
|
|
14433
|
+
NetworkNodeSet.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
|
|
14434
|
+
|
|
14404
14435
|
NetworkNodesList.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
|
|
14405
14436
|
|
|
14406
14437
|
NeuronDeviceCoreInfo.add_member(:count, Shapes::ShapeRef.new(shape: NeuronDeviceCoreCount, location_name: "count"))
|
|
@@ -20341,6 +20372,14 @@ module Aws::EC2
|
|
|
20341
20372
|
)
|
|
20342
20373
|
end)
|
|
20343
20374
|
|
|
20375
|
+
api.add_operation(:describe_capacity_reservation_topology, Seahorse::Model::Operation.new.tap do |o|
|
|
20376
|
+
o.name = "DescribeCapacityReservationTopology"
|
|
20377
|
+
o.http_method = "POST"
|
|
20378
|
+
o.http_request_uri = "/"
|
|
20379
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeCapacityReservationTopologyRequest)
|
|
20380
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeCapacityReservationTopologyResult)
|
|
20381
|
+
end)
|
|
20382
|
+
|
|
20344
20383
|
api.add_operation(:describe_capacity_reservations, Seahorse::Model::Operation.new.tap do |o|
|
|
20345
20384
|
o.name = "DescribeCapacityReservations"
|
|
20346
20385
|
o.http_method = "POST"
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
|
@@ -6213,6 +6213,73 @@ module Aws::EC2
|
|
|
6213
6213
|
include Aws::Structure
|
|
6214
6214
|
end
|
|
6215
6215
|
|
|
6216
|
+
# Information about the Capacity Reservation topology.
|
|
6217
|
+
#
|
|
6218
|
+
# @!attribute [rw] capacity_reservation_id
|
|
6219
|
+
# The ID of the Capacity Reservation.
|
|
6220
|
+
# @return [String]
|
|
6221
|
+
#
|
|
6222
|
+
# @!attribute [rw] capacity_block_id
|
|
6223
|
+
# The ID of the Capacity Block. This parameter is only supported for
|
|
6224
|
+
# UltraServer instances and identifies instances within the
|
|
6225
|
+
# UltraServer domain.
|
|
6226
|
+
# @return [String]
|
|
6227
|
+
#
|
|
6228
|
+
# @!attribute [rw] state
|
|
6229
|
+
# The current state of the Capacity Reservation. For the list of
|
|
6230
|
+
# possible states, see [DescribeCapacityReservations][1].
|
|
6231
|
+
#
|
|
6232
|
+
#
|
|
6233
|
+
#
|
|
6234
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeCapacityReservations.html
|
|
6235
|
+
# @return [String]
|
|
6236
|
+
#
|
|
6237
|
+
# @!attribute [rw] instance_type
|
|
6238
|
+
# The instance type.
|
|
6239
|
+
# @return [String]
|
|
6240
|
+
#
|
|
6241
|
+
# @!attribute [rw] group_name
|
|
6242
|
+
# The name of the placement group that the Capacity Reservation is in.
|
|
6243
|
+
# @return [String]
|
|
6244
|
+
#
|
|
6245
|
+
# @!attribute [rw] network_nodes
|
|
6246
|
+
# The network nodes. The nodes are hashed based on your account.
|
|
6247
|
+
# Capacity Reservations from different accounts running under the same
|
|
6248
|
+
# server will return a different hashed list of strings.
|
|
6249
|
+
#
|
|
6250
|
+
# The value is `null` or empty if:
|
|
6251
|
+
#
|
|
6252
|
+
# * The instance type is not supported.
|
|
6253
|
+
#
|
|
6254
|
+
# * The Capacity Reservation is in a state other than `active` or
|
|
6255
|
+
# `pending`.
|
|
6256
|
+
# @return [Array<String>]
|
|
6257
|
+
#
|
|
6258
|
+
# @!attribute [rw] availability_zone_id
|
|
6259
|
+
# The ID of the Availability Zone or Local Zone that the Capacity
|
|
6260
|
+
# Reservation is in.
|
|
6261
|
+
# @return [String]
|
|
6262
|
+
#
|
|
6263
|
+
# @!attribute [rw] availability_zone
|
|
6264
|
+
# The name of the Availability Zone or Local Zone that the Capacity
|
|
6265
|
+
# Reservation is in.
|
|
6266
|
+
# @return [String]
|
|
6267
|
+
#
|
|
6268
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationTopology AWS API Documentation
|
|
6269
|
+
#
|
|
6270
|
+
class CapacityReservationTopology < Struct.new(
|
|
6271
|
+
:capacity_reservation_id,
|
|
6272
|
+
:capacity_block_id,
|
|
6273
|
+
:state,
|
|
6274
|
+
:instance_type,
|
|
6275
|
+
:group_name,
|
|
6276
|
+
:network_nodes,
|
|
6277
|
+
:availability_zone_id,
|
|
6278
|
+
:availability_zone)
|
|
6279
|
+
SENSITIVE = []
|
|
6280
|
+
include Aws::Structure
|
|
6281
|
+
end
|
|
6282
|
+
|
|
6216
6283
|
# Describes a carrier gateway.
|
|
6217
6284
|
#
|
|
6218
6285
|
# @!attribute [rw] carrier_gateway_id
|
|
@@ -20853,6 +20920,86 @@ module Aws::EC2
|
|
|
20853
20920
|
include Aws::Structure
|
|
20854
20921
|
end
|
|
20855
20922
|
|
|
20923
|
+
# @!attribute [rw] dry_run
|
|
20924
|
+
# Checks whether you have the required permissions for the operation,
|
|
20925
|
+
# without actually making the request, and provides an error response.
|
|
20926
|
+
# If you have the required permissions, the error response is
|
|
20927
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
20928
|
+
# @return [Boolean]
|
|
20929
|
+
#
|
|
20930
|
+
# @!attribute [rw] next_token
|
|
20931
|
+
# The token returned from a previous paginated request. Pagination
|
|
20932
|
+
# continues from the end of the items returned by the previous
|
|
20933
|
+
# request.
|
|
20934
|
+
# @return [String]
|
|
20935
|
+
#
|
|
20936
|
+
# @!attribute [rw] max_results
|
|
20937
|
+
# The maximum number of items to return for this request. To get the
|
|
20938
|
+
# next page of items, make another request with the token returned in
|
|
20939
|
+
# the output. For more information, see [Pagination][1].
|
|
20940
|
+
#
|
|
20941
|
+
# You can't specify this parameter and the Capacity Reservation IDs
|
|
20942
|
+
# parameter in the same request.
|
|
20943
|
+
#
|
|
20944
|
+
# Default: `10`
|
|
20945
|
+
#
|
|
20946
|
+
#
|
|
20947
|
+
#
|
|
20948
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
|
20949
|
+
# @return [Integer]
|
|
20950
|
+
#
|
|
20951
|
+
# @!attribute [rw] capacity_reservation_ids
|
|
20952
|
+
# The Capacity Reservation IDs.
|
|
20953
|
+
#
|
|
20954
|
+
# Default: Describes all your Capacity Reservations.
|
|
20955
|
+
#
|
|
20956
|
+
# Constraints: Maximum 100 explicitly specified Capacity Reservation
|
|
20957
|
+
# IDs.
|
|
20958
|
+
# @return [Array<String>]
|
|
20959
|
+
#
|
|
20960
|
+
# @!attribute [rw] filters
|
|
20961
|
+
# The filters.
|
|
20962
|
+
#
|
|
20963
|
+
# * `availability-zone` - The name of the Availability Zone (for
|
|
20964
|
+
# example, `us-west-2a`) or Local Zone (for example,
|
|
20965
|
+
# `us-west-2-lax-1b`) that the Capacity Reservation is in.
|
|
20966
|
+
#
|
|
20967
|
+
# * `instance-type` - The instance type (for example, `p4d.24xlarge`)
|
|
20968
|
+
# or instance family (for example, `p4d*`). You can use the `*`
|
|
20969
|
+
# wildcard to match zero or more characters, or the `?` wildcard to
|
|
20970
|
+
# match zero or one character.
|
|
20971
|
+
# @return [Array<Types::Filter>]
|
|
20972
|
+
#
|
|
20973
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservationTopologyRequest AWS API Documentation
|
|
20974
|
+
#
|
|
20975
|
+
class DescribeCapacityReservationTopologyRequest < Struct.new(
|
|
20976
|
+
:dry_run,
|
|
20977
|
+
:next_token,
|
|
20978
|
+
:max_results,
|
|
20979
|
+
:capacity_reservation_ids,
|
|
20980
|
+
:filters)
|
|
20981
|
+
SENSITIVE = []
|
|
20982
|
+
include Aws::Structure
|
|
20983
|
+
end
|
|
20984
|
+
|
|
20985
|
+
# @!attribute [rw] next_token
|
|
20986
|
+
# The token to include in another request to get the next page of
|
|
20987
|
+
# items. This value is `null` when there are no more items to return.
|
|
20988
|
+
# @return [String]
|
|
20989
|
+
#
|
|
20990
|
+
# @!attribute [rw] capacity_reservations
|
|
20991
|
+
# Information about the topology of each Capacity Reservation.
|
|
20992
|
+
# @return [Array<Types::CapacityReservationTopology>]
|
|
20993
|
+
#
|
|
20994
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservationTopologyResult AWS API Documentation
|
|
20995
|
+
#
|
|
20996
|
+
class DescribeCapacityReservationTopologyResult < Struct.new(
|
|
20997
|
+
:next_token,
|
|
20998
|
+
:capacity_reservations)
|
|
20999
|
+
SENSITIVE = []
|
|
21000
|
+
include Aws::Structure
|
|
21001
|
+
end
|
|
21002
|
+
|
|
20856
21003
|
# @!attribute [rw] capacity_reservation_ids
|
|
20857
21004
|
# The ID of the Capacity Reservation.
|
|
20858
21005
|
# @return [Array<String>]
|
|
@@ -49506,6 +49653,12 @@ module Aws::EC2
|
|
|
49506
49653
|
# The network nodes. The nodes are hashed based on your account.
|
|
49507
49654
|
# Instances from different accounts running under the same server will
|
|
49508
49655
|
# return a different hashed list of strings.
|
|
49656
|
+
#
|
|
49657
|
+
# The value is `null` or empty if:
|
|
49658
|
+
#
|
|
49659
|
+
# * The instance type is not supported.
|
|
49660
|
+
#
|
|
49661
|
+
# * The instance is in a state other than `running`.
|
|
49509
49662
|
# @return [Array<String>]
|
|
49510
49663
|
#
|
|
49511
49664
|
# @!attribute [rw] availability_zone
|
|
@@ -49520,8 +49673,8 @@ module Aws::EC2
|
|
|
49520
49673
|
#
|
|
49521
49674
|
# @!attribute [rw] capacity_block_id
|
|
49522
49675
|
# The ID of the Capacity Block. This parameter is only supported for
|
|
49523
|
-
#
|
|
49524
|
-
#
|
|
49676
|
+
# UltraServer instances and identifies instances within the
|
|
49677
|
+
# UltraServer domain.
|
|
49525
49678
|
# @return [String]
|
|
49526
49679
|
#
|
|
49527
49680
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceTopology AWS API Documentation
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -5826,6 +5826,26 @@ module Aws
|
|
|
5826
5826
|
) -> _DescribeCapacityReservationFleetsResponseSuccess
|
|
5827
5827
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeCapacityReservationFleetsResponseSuccess
|
|
5828
5828
|
|
|
5829
|
+
interface _DescribeCapacityReservationTopologyResponseSuccess
|
|
5830
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeCapacityReservationTopologyResult]
|
|
5831
|
+
def next_token: () -> ::String
|
|
5832
|
+
def capacity_reservations: () -> ::Array[Types::CapacityReservationTopology]
|
|
5833
|
+
end
|
|
5834
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#describe_capacity_reservation_topology-instance_method
|
|
5835
|
+
def describe_capacity_reservation_topology: (
|
|
5836
|
+
?dry_run: bool,
|
|
5837
|
+
?next_token: ::String,
|
|
5838
|
+
?max_results: ::Integer,
|
|
5839
|
+
?capacity_reservation_ids: Array[::String],
|
|
5840
|
+
?filters: Array[
|
|
5841
|
+
{
|
|
5842
|
+
name: ::String?,
|
|
5843
|
+
values: Array[::String]?
|
|
5844
|
+
},
|
|
5845
|
+
]
|
|
5846
|
+
) -> _DescribeCapacityReservationTopologyResponseSuccess
|
|
5847
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeCapacityReservationTopologyResponseSuccess
|
|
5848
|
+
|
|
5829
5849
|
interface _DescribeCapacityReservationsResponseSuccess
|
|
5830
5850
|
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeCapacityReservationsResult]
|
|
5831
5851
|
def next_token: () -> ::String
|
data/sig/types.rbs
CHANGED
|
@@ -1460,6 +1460,18 @@ module Aws::EC2
|
|
|
1460
1460
|
SENSITIVE: []
|
|
1461
1461
|
end
|
|
1462
1462
|
|
|
1463
|
+
class CapacityReservationTopology
|
|
1464
|
+
attr_accessor capacity_reservation_id: ::String
|
|
1465
|
+
attr_accessor capacity_block_id: ::String
|
|
1466
|
+
attr_accessor state: ::String
|
|
1467
|
+
attr_accessor instance_type: ::String
|
|
1468
|
+
attr_accessor group_name: ::String
|
|
1469
|
+
attr_accessor network_nodes: ::Array[::String]
|
|
1470
|
+
attr_accessor availability_zone_id: ::String
|
|
1471
|
+
attr_accessor availability_zone: ::String
|
|
1472
|
+
SENSITIVE: []
|
|
1473
|
+
end
|
|
1474
|
+
|
|
1463
1475
|
class CarrierGateway
|
|
1464
1476
|
attr_accessor carrier_gateway_id: ::String
|
|
1465
1477
|
attr_accessor vpc_id: ::String
|
|
@@ -4856,6 +4868,21 @@ module Aws::EC2
|
|
|
4856
4868
|
SENSITIVE: []
|
|
4857
4869
|
end
|
|
4858
4870
|
|
|
4871
|
+
class DescribeCapacityReservationTopologyRequest
|
|
4872
|
+
attr_accessor dry_run: bool
|
|
4873
|
+
attr_accessor next_token: ::String
|
|
4874
|
+
attr_accessor max_results: ::Integer
|
|
4875
|
+
attr_accessor capacity_reservation_ids: ::Array[::String]
|
|
4876
|
+
attr_accessor filters: ::Array[Types::Filter]
|
|
4877
|
+
SENSITIVE: []
|
|
4878
|
+
end
|
|
4879
|
+
|
|
4880
|
+
class DescribeCapacityReservationTopologyResult
|
|
4881
|
+
attr_accessor next_token: ::String
|
|
4882
|
+
attr_accessor capacity_reservations: ::Array[Types::CapacityReservationTopology]
|
|
4883
|
+
SENSITIVE: []
|
|
4884
|
+
end
|
|
4885
|
+
|
|
4859
4886
|
class DescribeCapacityReservationsRequest
|
|
4860
4887
|
attr_accessor capacity_reservation_ids: ::Array[::String]
|
|
4861
4888
|
attr_accessor next_token: ::String
|