aws-sdk-ec2 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +888 -317
- data/lib/aws-sdk-ec2/client_api.rb +280 -8
- data/lib/aws-sdk-ec2/instance.rb +16 -11
- data/lib/aws-sdk-ec2/network_acl.rb +37 -12
- data/lib/aws-sdk-ec2/network_interface.rb +8 -2
- data/lib/aws-sdk-ec2/placement_group.rb +100 -95
- data/lib/aws-sdk-ec2/resource.rb +242 -156
- data/lib/aws-sdk-ec2/route.rb +24 -1
- data/lib/aws-sdk-ec2/route_table.rb +11 -4
- data/lib/aws-sdk-ec2/security_group.rb +34 -10
- data/lib/aws-sdk-ec2/subnet.rb +202 -143
- data/lib/aws-sdk-ec2/types.rb +1191 -340
- data/lib/aws-sdk-ec2/vpc.rb +164 -122
- metadata +2 -2
data/lib/aws-sdk-ec2/route.rb
CHANGED
@@ -104,6 +104,18 @@ module Aws
|
|
104
104
|
data.origin
|
105
105
|
end
|
106
106
|
|
107
|
+
# The IPv6 CIDR block used for the destination match.
|
108
|
+
# @return [String]
|
109
|
+
def destination_ipv_6_cidr_block
|
110
|
+
data.destination_ipv_6_cidr_block
|
111
|
+
end
|
112
|
+
|
113
|
+
# The ID of the egress-only Internet gateway.
|
114
|
+
# @return [String]
|
115
|
+
def egress_only_internet_gateway_id
|
116
|
+
data.egress_only_internet_gateway_id
|
117
|
+
end
|
118
|
+
|
107
119
|
# @!endgroup
|
108
120
|
|
109
121
|
# @return [Client]
|
@@ -140,6 +152,7 @@ module Aws
|
|
140
152
|
#
|
141
153
|
# route.delete({
|
142
154
|
# dry_run: false,
|
155
|
+
# destination_ipv_6_cidr_block: "String",
|
143
156
|
# })
|
144
157
|
# @param [Hash] options ({})
|
145
158
|
# @option options [Boolean] :dry_run
|
@@ -147,6 +160,9 @@ module Aws
|
|
147
160
|
# without actually making the request, and provides an error response.
|
148
161
|
# If you have the required permissions, the error response is
|
149
162
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
163
|
+
# @option options [String] :destination_ipv_6_cidr_block
|
164
|
+
# The IPv6 CIDR range for the route. The value you specify must match
|
165
|
+
# the CIDR for the route exactly.
|
150
166
|
# @return [EmptyStructure]
|
151
167
|
def delete(options = {})
|
152
168
|
options = options.merge(
|
@@ -162,6 +178,8 @@ module Aws
|
|
162
178
|
# route.replace({
|
163
179
|
# dry_run: false,
|
164
180
|
# gateway_id: "String",
|
181
|
+
# destination_ipv_6_cidr_block: "String",
|
182
|
+
# egress_only_internet_gateway_id: "String",
|
165
183
|
# instance_id: "String",
|
166
184
|
# network_interface_id: "String",
|
167
185
|
# vpc_peering_connection_id: "String",
|
@@ -175,6 +193,11 @@ module Aws
|
|
175
193
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
176
194
|
# @option options [String] :gateway_id
|
177
195
|
# The ID of an Internet gateway or virtual private gateway.
|
196
|
+
# @option options [String] :destination_ipv_6_cidr_block
|
197
|
+
# The IPv6 CIDR address block used for the destination match. The value
|
198
|
+
# you provide must match the CIDR of an existing route in the table.
|
199
|
+
# @option options [String] :egress_only_internet_gateway_id
|
200
|
+
# \[IPv6 traffic only\] The ID of an egress-only Internet gateway.
|
178
201
|
# @option options [String] :instance_id
|
179
202
|
# The ID of a NAT instance in your VPC.
|
180
203
|
# @option options [String] :network_interface_id
|
@@ -182,7 +205,7 @@ module Aws
|
|
182
205
|
# @option options [String] :vpc_peering_connection_id
|
183
206
|
# The ID of a VPC peering connection.
|
184
207
|
# @option options [String] :nat_gateway_id
|
185
|
-
# The ID of a NAT gateway.
|
208
|
+
# \[IPv4 traffic only\] The ID of a NAT gateway.
|
186
209
|
# @return [EmptyStructure]
|
187
210
|
def replace(options = {})
|
188
211
|
options = options.merge(
|
@@ -115,8 +115,10 @@ module Aws
|
|
115
115
|
#
|
116
116
|
# route = route_table.create_route({
|
117
117
|
# dry_run: false,
|
118
|
-
# destination_cidr_block: "String",
|
118
|
+
# destination_cidr_block: "String",
|
119
119
|
# gateway_id: "String",
|
120
|
+
# destination_ipv_6_cidr_block: "String",
|
121
|
+
# egress_only_internet_gateway_id: "String",
|
120
122
|
# instance_id: "String",
|
121
123
|
# network_interface_id: "String",
|
122
124
|
# vpc_peering_connection_id: "String",
|
@@ -128,12 +130,17 @@ module Aws
|
|
128
130
|
# without actually making the request, and provides an error response.
|
129
131
|
# If you have the required permissions, the error response is
|
130
132
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
131
|
-
# @option options [
|
132
|
-
# The CIDR address block used for the destination match. Routing
|
133
|
+
# @option options [String] :destination_cidr_block
|
134
|
+
# The IPv4 CIDR address block used for the destination match. Routing
|
133
135
|
# decisions are based on the most specific match.
|
134
136
|
# @option options [String] :gateway_id
|
135
137
|
# The ID of an Internet gateway or virtual private gateway attached to
|
136
138
|
# your VPC.
|
139
|
+
# @option options [String] :destination_ipv_6_cidr_block
|
140
|
+
# The IPv6 CIDR block used for the destination match. Routing decisions
|
141
|
+
# are based on the most specific match.
|
142
|
+
# @option options [String] :egress_only_internet_gateway_id
|
143
|
+
# \[IPv6 traffic only\] The ID of an egress-only Internet gateway.
|
137
144
|
# @option options [String] :instance_id
|
138
145
|
# The ID of a NAT instance in your VPC. The operation fails if you
|
139
146
|
# specify an instance ID unless exactly one network interface is
|
@@ -143,7 +150,7 @@ module Aws
|
|
143
150
|
# @option options [String] :vpc_peering_connection_id
|
144
151
|
# The ID of a VPC peering connection.
|
145
152
|
# @option options [String] :nat_gateway_id
|
146
|
-
# The ID of a NAT gateway.
|
153
|
+
# \[IPv4 traffic only\] The ID of a NAT gateway.
|
147
154
|
# @return [Route]
|
148
155
|
def create_route(options = {})
|
149
156
|
options = options.merge(route_table_id: @id)
|
@@ -142,6 +142,11 @@ module Aws
|
|
142
142
|
# cidr_ip: "String",
|
143
143
|
# },
|
144
144
|
# ],
|
145
|
+
# ipv_6_ranges: [
|
146
|
+
# {
|
147
|
+
# cidr_ipv_6: "String",
|
148
|
+
# },
|
149
|
+
# ],
|
145
150
|
# prefix_list_ids: [
|
146
151
|
# {
|
147
152
|
# prefix_list_id: "String",
|
@@ -176,7 +181,7 @@ module Aws
|
|
176
181
|
# number. We recommend that you specify the port range in a set of IP
|
177
182
|
# permissions instead.
|
178
183
|
# @option options [String] :cidr_ip
|
179
|
-
# The CIDR
|
184
|
+
# The CIDR IPv4 address range. We recommend that you specify the CIDR
|
180
185
|
# range in a set of IP permissions instead.
|
181
186
|
# @option options [Array<Types::IpPermission>] :ip_permissions
|
182
187
|
# A set of IP permissions. You can't specify a destination security
|
@@ -219,6 +224,11 @@ module Aws
|
|
219
224
|
# cidr_ip: "String",
|
220
225
|
# },
|
221
226
|
# ],
|
227
|
+
# ipv_6_ranges: [
|
228
|
+
# {
|
229
|
+
# cidr_ipv_6: "String",
|
230
|
+
# },
|
231
|
+
# ],
|
222
232
|
# prefix_list_ids: [
|
223
233
|
# {
|
224
234
|
# prefix_list_id: "String",
|
@@ -253,22 +263,26 @@ module Aws
|
|
253
263
|
# protocol and port range, use a set of IP permissions instead.
|
254
264
|
# @option options [String] :ip_protocol
|
255
265
|
# The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol
|
256
|
-
# Numbers][1]). (VPC only) Use `-1` to specify all
|
257
|
-
# specify `-1`,
|
258
|
-
#
|
266
|
+
# Numbers][1]). (VPC only) Use `-1` to specify all protocols. If you
|
267
|
+
# specify `-1`, or a protocol number other than `tcp`, `udp`, `icmp`, or
|
268
|
+
# `58` (ICMPv6), traffic on all ports is allowed, regardless of any
|
269
|
+
# ports you specify. For `tcp`, `udp`, and `icmp`, you must specify a
|
270
|
+
# port range. For protocol `58` (ICMPv6), you can optionally specify a
|
271
|
+
# port range; if you don't, traffic for all types and codes is allowed.
|
259
272
|
#
|
260
273
|
#
|
261
274
|
#
|
262
275
|
# [1]: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
|
263
276
|
# @option options [Integer] :from_port
|
264
|
-
# The start of port range for the TCP and UDP protocols, or an
|
265
|
-
# number. For the ICMP type number, use `-1` to
|
277
|
+
# The start of port range for the TCP and UDP protocols, or an
|
278
|
+
# ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type number, use `-1` to
|
279
|
+
# specify all types.
|
266
280
|
# @option options [Integer] :to_port
|
267
|
-
# The end of port range for the TCP and UDP protocols, or an ICMP
|
268
|
-
# number. For the ICMP code number, use `-1` to specify all
|
269
|
-
#
|
281
|
+
# The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
|
282
|
+
# code number. For the ICMP/ICMPv6 code number, use `-1` to specify all
|
283
|
+
# codes.
|
270
284
|
# @option options [String] :cidr_ip
|
271
|
-
# The CIDR
|
285
|
+
# The CIDR IPv4 address range. You can't specify this parameter when
|
272
286
|
# specifying a source security group.
|
273
287
|
# @option options [Array<Types::IpPermission>] :ip_permissions
|
274
288
|
# A set of IP permissions. Can be used to specify multiple rules in a
|
@@ -369,6 +383,11 @@ module Aws
|
|
369
383
|
# cidr_ip: "String",
|
370
384
|
# },
|
371
385
|
# ],
|
386
|
+
# ipv_6_ranges: [
|
387
|
+
# {
|
388
|
+
# cidr_ipv_6: "String",
|
389
|
+
# },
|
390
|
+
# ],
|
372
391
|
# prefix_list_ids: [
|
373
392
|
# {
|
374
393
|
# prefix_list_id: "String",
|
@@ -446,6 +465,11 @@ module Aws
|
|
446
465
|
# cidr_ip: "String",
|
447
466
|
# },
|
448
467
|
# ],
|
468
|
+
# ipv_6_ranges: [
|
469
|
+
# {
|
470
|
+
# cidr_ipv_6: "String",
|
471
|
+
# },
|
472
|
+
# ],
|
449
473
|
# prefix_list_ids: [
|
450
474
|
# {
|
451
475
|
# prefix_list_id: "String",
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -44,14 +44,29 @@ module Aws
|
|
44
44
|
data.vpc_id
|
45
45
|
end
|
46
46
|
|
47
|
-
# The CIDR block assigned to the subnet.
|
47
|
+
# The IPv4 CIDR block assigned to the subnet.
|
48
48
|
# @return [String]
|
49
49
|
def cidr_block
|
50
50
|
data.cidr_block
|
51
51
|
end
|
52
52
|
|
53
|
-
#
|
54
|
-
#
|
53
|
+
# Information about the IPv6 CIDR blocks associated with the subnet.
|
54
|
+
# @return [Array<Types::SubnetIpv6CidrBlockAssociation>]
|
55
|
+
def ipv_6_cidr_block_association_set
|
56
|
+
data.ipv_6_cidr_block_association_set
|
57
|
+
end
|
58
|
+
|
59
|
+
# Indicates whether a network interface created in this subnet
|
60
|
+
# (including a network interface created by RunInstances) receives an
|
61
|
+
# IPv6 address.
|
62
|
+
# @return [Boolean]
|
63
|
+
def assign_ipv_6_address_on_creation
|
64
|
+
data.assign_ipv_6_address_on_creation
|
65
|
+
end
|
66
|
+
|
67
|
+
# The number of unused private IPv4 addresses in the subnet. Note that
|
68
|
+
# the IPv4 addresses for any stopped instances are considered
|
69
|
+
# unavailable.
|
55
70
|
# @return [Integer]
|
56
71
|
def available_ip_address_count
|
57
72
|
data.available_ip_address_count
|
@@ -71,7 +86,7 @@ module Aws
|
|
71
86
|
end
|
72
87
|
|
73
88
|
# Indicates whether instances launched in this subnet receive a public
|
74
|
-
#
|
89
|
+
# IPv4 address.
|
75
90
|
# @return [Boolean]
|
76
91
|
def map_public_ip_on_launch
|
77
92
|
data.map_public_ip_on_launch
|
@@ -131,7 +146,7 @@ module Aws
|
|
131
146
|
# security_groups: ["String"],
|
132
147
|
# security_group_ids: ["String"],
|
133
148
|
# user_data: "String",
|
134
|
-
# instance_type: "t1.micro", # accepts t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m4.16xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, p2.xlarge, p2.8xlarge, p2.16xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
|
149
|
+
# instance_type: "t1.micro", # accepts t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, t2.xlarge, t2.2xlarge, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m4.16xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, r4.large, r4.xlarge, r4.2xlarge, r4.4xlarge, r4.8xlarge, r4.16xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, p2.xlarge, p2.8xlarge, p2.16xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge, f1.2xlarge, f1.16xlarge
|
135
150
|
# placement: {
|
136
151
|
# availability_zone: "String",
|
137
152
|
# group_name: "String",
|
@@ -162,6 +177,12 @@ module Aws
|
|
162
177
|
# disable_api_termination: false,
|
163
178
|
# instance_initiated_shutdown_behavior: "stop", # accepts stop, terminate
|
164
179
|
# private_ip_address: "String",
|
180
|
+
# ipv_6_addresses: [
|
181
|
+
# {
|
182
|
+
# ipv_6_address: "String",
|
183
|
+
# },
|
184
|
+
# ],
|
185
|
+
# ipv_6_address_count: 1,
|
165
186
|
# client_token: "String",
|
166
187
|
# additional_info: "String",
|
167
188
|
# network_interfaces: [
|
@@ -181,6 +202,12 @@ module Aws
|
|
181
202
|
# ],
|
182
203
|
# secondary_private_ip_address_count: 1,
|
183
204
|
# associate_public_ip_address: false,
|
205
|
+
# ipv_6_addresses: [
|
206
|
+
# {
|
207
|
+
# ipv_6_address: "String",
|
208
|
+
# },
|
209
|
+
# ],
|
210
|
+
# ipv_6_address_count: 1,
|
184
211
|
# },
|
185
212
|
# ],
|
186
213
|
# iam_instance_profile: {
|
@@ -297,10 +324,8 @@ module Aws
|
|
297
324
|
# The monitoring for the instance.
|
298
325
|
# @option options [Boolean] :disable_api_termination
|
299
326
|
# If you set this parameter to `true`, you can't terminate the instance
|
300
|
-
# using the Amazon EC2 console, CLI, or API; otherwise, you can.
|
301
|
-
#
|
302
|
-
# terminate the instance, you must first change the value of the
|
303
|
-
# `disableApiTermination` attribute to `false` using
|
327
|
+
# using the Amazon EC2 console, CLI, or API; otherwise, you can. To
|
328
|
+
# change this attribute to `false` after launch, use
|
304
329
|
# ModifyInstanceAttribute. Alternatively, if you set
|
305
330
|
# `InstanceInitiatedShutdownBehavior` to `terminate`, you can terminate
|
306
331
|
# the instance by running the shutdown command from the instance.
|
@@ -313,19 +338,27 @@ module Aws
|
|
313
338
|
#
|
314
339
|
# Default: `stop`
|
315
340
|
# @option options [String] :private_ip_address
|
316
|
-
# \[EC2-VPC\] The primary
|
317
|
-
#
|
318
|
-
#
|
319
|
-
# Only one private IP address can be designated as primary.
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
341
|
+
# \[EC2-VPC\] The primary IPv4 address. You must specify a value from
|
342
|
+
# the IPv4 address range of the subnet.
|
343
|
+
#
|
344
|
+
# Only one private IP address can be designated as primary. You can't
|
345
|
+
# specify this option if you've specified the option to designate a
|
346
|
+
# private IP address as the primary IP address in a network interface
|
347
|
+
# specification. You cannot specify this option if you're launching
|
348
|
+
# more than one instance in the request.
|
349
|
+
# @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
350
|
+
# \[EC2-VPC\] Specify one or more IPv6 addresses from the range of the
|
351
|
+
# subnet to associate with the primary network interface. You cannot
|
352
|
+
# specify this option and the option to assign a number of IPv6
|
353
|
+
# addresses in the same request. You cannot specify this option if
|
354
|
+
# you've specified a minimum number of instances to launch.
|
355
|
+
# @option options [Integer] :ipv_6_address_count
|
356
|
+
# \[EC2-VPC\] A number of IPv6 addresses to associate with the primary
|
357
|
+
# network interface. Amazon EC2 chooses the IPv6 addresses from the
|
358
|
+
# range of your subnet. You cannot specify this option and the option to
|
359
|
+
# assign specific IPv6 addresses in the same request. You can specify
|
360
|
+
# this option if you've specified a minimum number of instances to
|
361
|
+
# launch.
|
329
362
|
# @option options [String] :client_token
|
330
363
|
# Unique, case-sensitive identifier you provide to ensure the
|
331
364
|
# idempotency of the request. For more information, see [Ensuring
|
@@ -378,36 +411,52 @@ module Aws
|
|
378
411
|
# },
|
379
412
|
# ],
|
380
413
|
# secondary_private_ip_address_count: 1,
|
414
|
+
# ipv_6_addresses: [
|
415
|
+
# {
|
416
|
+
# ipv_6_address: "String",
|
417
|
+
# },
|
418
|
+
# ],
|
419
|
+
# ipv_6_address_count: 1,
|
381
420
|
# dry_run: false,
|
382
421
|
# })
|
383
422
|
# @param [Hash] options ({})
|
384
423
|
# @option options [String] :description
|
385
424
|
# A description for the network interface.
|
386
425
|
# @option options [String] :private_ip_address
|
387
|
-
# The primary private
|
388
|
-
# specify an
|
389
|
-
# range. If you specify an IP address, you
|
390
|
-
# addresses specified in `privateIpAddresses` as
|
391
|
-
# address can be designated as primary).
|
426
|
+
# The primary private IPv4 address of the network interface. If you
|
427
|
+
# don't specify an IPv4 address, Amazon EC2 selects one for you from
|
428
|
+
# the subnet's IPv4 CIDR range. If you specify an IP address, you
|
429
|
+
# cannot indicate any IP addresses specified in `privateIpAddresses` as
|
430
|
+
# primary (only one IP address can be designated as primary).
|
392
431
|
# @option options [Array<String>] :groups
|
393
432
|
# The IDs of one or more security groups.
|
394
433
|
# @option options [Array<Types::PrivateIpAddressSpecification>] :private_ip_addresses
|
395
|
-
# One or more private
|
434
|
+
# One or more private IPv4 addresses.
|
396
435
|
# @option options [Integer] :secondary_private_ip_address_count
|
397
|
-
# The number of secondary private
|
398
|
-
# interface. When you specify a number of secondary
|
399
|
-
# EC2 selects these IP addresses within the subnet
|
400
|
-
# specify this option and specify more than one
|
401
|
-
# `privateIpAddresses`.
|
436
|
+
# The number of secondary private IPv4 addresses to assign to a network
|
437
|
+
# interface. When you specify a number of secondary IPv4 addresses,
|
438
|
+
# Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR
|
439
|
+
# range. You can't specify this option and specify more than one
|
440
|
+
# private IP address using `privateIpAddresses`.
|
402
441
|
#
|
403
442
|
# The number of IP addresses you can assign to a network interface
|
404
|
-
# varies by instance type. For more information, see [
|
405
|
-
#
|
406
|
-
#
|
443
|
+
# varies by instance type. For more information, see [IP Addresses Per
|
444
|
+
# ENI Per Instance Type][1] in the *Amazon Virtual Private Cloud User
|
445
|
+
# Guide*.
|
407
446
|
#
|
408
447
|
#
|
409
448
|
#
|
410
449
|
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI
|
450
|
+
# @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
451
|
+
# One or more specific IPv6 addresses from the IPv6 CIDR block range of
|
452
|
+
# your subnet. You can't use this option if you're specifying a number
|
453
|
+
# of IPv6 addresses.
|
454
|
+
# @option options [Integer] :ipv_6_address_count
|
455
|
+
# The number of IPv6 addresses to assign to a network interface. Amazon
|
456
|
+
# EC2 automatically selects the IPv6 addresses from the subnet range.
|
457
|
+
# You can't use this option if specifying specific IPv6 addresses. If
|
458
|
+
# your subnet has the `AssignIpv6AddressOnCreation` attribute set to
|
459
|
+
# `true`, you can specify `0` to override this setting.
|
411
460
|
# @option options [Boolean] :dry_run
|
412
461
|
# Checks whether you have the required permissions for the action,
|
413
462
|
# without actually making the request, and provides an error response.
|
@@ -511,6 +560,18 @@ module Aws
|
|
511
560
|
#
|
512
561
|
# * `architecture` - The instance architecture (`i386` \| `x86_64`).
|
513
562
|
#
|
563
|
+
# * `association.public-ip` - The address of the Elastic IP address
|
564
|
+
# (IPv4) bound to the network interface.
|
565
|
+
#
|
566
|
+
# * `association.ip-owner-id` - The owner of the Elastic IP address
|
567
|
+
# (IPv4) associated with the network interface.
|
568
|
+
#
|
569
|
+
# * `association.allocation-id` - The allocation ID returned when you
|
570
|
+
# allocated the Elastic IP address (IPv4) for your network interface.
|
571
|
+
#
|
572
|
+
# * `association.association-id` - The association ID returned when the
|
573
|
+
# network interface was associated with an IPv4 address.
|
574
|
+
#
|
514
575
|
# * `availability-zone` - The Availability Zone of the instance.
|
515
576
|
#
|
516
577
|
# * `block-device-mapping.attach-time` - The attach time for an EBS
|
@@ -571,7 +632,7 @@ module Aws
|
|
571
632
|
# * `instance.group-name` - The name of the security group for the
|
572
633
|
# instance.
|
573
634
|
#
|
574
|
-
# * `ip-address` - The public
|
635
|
+
# * `ip-address` - The public IPv4 address of the instance.
|
575
636
|
#
|
576
637
|
# * `kernel-id` - The kernel ID.
|
577
638
|
#
|
@@ -584,8 +645,91 @@ module Aws
|
|
584
645
|
#
|
585
646
|
# * `launch-time` - The time when the instance was launched.
|
586
647
|
#
|
587
|
-
# * `monitoring-state` - Indicates whether monitoring is
|
588
|
-
#
|
648
|
+
# * `monitoring-state` - Indicates whether detailed monitoring is
|
649
|
+
# enabled (`disabled` \| `enabled`).
|
650
|
+
#
|
651
|
+
# * `network-interface.addresses.private-ip-address` - The private IPv4
|
652
|
+
# address associated with the network interface.
|
653
|
+
#
|
654
|
+
# * `network-interface.addresses.primary` - Specifies whether the IPv4
|
655
|
+
# address of the network interface is the primary private IPv4
|
656
|
+
# address.
|
657
|
+
#
|
658
|
+
# * `network-interface.addresses.association.public-ip` - The ID of the
|
659
|
+
# association of an Elastic IP address (IPv4) with a network
|
660
|
+
# interface.
|
661
|
+
#
|
662
|
+
# * `network-interface.addresses.association.ip-owner-id` - The owner ID
|
663
|
+
# of the private IPv4 address associated with the network interface.
|
664
|
+
#
|
665
|
+
# * `network-interface.attachment.attachment-id` - The ID of the
|
666
|
+
# interface attachment.
|
667
|
+
#
|
668
|
+
# * `network-interface.attachment.instance-id` - The ID of the instance
|
669
|
+
# to which the network interface is attached.
|
670
|
+
#
|
671
|
+
# * `network-interface.attachment.instance-owner-id` - The owner ID of
|
672
|
+
# the instance to which the network interface is attached.
|
673
|
+
#
|
674
|
+
# * `network-interface.attachment.device-index` - The device index to
|
675
|
+
# which the network interface is attached.
|
676
|
+
#
|
677
|
+
# * `network-interface.attachment.status` - The status of the attachment
|
678
|
+
# (`attaching` \| `attached` \| `detaching` \| `detached`).
|
679
|
+
#
|
680
|
+
# * `network-interface.attachment.attach-time` - The time that the
|
681
|
+
# network interface was attached to an instance.
|
682
|
+
#
|
683
|
+
# * `network-interface.attachment.delete-on-termination` - Specifies
|
684
|
+
# whether the attachment is deleted when an instance is terminated.
|
685
|
+
#
|
686
|
+
# * `network-interface.availability-zone` - The Availability Zone for
|
687
|
+
# the network interface.
|
688
|
+
#
|
689
|
+
# * `network-interface.description` - The description of the network
|
690
|
+
# interface.
|
691
|
+
#
|
692
|
+
# * `network-interface.group-id` - The ID of a security group associated
|
693
|
+
# with the network interface.
|
694
|
+
#
|
695
|
+
# * `network-interface.group-name` - The name of a security group
|
696
|
+
# associated with the network interface.
|
697
|
+
#
|
698
|
+
# * `network-interface.ipv6-addresses.ipv6-address` - The IPv6 address
|
699
|
+
# associated with the network interface.
|
700
|
+
#
|
701
|
+
# * `network-interface.mac-address` - The MAC address of the network
|
702
|
+
# interface.
|
703
|
+
#
|
704
|
+
# * `network-interface.network-interface-id` - The ID of the network
|
705
|
+
# interface.
|
706
|
+
#
|
707
|
+
# * `network-interface.owner-id` - The ID of the owner of the network
|
708
|
+
# interface.
|
709
|
+
#
|
710
|
+
# * `network-interface.private-dns-name` - The private DNS name of the
|
711
|
+
# network interface.
|
712
|
+
#
|
713
|
+
# * `network-interface.requester-id` - The requester ID for the network
|
714
|
+
# interface.
|
715
|
+
#
|
716
|
+
# * `network-interface.requester-managed` - Indicates whether the
|
717
|
+
# network interface is being managed by AWS.
|
718
|
+
#
|
719
|
+
# * `network-interface.status` - The status of the network interface
|
720
|
+
# (`available`) \| `in-use`).
|
721
|
+
#
|
722
|
+
# * `network-interface.source-dest-check` - Whether the network
|
723
|
+
# interface performs source/destination checking. A value of `true`
|
724
|
+
# means checking is enabled, and `false` means checking is disabled.
|
725
|
+
# The value must be `false` for the network interface to perform
|
726
|
+
# network address translation (NAT) in your VPC.
|
727
|
+
#
|
728
|
+
# * `network-interface.subnet-id` - The ID of the subnet for the network
|
729
|
+
# interface.
|
730
|
+
#
|
731
|
+
# * `network-interface.vpc-id` - The ID of the VPC for the network
|
732
|
+
# interface.
|
589
733
|
#
|
590
734
|
# * `owner-id` - The AWS account ID of the instance owner.
|
591
735
|
#
|
@@ -595,9 +739,9 @@ module Aws
|
|
595
739
|
# * `platform` - The platform. Use `windows` if you have Windows
|
596
740
|
# instances; otherwise, leave blank.
|
597
741
|
#
|
598
|
-
# * `private-dns-name` - The private DNS name of the instance.
|
742
|
+
# * `private-dns-name` - The private IPv4 DNS name of the instance.
|
599
743
|
#
|
600
|
-
# * `private-ip-address` - The private
|
744
|
+
# * `private-ip-address` - The private IPv4 address of the instance.
|
601
745
|
#
|
602
746
|
# * `product-code` - The product code associated with the AMI used to
|
603
747
|
# launch the instance.
|
@@ -665,96 +809,6 @@ module Aws
|
|
665
809
|
# (`paravirtual` \| `hvm`).
|
666
810
|
#
|
667
811
|
# * `vpc-id` - The ID of the VPC that the instance is running in.
|
668
|
-
#
|
669
|
-
# * `network-interface.description` - The description of the network
|
670
|
-
# interface.
|
671
|
-
#
|
672
|
-
# * `network-interface.subnet-id` - The ID of the subnet for the network
|
673
|
-
# interface.
|
674
|
-
#
|
675
|
-
# * `network-interface.vpc-id` - The ID of the VPC for the network
|
676
|
-
# interface.
|
677
|
-
#
|
678
|
-
# * `network-interface.network-interface-id` - The ID of the network
|
679
|
-
# interface.
|
680
|
-
#
|
681
|
-
# * `network-interface.owner-id` - The ID of the owner of the network
|
682
|
-
# interface.
|
683
|
-
#
|
684
|
-
# * `network-interface.availability-zone` - The Availability Zone for
|
685
|
-
# the network interface.
|
686
|
-
#
|
687
|
-
# * `network-interface.requester-id` - The requester ID for the network
|
688
|
-
# interface.
|
689
|
-
#
|
690
|
-
# * `network-interface.requester-managed` - Indicates whether the
|
691
|
-
# network interface is being managed by AWS.
|
692
|
-
#
|
693
|
-
# * `network-interface.status` - The status of the network interface
|
694
|
-
# (`available`) \| `in-use`).
|
695
|
-
#
|
696
|
-
# * `network-interface.mac-address` - The MAC address of the network
|
697
|
-
# interface.
|
698
|
-
#
|
699
|
-
# * `network-interface.private-dns-name` - The private DNS name of the
|
700
|
-
# network interface.
|
701
|
-
#
|
702
|
-
# * `network-interface.source-dest-check` - Whether the network
|
703
|
-
# interface performs source/destination checking. A value of `true`
|
704
|
-
# means checking is enabled, and `false` means checking is disabled.
|
705
|
-
# The value must be `false` for the network interface to perform
|
706
|
-
# network address translation (NAT) in your VPC.
|
707
|
-
#
|
708
|
-
# * `network-interface.group-id` - The ID of a security group associated
|
709
|
-
# with the network interface.
|
710
|
-
#
|
711
|
-
# * `network-interface.group-name` - The name of a security group
|
712
|
-
# associated with the network interface.
|
713
|
-
#
|
714
|
-
# * `network-interface.attachment.attachment-id` - The ID of the
|
715
|
-
# interface attachment.
|
716
|
-
#
|
717
|
-
# * `network-interface.attachment.instance-id` - The ID of the instance
|
718
|
-
# to which the network interface is attached.
|
719
|
-
#
|
720
|
-
# * `network-interface.attachment.instance-owner-id` - The owner ID of
|
721
|
-
# the instance to which the network interface is attached.
|
722
|
-
#
|
723
|
-
# * `network-interface.addresses.private-ip-address` - The private IP
|
724
|
-
# address associated with the network interface.
|
725
|
-
#
|
726
|
-
# * `network-interface.attachment.device-index` - The device index to
|
727
|
-
# which the network interface is attached.
|
728
|
-
#
|
729
|
-
# * `network-interface.attachment.status` - The status of the attachment
|
730
|
-
# (`attaching` \| `attached` \| `detaching` \| `detached`).
|
731
|
-
#
|
732
|
-
# * `network-interface.attachment.attach-time` - The time that the
|
733
|
-
# network interface was attached to an instance.
|
734
|
-
#
|
735
|
-
# * `network-interface.attachment.delete-on-termination` - Specifies
|
736
|
-
# whether the attachment is deleted when an instance is terminated.
|
737
|
-
#
|
738
|
-
# * `network-interface.addresses.primary` - Specifies whether the IP
|
739
|
-
# address of the network interface is the primary private IP address.
|
740
|
-
#
|
741
|
-
# * `network-interface.addresses.association.public-ip` - The ID of the
|
742
|
-
# association of an Elastic IP address with a network interface.
|
743
|
-
#
|
744
|
-
# * `network-interface.addresses.association.ip-owner-id` - The owner ID
|
745
|
-
# of the private IP address associated with the network interface.
|
746
|
-
#
|
747
|
-
# * `association.public-ip` - The address of the Elastic IP address
|
748
|
-
# bound to the network interface.
|
749
|
-
#
|
750
|
-
# * `association.ip-owner-id` - The owner of the Elastic IP address
|
751
|
-
# associated with the network interface.
|
752
|
-
#
|
753
|
-
# * `association.allocation-id` - The allocation ID returned when you
|
754
|
-
# allocated the Elastic IP address for your network interface.
|
755
|
-
#
|
756
|
-
# * `association.association-id` - The association ID returned when the
|
757
|
-
# network interface was associated with an IP address.
|
758
812
|
# @return [Instance::Collection]
|
759
813
|
def instances(options = {})
|
760
814
|
batches = Enumerator.new do |y|
|
@@ -805,32 +859,33 @@ module Aws
|
|
805
859
|
# @option options [Array<Types::Filter>] :filters
|
806
860
|
# One or more filters.
|
807
861
|
#
|
808
|
-
# * `addresses.private-ip-address` - The private
|
809
|
-
# with the network interface.
|
862
|
+
# * `addresses.private-ip-address` - The private IPv4 addresses
|
863
|
+
# associated with the network interface.
|
810
864
|
#
|
811
|
-
# * `addresses.primary` - Whether the private
|
812
|
-
# IP address associated with the network interface.
|
865
|
+
# * `addresses.primary` - Whether the private IPv4 address is the
|
866
|
+
# primary IP address associated with the network interface.
|
813
867
|
#
|
814
868
|
# * `addresses.association.public-ip` - The association ID returned when
|
815
|
-
# the network interface was associated with the Elastic IP address
|
869
|
+
# the network interface was associated with the Elastic IP address
|
870
|
+
# (IPv4).
|
816
871
|
#
|
817
872
|
# * `addresses.association.owner-id` - The owner ID of the addresses
|
818
873
|
# associated with the network interface.
|
819
874
|
#
|
820
875
|
# * `association.association-id` - The association ID returned when the
|
821
|
-
# network interface was associated with an
|
876
|
+
# network interface was associated with an IPv4 address.
|
822
877
|
#
|
823
878
|
# * `association.allocation-id` - The allocation ID returned when you
|
824
|
-
# allocated the Elastic IP address for your network interface.
|
879
|
+
# allocated the Elastic IP address (IPv4) for your network interface.
|
825
880
|
#
|
826
881
|
# * `association.ip-owner-id` - The owner of the Elastic IP address
|
827
|
-
# associated with the network interface.
|
882
|
+
# (IPv4) associated with the network interface.
|
828
883
|
#
|
829
884
|
# * `association.public-ip` - The address of the Elastic IP address
|
830
|
-
# bound to the network interface.
|
885
|
+
# (IPv4) bound to the network interface.
|
831
886
|
#
|
832
887
|
# * `association.public-dns-name` - The public DNS name for the network
|
833
|
-
# interface.
|
888
|
+
# interface (IPv4).
|
834
889
|
#
|
835
890
|
# * `attachment.attachment-id` - The ID of the interface attachment.
|
836
891
|
#
|
@@ -866,16 +921,20 @@ module Aws
|
|
866
921
|
# * `group-name` - The name of a security group associated with the
|
867
922
|
# network interface.
|
868
923
|
#
|
924
|
+
# * `ipv6-addresses.ipv6-address` - An IPv6 address associated with the
|
925
|
+
# network interface.
|
926
|
+
#
|
869
927
|
# * `mac-address` - The MAC address of the network interface.
|
870
928
|
#
|
871
929
|
# * `network-interface-id` - The ID of the network interface.
|
872
930
|
#
|
873
931
|
# * `owner-id` - The AWS account ID of the network interface owner.
|
874
932
|
#
|
875
|
-
# * `private-ip-address` - The private
|
933
|
+
# * `private-ip-address` - The private IPv4 address or addresses of the
|
876
934
|
# network interface.
|
877
935
|
#
|
878
|
-
# * `private-dns-name` - The private DNS name of the network interface
|
936
|
+
# * `private-dns-name` - The private DNS name of the network interface
|
937
|
+
# (IPv4).
|
879
938
|
#
|
880
939
|
# * `requester-id` - The ID of the entity that launched the instance on
|
881
940
|
# your behalf (for example, AWS Management Console, Auto Scaling, and
|