aws-sdk-ec2 1.0.0.rc7 → 1.0.0.rc8

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.
@@ -31,16 +31,10 @@ module Aws::EC2
31
31
  end
32
32
  alias :volume_id :id
33
33
 
34
- # The size of the volume, in GiBs.
35
- # @return [Integer]
36
- def size
37
- data.size
38
- end
39
-
40
- # The snapshot from which the volume was created, if applicable.
41
- # @return [String]
42
- def snapshot_id
43
- data.snapshot_id
34
+ # Information about the volume attachments.
35
+ # @return [Array<Types::VolumeAttachment>]
36
+ def attachments
37
+ data.attachments
44
38
  end
45
39
 
46
40
  # The Availability Zone for the volume.
@@ -49,36 +43,42 @@ module Aws::EC2
49
43
  data.availability_zone
50
44
  end
51
45
 
52
- # The volume state.
53
- # @return [String]
54
- def state
55
- data.state
56
- end
57
-
58
46
  # The time stamp when volume creation was initiated.
59
47
  # @return [Time]
60
48
  def create_time
61
49
  data.create_time
62
50
  end
63
51
 
64
- # Information about the volume attachments.
65
- # @return [Array<Types::VolumeAttachment>]
66
- def attachments
67
- data.attachments
52
+ # Indicates whether the volume will be encrypted.
53
+ # @return [Boolean]
54
+ def encrypted
55
+ data.encrypted
68
56
  end
69
57
 
70
- # Any tags assigned to the volume.
71
- # @return [Array<Types::Tag>]
72
- def tags
73
- data.tags
58
+ # The full ARN of the AWS Key Management Service (AWS KMS) customer
59
+ # master key (CMK) that was used to protect the volume encryption key
60
+ # for the volume.
61
+ # @return [String]
62
+ def kms_key_id
63
+ data.kms_key_id
74
64
  end
75
65
 
76
- # The volume type. This can be `gp2` for General Purpose SSD, `io1` for
77
- # Provisioned IOPS SSD, `st1` for Throughput Optimized HDD, `sc1` for
78
- # Cold HDD, or `standard` for Magnetic volumes.
66
+ # The size of the volume, in GiBs.
67
+ # @return [Integer]
68
+ def size
69
+ data.size
70
+ end
71
+
72
+ # The snapshot from which the volume was created, if applicable.
79
73
  # @return [String]
80
- def volume_type
81
- data.volume_type
74
+ def snapshot_id
75
+ data.snapshot_id
76
+ end
77
+
78
+ # The volume state.
79
+ # @return [String]
80
+ def state
81
+ data.state
82
82
  end
83
83
 
84
84
  # The number of I/O operations per second (IOPS) that the volume
@@ -105,18 +105,18 @@ module Aws::EC2
105
105
  data.iops
106
106
  end
107
107
 
108
- # Indicates whether the volume will be encrypted.
109
- # @return [Boolean]
110
- def encrypted
111
- data.encrypted
108
+ # Any tags assigned to the volume.
109
+ # @return [Array<Types::Tag>]
110
+ def tags
111
+ data.tags
112
112
  end
113
113
 
114
- # The full ARN of the AWS Key Management Service (AWS KMS) customer
115
- # master key (CMK) that was used to protect the volume encryption key
116
- # for the volume.
114
+ # The volume type. This can be `gp2` for General Purpose SSD, `io1` for
115
+ # Provisioned IOPS SSD, `st1` for Throughput Optimized HDD, `sc1` for
116
+ # Cold HDD, or `standard` for Magnetic volumes.
117
117
  # @return [String]
118
- def kms_key_id
119
- data.kms_key_id
118
+ def volume_type
119
+ data.volume_type
120
120
  end
121
121
 
122
122
  # @!endgroup
@@ -159,21 +159,21 @@ module Aws::EC2
159
159
  # @example Request syntax with placeholder values
160
160
  #
161
161
  # volume.attach_to_instance({
162
- # dry_run: false,
163
- # instance_id: "String", # required
164
162
  # device: "String", # required
163
+ # instance_id: "String", # required
164
+ # dry_run: false,
165
165
  # })
166
166
  # @param [Hash] options ({})
167
+ # @option options [required, String] :device
168
+ # The device name to expose to the instance (for example, `/dev/sdh` or
169
+ # `xvdh`).
170
+ # @option options [required, String] :instance_id
171
+ # The ID of the instance.
167
172
  # @option options [Boolean] :dry_run
168
173
  # Checks whether you have the required permissions for the action,
169
174
  # without actually making the request, and provides an error response.
170
175
  # If you have the required permissions, the error response is
171
176
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
172
- # @option options [required, String] :instance_id
173
- # The ID of the instance.
174
- # @option options [required, String] :device
175
- # The device name to expose to the instance (for example, `/dev/sdh` or
176
- # `xvdh`).
177
177
  # @return [Types::VolumeAttachment]
178
178
  def attach_to_instance(options = {})
179
179
  options = options.merge(volume_id: @id)
@@ -184,17 +184,17 @@ module Aws::EC2
184
184
  # @example Request syntax with placeholder values
185
185
  #
186
186
  # snapshot = volume.create_snapshot({
187
- # dry_run: false,
188
187
  # description: "String",
188
+ # dry_run: false,
189
189
  # })
190
190
  # @param [Hash] options ({})
191
+ # @option options [String] :description
192
+ # A description for the snapshot.
191
193
  # @option options [Boolean] :dry_run
192
194
  # Checks whether you have the required permissions for the action,
193
195
  # without actually making the request, and provides an error response.
194
196
  # If you have the required permissions, the error response is
195
197
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
196
- # @option options [String] :description
197
- # A description for the snapshot.
198
198
  # @return [Snapshot]
199
199
  def create_snapshot(options = {})
200
200
  options = options.merge(volume_id: @id)
@@ -264,17 +264,17 @@ module Aws::EC2
264
264
  # @example Request syntax with placeholder values
265
265
  #
266
266
  # volume.describe_attribute({
267
- # dry_run: false,
268
267
  # attribute: "autoEnableIO", # accepts autoEnableIO, productCodes
268
+ # dry_run: false,
269
269
  # })
270
270
  # @param [Hash] options ({})
271
+ # @option options [String] :attribute
272
+ # The attribute of the volume. This parameter is required.
271
273
  # @option options [Boolean] :dry_run
272
274
  # Checks whether you have the required permissions for the action,
273
275
  # without actually making the request, and provides an error response.
274
276
  # If you have the required permissions, the error response is
275
277
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
276
- # @option options [String] :attribute
277
- # The attribute of the volume. This parameter is required.
278
278
  # @return [Types::DescribeVolumeAttributeResult]
279
279
  def describe_attribute(options = {})
280
280
  options = options.merge(volume_id: @id)
@@ -285,22 +285,17 @@ module Aws::EC2
285
285
  # @example Request syntax with placeholder values
286
286
  #
287
287
  # volume.describe_status({
288
- # dry_run: false,
289
288
  # filters: [
290
289
  # {
291
290
  # name: "String",
292
291
  # values: ["String"],
293
292
  # },
294
293
  # ],
295
- # next_token: "String",
296
294
  # max_results: 1,
295
+ # next_token: "String",
296
+ # dry_run: false,
297
297
  # })
298
298
  # @param [Hash] options ({})
299
- # @option options [Boolean] :dry_run
300
- # Checks whether you have the required permissions for the action,
301
- # without actually making the request, and provides an error response.
302
- # If you have the required permissions, the error response is
303
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
304
299
  # @option options [Array<Types::Filter>] :filters
305
300
  # One or more filters.
306
301
  #
@@ -335,11 +330,6 @@ module Aws::EC2
335
330
  #
336
331
  # * `volume-status.status` - The status of the volume (`ok` \|
337
332
  # `impaired` \| `warning` \| `insufficient-data`).
338
- # @option options [String] :next_token
339
- # The `NextToken` value to include in a future `DescribeVolumeStatus`
340
- # request. When the results of the request exceed `MaxResults`, this
341
- # value can be used to retrieve the next page of results. This value is
342
- # `null` when there are no more results to return.
343
333
  # @option options [Integer] :max_results
344
334
  # The maximum number of volume results returned by
345
335
  # `DescribeVolumeStatus` in paginated output. When this parameter is
@@ -351,6 +341,16 @@ module Aws::EC2
351
341
  # returned. If this parameter is not used, then `DescribeVolumeStatus`
352
342
  # returns all results. You cannot specify this parameter and the volume
353
343
  # IDs parameter in the same request.
344
+ # @option options [String] :next_token
345
+ # The `NextToken` value to include in a future `DescribeVolumeStatus`
346
+ # request. When the results of the request exceed `MaxResults`, this
347
+ # value can be used to retrieve the next page of results. This value is
348
+ # `null` when there are no more results to return.
349
+ # @option options [Boolean] :dry_run
350
+ # Checks whether you have the required permissions for the action,
351
+ # without actually making the request, and provides an error response.
352
+ # If you have the required permissions, the error response is
353
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
354
354
  # @return [Types::DescribeVolumeStatusResult]
355
355
  def describe_status(options = {})
356
356
  options = Aws::Util.deep_merge(options, volume_ids: [@id])
@@ -361,19 +361,12 @@ module Aws::EC2
361
361
  # @example Request syntax with placeholder values
362
362
  #
363
363
  # volume.detach_from_instance({
364
- # dry_run: false,
365
- # instance_id: "String",
366
364
  # device: "String",
367
365
  # force: false,
366
+ # instance_id: "String",
367
+ # dry_run: false,
368
368
  # })
369
369
  # @param [Hash] options ({})
370
- # @option options [Boolean] :dry_run
371
- # Checks whether you have the required permissions for the action,
372
- # without actually making the request, and provides an error response.
373
- # If you have the required permissions, the error response is
374
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
375
- # @option options [String] :instance_id
376
- # The ID of the instance.
377
370
  # @option options [String] :device
378
371
  # The device name.
379
372
  # @option options [Boolean] :force
@@ -385,6 +378,13 @@ module Aws::EC2
385
378
  # opportunity to flush file system caches or file system metadata. If
386
379
  # you use this option, you must perform file system check and repair
387
380
  # procedures.
381
+ # @option options [String] :instance_id
382
+ # The ID of the instance.
383
+ # @option options [Boolean] :dry_run
384
+ # Checks whether you have the required permissions for the action,
385
+ # without actually making the request, and provides an error response.
386
+ # If you have the required permissions, the error response is
387
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
388
388
  # @return [Types::VolumeAttachment]
389
389
  def detach_from_instance(options = {})
390
390
  options = options.merge(volume_id: @id)
@@ -413,20 +413,20 @@ module Aws::EC2
413
413
  # @example Request syntax with placeholder values
414
414
  #
415
415
  # volume.modify_attribute({
416
- # dry_run: false,
417
416
  # auto_enable_io: {
418
417
  # value: false,
419
418
  # },
419
+ # dry_run: false,
420
420
  # })
421
421
  # @param [Hash] options ({})
422
+ # @option options [Types::AttributeBooleanValue] :auto_enable_io
423
+ # Indicates whether the volume should be auto-enabled for I/O
424
+ # operations.
422
425
  # @option options [Boolean] :dry_run
423
426
  # Checks whether you have the required permissions for the action,
424
427
  # without actually making the request, and provides an error response.
425
428
  # If you have the required permissions, the error response is
426
429
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
427
- # @option options [Types::AttributeBooleanValue] :auto_enable_io
428
- # Indicates whether the volume should be auto-enabled for I/O
429
- # operations.
430
430
  # @return [EmptyStructure]
431
431
  def modify_attribute(options = {})
432
432
  options = options.merge(volume_id: @id)
@@ -439,33 +439,18 @@ module Aws::EC2
439
439
  # @example Request syntax with placeholder values
440
440
  #
441
441
  # snapshots = volume.snapshots({
442
- # dry_run: false,
443
- # snapshot_ids: ["String"],
444
- # owner_ids: ["String"],
445
- # restorable_by_user_ids: ["String"],
446
442
  # filters: [
447
443
  # {
448
444
  # name: "String",
449
445
  # values: ["String"],
450
446
  # },
451
447
  # ],
448
+ # owner_ids: ["String"],
449
+ # restorable_by_user_ids: ["String"],
450
+ # snapshot_ids: ["String"],
451
+ # dry_run: false,
452
452
  # })
453
453
  # @param [Hash] options ({})
454
- # @option options [Boolean] :dry_run
455
- # Checks whether you have the required permissions for the action,
456
- # without actually making the request, and provides an error response.
457
- # If you have the required permissions, the error response is
458
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
459
- # @option options [Array<String>] :snapshot_ids
460
- # One or more snapshot IDs.
461
- #
462
- # Default: Describes snapshots for which you have launch permissions.
463
- # @option options [Array<String>] :owner_ids
464
- # Returns the snapshots owned by the specified owner. Multiple owners
465
- # can be specified.
466
- # @option options [Array<String>] :restorable_by_user_ids
467
- # One or more AWS accounts IDs that can create volumes from the
468
- # snapshot.
469
454
  # @option options [Array<Types::Filter>] :filters
470
455
  # One or more filters.
471
456
  #
@@ -508,6 +493,21 @@ module Aws::EC2
508
493
  # * `volume-id` - The ID of the volume the snapshot is for.
509
494
  #
510
495
  # * `volume-size` - The size of the volume, in GiB.
496
+ # @option options [Array<String>] :owner_ids
497
+ # Returns the snapshots owned by the specified owner. Multiple owners
498
+ # can be specified.
499
+ # @option options [Array<String>] :restorable_by_user_ids
500
+ # One or more AWS accounts IDs that can create volumes from the
501
+ # snapshot.
502
+ # @option options [Array<String>] :snapshot_ids
503
+ # One or more snapshot IDs.
504
+ #
505
+ # Default: Describes snapshots for which you have launch permissions.
506
+ # @option options [Boolean] :dry_run
507
+ # Checks whether you have the required permissions for the action,
508
+ # without actually making the request, and provides an error response.
509
+ # If you have the required permissions, the error response is
510
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
511
511
  # @return [Snapshot::Collection]
512
512
  def snapshots(options = {})
513
513
  batches = Enumerator.new do |y|
@@ -31,12 +31,6 @@ module Aws::EC2
31
31
  end
32
32
  alias :vpc_id :id
33
33
 
34
- # The current state of the VPC.
35
- # @return [String]
36
- def state
37
- data.state
38
- end
39
-
40
34
  # The IPv4 CIDR block for the VPC.
41
35
  # @return [String]
42
36
  def cidr_block
@@ -50,10 +44,10 @@ module Aws::EC2
50
44
  data.dhcp_options_id
51
45
  end
52
46
 
53
- # Any tags assigned to the VPC.
54
- # @return [Array<Types::Tag>]
55
- def tags
56
- data.tags
47
+ # The current state of the VPC.
48
+ # @return [String]
49
+ def state
50
+ data.state
57
51
  end
58
52
 
59
53
  # The allowed tenancy of instances launched into the VPC.
@@ -62,16 +56,22 @@ module Aws::EC2
62
56
  data.instance_tenancy
63
57
  end
64
58
 
59
+ # Information about the IPv6 CIDR blocks associated with the VPC.
60
+ # @return [Array<Types::VpcIpv6CidrBlockAssociation>]
61
+ def ipv_6_cidr_block_association_set
62
+ data.ipv_6_cidr_block_association_set
63
+ end
64
+
65
65
  # Indicates whether the VPC is the default VPC.
66
66
  # @return [Boolean]
67
67
  def is_default
68
68
  data.is_default
69
69
  end
70
70
 
71
- # Information about the IPv6 CIDR blocks associated with the VPC.
72
- # @return [Array<Types::VpcIpv6CidrBlockAssociation>]
73
- def ipv_6_cidr_block_association_set
74
- data.ipv_6_cidr_block_association_set
71
+ # Any tags assigned to the VPC.
72
+ # @return [Array<Types::Tag>]
73
+ def tags
74
+ data.tags
75
75
  end
76
76
 
77
77
  # @!endgroup
@@ -162,18 +162,18 @@ module Aws::EC2
162
162
  # @example Request syntax with placeholder values
163
163
  #
164
164
  # vpc.associate_dhcp_options({
165
- # dry_run: false,
166
165
  # dhcp_options_id: "String", # required
166
+ # dry_run: false,
167
167
  # })
168
168
  # @param [Hash] options ({})
169
+ # @option options [required, String] :dhcp_options_id
170
+ # The ID of the DHCP options set, or `default` to associate no DHCP
171
+ # options with the VPC.
169
172
  # @option options [Boolean] :dry_run
170
173
  # Checks whether you have the required permissions for the action,
171
174
  # without actually making the request, and provides an error response.
172
175
  # If you have the required permissions, the error response is
173
176
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
174
- # @option options [required, String] :dhcp_options_id
175
- # The ID of the DHCP options set, or `default` to associate no DHCP
176
- # options with the VPC.
177
177
  # @return [EmptyStructure]
178
178
  def associate_dhcp_options(options = {})
179
179
  options = options.merge(vpc_id: @id)
@@ -185,8 +185,8 @@ module Aws::EC2
185
185
  #
186
186
  # vpc.attach_classic_link_instance({
187
187
  # dry_run: false,
188
- # instance_id: "String", # required
189
188
  # groups: ["String"], # required
189
+ # instance_id: "String", # required
190
190
  # })
191
191
  # @param [Hash] options ({})
192
192
  # @option options [Boolean] :dry_run
@@ -194,12 +194,12 @@ module Aws::EC2
194
194
  # without actually making the request, and provides an error response.
195
195
  # If you have the required permissions, the error response is
196
196
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
197
- # @option options [required, String] :instance_id
198
- # The ID of an EC2-Classic instance to link to the ClassicLink-enabled
199
- # VPC.
200
197
  # @option options [required, Array<String>] :groups
201
198
  # The ID of one or more of the VPC's security groups. You cannot
202
199
  # specify security groups from a different VPC.
200
+ # @option options [required, String] :instance_id
201
+ # The ID of an EC2-Classic instance to link to the ClassicLink-enabled
202
+ # VPC.
203
203
  # @return [Types::AttachClassicLinkVpcResult]
204
204
  def attach_classic_link_instance(options = {})
205
205
  options = options.merge(vpc_id: @id)
@@ -275,18 +275,13 @@ module Aws::EC2
275
275
  # @example Request syntax with placeholder values
276
276
  #
277
277
  # securitygroup = vpc.create_security_group({
278
- # dry_run: false,
279
- # group_name: "String", # required
280
278
  # description: "String", # required
279
+ # group_name: "String", # required
280
+ # dry_run: false,
281
281
  # })
282
282
  # @param [Hash] options ({})
283
- # @option options [Boolean] :dry_run
284
- # Checks whether you have the required permissions for the action,
285
- # without actually making the request, and provides an error response.
286
- # If you have the required permissions, the error response is
287
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
288
- # @option options [required, String] :group_name
289
- # The name of the security group.
283
+ # @option options [required, String] :description
284
+ # A description for the security group. This is informational only.
290
285
  #
291
286
  # Constraints: Up to 255 characters in length
292
287
  #
@@ -294,8 +289,8 @@ module Aws::EC2
294
289
  #
295
290
  # Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and
296
291
  # .\_-:/()#,@\[\]+=&amp;;\\\{\\}!$*
297
- # @option options [required, String] :description
298
- # A description for the security group. This is informational only.
292
+ # @option options [required, String] :group_name
293
+ # The name of the security group.
299
294
  #
300
295
  # Constraints: Up to 255 characters in length
301
296
  #
@@ -303,6 +298,11 @@ module Aws::EC2
303
298
  #
304
299
  # Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and
305
300
  # .\_-:/()#,@\[\]+=&amp;;\\\{\\}!$*
301
+ # @option options [Boolean] :dry_run
302
+ # Checks whether you have the required permissions for the action,
303
+ # without actually making the request, and provides an error response.
304
+ # If you have the required permissions, the error response is
305
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
306
306
  # @return [SecurityGroup]
307
307
  def create_security_group(options = {})
308
308
  options = options.merge(vpc_id: @id)
@@ -316,29 +316,29 @@ module Aws::EC2
316
316
  # @example Request syntax with placeholder values
317
317
  #
318
318
  # subnet = vpc.create_subnet({
319
- # dry_run: false,
319
+ # availability_zone: "String",
320
320
  # cidr_block: "String", # required
321
321
  # ipv_6_cidr_block: "String",
322
- # availability_zone: "String",
322
+ # dry_run: false,
323
323
  # })
324
324
  # @param [Hash] options ({})
325
- # @option options [Boolean] :dry_run
326
- # Checks whether you have the required permissions for the action,
327
- # without actually making the request, and provides an error response.
328
- # If you have the required permissions, the error response is
329
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
330
- # @option options [required, String] :cidr_block
331
- # The IPv4 network range for the subnet, in CIDR notation. For example,
332
- # `10.0.0.0/24`.
333
- # @option options [String] :ipv_6_cidr_block
334
- # The IPv6 network range for the subnet, in CIDR notation. The subnet
335
- # size must use a /64 prefix length.
336
325
  # @option options [String] :availability_zone
337
326
  # The Availability Zone for the subnet.
338
327
  #
339
328
  # Default: AWS selects one for you. If you create more than one subnet
340
329
  # in your VPC, we may not necessarily select a different zone for each
341
330
  # subnet.
331
+ # @option options [required, String] :cidr_block
332
+ # The IPv4 network range for the subnet, in CIDR notation. For example,
333
+ # `10.0.0.0/24`.
334
+ # @option options [String] :ipv_6_cidr_block
335
+ # The IPv6 network range for the subnet, in CIDR notation. The subnet
336
+ # size must use a /64 prefix length.
337
+ # @option options [Boolean] :dry_run
338
+ # Checks whether you have the required permissions for the action,
339
+ # without actually making the request, and provides an error response.
340
+ # If you have the required permissions, the error response is
341
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
342
342
  # @return [Subnet]
343
343
  def create_subnet(options = {})
344
344
  options = options.merge(vpc_id: @id)
@@ -408,17 +408,17 @@ module Aws::EC2
408
408
  # @example Request syntax with placeholder values
409
409
  #
410
410
  # vpc.describe_attribute({
411
- # dry_run: false,
412
411
  # attribute: "enableDnsSupport", # required, accepts enableDnsSupport, enableDnsHostnames
412
+ # dry_run: false,
413
413
  # })
414
414
  # @param [Hash] options ({})
415
+ # @option options [required, String] :attribute
416
+ # The VPC attribute.
415
417
  # @option options [Boolean] :dry_run
416
418
  # Checks whether you have the required permissions for the action,
417
419
  # without actually making the request, and provides an error response.
418
420
  # If you have the required permissions, the error response is
419
421
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
420
- # @option options [required, String] :attribute
421
- # The VPC attribute.
422
422
  # @return [Types::DescribeVpcAttributeResult]
423
423
  def describe_attribute(options = {})
424
424
  options = options.merge(vpc_id: @id)
@@ -507,14 +507,22 @@ module Aws::EC2
507
507
  # @example Request syntax with placeholder values
508
508
  #
509
509
  # vpc.modify_attribute({
510
- # enable_dns_support: {
510
+ # enable_dns_hostnames: {
511
511
  # value: false,
512
512
  # },
513
- # enable_dns_hostnames: {
513
+ # enable_dns_support: {
514
514
  # value: false,
515
515
  # },
516
516
  # })
517
517
  # @param [Hash] options ({})
518
+ # @option options [Types::AttributeBooleanValue] :enable_dns_hostnames
519
+ # Indicates whether the instances launched in the VPC get DNS hostnames.
520
+ # If enabled, instances in the VPC get DNS hostnames; otherwise, they do
521
+ # not.
522
+ #
523
+ # You cannot modify the DNS resolution and DNS hostnames attributes in
524
+ # the same request. Use separate requests for each attribute. You can
525
+ # only enable DNS hostnames if you've enabled DNS support.
518
526
  # @option options [Types::AttributeBooleanValue] :enable_dns_support
519
527
  # Indicates whether the DNS resolution is supported for the VPC. If
520
528
  # enabled, queries to the Amazon provided DNS server at the
@@ -525,14 +533,6 @@ module Aws::EC2
525
533
  #
526
534
  # You cannot modify the DNS resolution and DNS hostnames attributes in
527
535
  # the same request. Use separate requests for each attribute.
528
- # @option options [Types::AttributeBooleanValue] :enable_dns_hostnames
529
- # Indicates whether the instances launched in the VPC get DNS hostnames.
530
- # If enabled, instances in the VPC get DNS hostnames; otherwise, they do
531
- # not.
532
- #
533
- # You cannot modify the DNS resolution and DNS hostnames attributes in
534
- # the same request. Use separate requests for each attribute. You can
535
- # only enable DNS hostnames if you've enabled DNS support.
536
536
  # @return [EmptyStructure]
537
537
  def modify_attribute(options = {})
538
538
  options = options.merge(vpc_id: @id)
@@ -544,8 +544,8 @@ module Aws::EC2
544
544
  #
545
545
  # vpcpeeringconnection = vpc.request_vpc_peering_connection({
546
546
  # dry_run: false,
547
- # peer_vpc_id: "String",
548
547
  # peer_owner_id: "String",
548
+ # peer_vpc_id: "String",
549
549
  # })
550
550
  # @param [Hash] options ({})
551
551
  # @option options [Boolean] :dry_run
@@ -553,13 +553,13 @@ module Aws::EC2
553
553
  # without actually making the request, and provides an error response.
554
554
  # If you have the required permissions, the error response is
555
555
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
556
- # @option options [String] :peer_vpc_id
557
- # The ID of the VPC with which you are creating the VPC peering
558
- # connection.
559
556
  # @option options [String] :peer_owner_id
560
557
  # The AWS account ID of the owner of the peer VPC.
561
558
  #
562
559
  # Default: Your AWS account ID
560
+ # @option options [String] :peer_vpc_id
561
+ # The ID of the VPC with which you are creating the VPC peering
562
+ # connection.
563
563
  # @return [VpcPeeringConnection]
564
564
  def request_vpc_peering_connection(options = {})
565
565
  options = options.merge(vpc_id: @id)
@@ -576,25 +576,16 @@ module Aws::EC2
576
576
  # @example Request syntax with placeholder values
577
577
  #
578
578
  # accepted_vpc_peering_connections = vpc.accepted_vpc_peering_connections({
579
- # dry_run: false,
580
- # vpc_peering_connection_ids: ["String"],
581
579
  # filters: [
582
580
  # {
583
581
  # name: "String",
584
582
  # values: ["String"],
585
583
  # },
586
584
  # ],
585
+ # dry_run: false,
586
+ # vpc_peering_connection_ids: ["String"],
587
587
  # })
588
588
  # @param [Hash] options ({})
589
- # @option options [Boolean] :dry_run
590
- # Checks whether you have the required permissions for the action,
591
- # without actually making the request, and provides an error response.
592
- # If you have the required permissions, the error response is
593
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
594
- # @option options [Array<String>] :vpc_peering_connection_ids
595
- # One or more VPC peering connection IDs.
596
- #
597
- # Default: Describes all your VPC peering connections.
598
589
  # @option options [Array<Types::Filter>] :filters
599
590
  # One or more filters.
600
591
  #
@@ -642,6 +633,15 @@ module Aws::EC2
642
633
  # filter is independent of the `tag-key` filter.
643
634
  #
644
635
  # * `vpc-peering-connection-id` - The ID of the VPC peering connection.
636
+ # @option options [Boolean] :dry_run
637
+ # Checks whether you have the required permissions for the action,
638
+ # without actually making the request, and provides an error response.
639
+ # If you have the required permissions, the error response is
640
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
641
+ # @option options [Array<String>] :vpc_peering_connection_ids
642
+ # One or more VPC peering connection IDs.
643
+ #
644
+ # Default: Describes all your VPC peering connections.
645
645
  # @return [VpcPeeringConnection::Collection]
646
646
  def accepted_vpc_peering_connections(options = {})
647
647
  batches = Enumerator.new do |y|
@@ -678,25 +678,16 @@ module Aws::EC2
678
678
  # @example Request syntax with placeholder values
679
679
  #
680
680
  # instances = vpc.instances({
681
- # dry_run: false,
682
- # instance_ids: ["String"],
683
681
  # filters: [
684
682
  # {
685
683
  # name: "String",
686
684
  # values: ["String"],
687
685
  # },
688
686
  # ],
687
+ # instance_ids: ["String"],
688
+ # dry_run: false,
689
689
  # })
690
690
  # @param [Hash] options ({})
691
- # @option options [Boolean] :dry_run
692
- # Checks whether you have the required permissions for the action,
693
- # without actually making the request, and provides an error response.
694
- # If you have the required permissions, the error response is
695
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
696
- # @option options [Array<String>] :instance_ids
697
- # One or more instance IDs.
698
- #
699
- # Default: Describes all your instances.
700
691
  # @option options [Array<Types::Filter>] :filters
701
692
  # One or more filters.
702
693
  #
@@ -959,6 +950,15 @@ module Aws::EC2
959
950
  # (`paravirtual` \| `hvm`).
960
951
  #
961
952
  # * `vpc-id` - The ID of the VPC that the instance is running in.
953
+ # @option options [Array<String>] :instance_ids
954
+ # One or more instance IDs.
955
+ #
956
+ # Default: Describes all your instances.
957
+ # @option options [Boolean] :dry_run
958
+ # Checks whether you have the required permissions for the action,
959
+ # without actually making the request, and provides an error response.
960
+ # If you have the required permissions, the error response is
961
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
962
962
  # @return [Instance::Collection]
963
963
  def instances(options = {})
964
964
  batches = Enumerator.new do |y|
@@ -987,25 +987,16 @@ module Aws::EC2
987
987
  # @example Request syntax with placeholder values
988
988
  #
989
989
  # internet_gateways = vpc.internet_gateways({
990
- # dry_run: false,
991
- # internet_gateway_ids: ["String"],
992
990
  # filters: [
993
991
  # {
994
992
  # name: "String",
995
993
  # values: ["String"],
996
994
  # },
997
995
  # ],
996
+ # dry_run: false,
997
+ # internet_gateway_ids: ["String"],
998
998
  # })
999
999
  # @param [Hash] options ({})
1000
- # @option options [Boolean] :dry_run
1001
- # Checks whether you have the required permissions for the action,
1002
- # without actually making the request, and provides an error response.
1003
- # If you have the required permissions, the error response is
1004
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1005
- # @option options [Array<String>] :internet_gateway_ids
1006
- # One or more Internet gateway IDs.
1007
- #
1008
- # Default: Describes all your Internet gateways.
1009
1000
  # @option options [Array<Types::Filter>] :filters
1010
1001
  # One or more filters.
1011
1002
  #
@@ -1033,6 +1024,15 @@ module Aws::EC2
1033
1024
  #
1034
1025
  # * `tag-value` - The value of a tag assigned to the resource. This
1035
1026
  # filter is independent of the `tag-key` filter.
1027
+ # @option options [Boolean] :dry_run
1028
+ # Checks whether you have the required permissions for the action,
1029
+ # without actually making the request, and provides an error response.
1030
+ # If you have the required permissions, the error response is
1031
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1032
+ # @option options [Array<String>] :internet_gateway_ids
1033
+ # One or more Internet gateway IDs.
1034
+ #
1035
+ # Default: Describes all your Internet gateways.
1036
1036
  # @return [InternetGateway::Collection]
1037
1037
  def internet_gateways(options = {})
1038
1038
  batches = Enumerator.new do |y|
@@ -1057,25 +1057,16 @@ module Aws::EC2
1057
1057
  # @example Request syntax with placeholder values
1058
1058
  #
1059
1059
  # network_acls = vpc.network_acls({
1060
- # dry_run: false,
1061
- # network_acl_ids: ["String"],
1062
1060
  # filters: [
1063
1061
  # {
1064
1062
  # name: "String",
1065
1063
  # values: ["String"],
1066
1064
  # },
1067
1065
  # ],
1066
+ # dry_run: false,
1067
+ # network_acl_ids: ["String"],
1068
1068
  # })
1069
1069
  # @param [Hash] options ({})
1070
- # @option options [Boolean] :dry_run
1071
- # Checks whether you have the required permissions for the action,
1072
- # without actually making the request, and provides an error response.
1073
- # If you have the required permissions, the error response is
1074
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1075
- # @option options [Array<String>] :network_acl_ids
1076
- # One or more network ACL IDs.
1077
- #
1078
- # Default: Describes all your network ACLs.
1079
1070
  # @option options [Array<Types::Filter>] :filters
1080
1071
  # One or more filters.
1081
1072
  #
@@ -1137,6 +1128,15 @@ module Aws::EC2
1137
1128
  # filter is independent of the `tag-key` filter.
1138
1129
  #
1139
1130
  # * `vpc-id` - The ID of the VPC for the network ACL.
1131
+ # @option options [Boolean] :dry_run
1132
+ # Checks whether you have the required permissions for the action,
1133
+ # without actually making the request, and provides an error response.
1134
+ # If you have the required permissions, the error response is
1135
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1136
+ # @option options [Array<String>] :network_acl_ids
1137
+ # One or more network ACL IDs.
1138
+ #
1139
+ # Default: Describes all your network ACLs.
1140
1140
  # @return [NetworkAcl::Collection]
1141
1141
  def network_acls(options = {})
1142
1142
  batches = Enumerator.new do |y|
@@ -1161,25 +1161,16 @@ module Aws::EC2
1161
1161
  # @example Request syntax with placeholder values
1162
1162
  #
1163
1163
  # network_interfaces = vpc.network_interfaces({
1164
- # dry_run: false,
1165
- # network_interface_ids: ["String"],
1166
1164
  # filters: [
1167
1165
  # {
1168
1166
  # name: "String",
1169
1167
  # values: ["String"],
1170
1168
  # },
1171
1169
  # ],
1170
+ # dry_run: false,
1171
+ # network_interface_ids: ["String"],
1172
1172
  # })
1173
1173
  # @param [Hash] options ({})
1174
- # @option options [Boolean] :dry_run
1175
- # Checks whether you have the required permissions for the action,
1176
- # without actually making the request, and provides an error response.
1177
- # If you have the required permissions, the error response is
1178
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1179
- # @option options [Array<String>] :network_interface_ids
1180
- # One or more network interface IDs.
1181
- #
1182
- # Default: Describes all your network interfaces.
1183
1174
  # @option options [Array<Types::Filter>] :filters
1184
1175
  # One or more filters.
1185
1176
  #
@@ -1299,6 +1290,15 @@ module Aws::EC2
1299
1290
  # filter is independent of the `tag-key` filter.
1300
1291
  #
1301
1292
  # * `vpc-id` - The ID of the VPC for the network interface.
1293
+ # @option options [Boolean] :dry_run
1294
+ # Checks whether you have the required permissions for the action,
1295
+ # without actually making the request, and provides an error response.
1296
+ # If you have the required permissions, the error response is
1297
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1298
+ # @option options [Array<String>] :network_interface_ids
1299
+ # One or more network interface IDs.
1300
+ #
1301
+ # Default: Describes all your network interfaces.
1302
1302
  # @return [NetworkInterface::Collection]
1303
1303
  def network_interfaces(options = {})
1304
1304
  batches = Enumerator.new do |y|
@@ -1323,25 +1323,16 @@ module Aws::EC2
1323
1323
  # @example Request syntax with placeholder values
1324
1324
  #
1325
1325
  # requested_vpc_peering_connections = vpc.requested_vpc_peering_connections({
1326
- # dry_run: false,
1327
- # vpc_peering_connection_ids: ["String"],
1328
1326
  # filters: [
1329
1327
  # {
1330
1328
  # name: "String",
1331
1329
  # values: ["String"],
1332
1330
  # },
1333
1331
  # ],
1332
+ # dry_run: false,
1333
+ # vpc_peering_connection_ids: ["String"],
1334
1334
  # })
1335
1335
  # @param [Hash] options ({})
1336
- # @option options [Boolean] :dry_run
1337
- # Checks whether you have the required permissions for the action,
1338
- # without actually making the request, and provides an error response.
1339
- # If you have the required permissions, the error response is
1340
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1341
- # @option options [Array<String>] :vpc_peering_connection_ids
1342
- # One or more VPC peering connection IDs.
1343
- #
1344
- # Default: Describes all your VPC peering connections.
1345
1336
  # @option options [Array<Types::Filter>] :filters
1346
1337
  # One or more filters.
1347
1338
  #
@@ -1389,6 +1380,15 @@ module Aws::EC2
1389
1380
  # filter is independent of the `tag-key` filter.
1390
1381
  #
1391
1382
  # * `vpc-peering-connection-id` - The ID of the VPC peering connection.
1383
+ # @option options [Boolean] :dry_run
1384
+ # Checks whether you have the required permissions for the action,
1385
+ # without actually making the request, and provides an error response.
1386
+ # If you have the required permissions, the error response is
1387
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1388
+ # @option options [Array<String>] :vpc_peering_connection_ids
1389
+ # One or more VPC peering connection IDs.
1390
+ #
1391
+ # Default: Describes all your VPC peering connections.
1392
1392
  # @return [VpcPeeringConnection::Collection]
1393
1393
  def requested_vpc_peering_connections(options = {})
1394
1394
  batches = Enumerator.new do |y|
@@ -1413,25 +1413,16 @@ module Aws::EC2
1413
1413
  # @example Request syntax with placeholder values
1414
1414
  #
1415
1415
  # route_tables = vpc.route_tables({
1416
- # dry_run: false,
1417
- # route_table_ids: ["String"],
1418
1416
  # filters: [
1419
1417
  # {
1420
1418
  # name: "String",
1421
1419
  # values: ["String"],
1422
1420
  # },
1423
1421
  # ],
1422
+ # dry_run: false,
1423
+ # route_table_ids: ["String"],
1424
1424
  # })
1425
1425
  # @param [Hash] options ({})
1426
- # @option options [Boolean] :dry_run
1427
- # Checks whether you have the required permissions for the action,
1428
- # without actually making the request, and provides an error response.
1429
- # If you have the required permissions, the error response is
1430
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1431
- # @option options [Array<String>] :route_table_ids
1432
- # One or more route table IDs.
1433
- #
1434
- # Default: Describes all your route tables.
1435
1426
  # @option options [Array<Types::Filter>] :filters
1436
1427
  # One or more filters.
1437
1428
  #
@@ -1504,6 +1495,15 @@ module Aws::EC2
1504
1495
  # filter is independent of the `tag-key` filter.
1505
1496
  #
1506
1497
  # * `vpc-id` - The ID of the VPC for the route table.
1498
+ # @option options [Boolean] :dry_run
1499
+ # Checks whether you have the required permissions for the action,
1500
+ # without actually making the request, and provides an error response.
1501
+ # If you have the required permissions, the error response is
1502
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1503
+ # @option options [Array<String>] :route_table_ids
1504
+ # One or more route table IDs.
1505
+ #
1506
+ # Default: Describes all your route tables.
1507
1507
  # @return [RouteTable::Collection]
1508
1508
  def route_tables(options = {})
1509
1509
  batches = Enumerator.new do |y|
@@ -1528,34 +1528,17 @@ module Aws::EC2
1528
1528
  # @example Request syntax with placeholder values
1529
1529
  #
1530
1530
  # security_groups = vpc.security_groups({
1531
- # dry_run: false,
1532
- # group_names: ["String"],
1533
- # group_ids: ["String"],
1534
1531
  # filters: [
1535
1532
  # {
1536
1533
  # name: "String",
1537
1534
  # values: ["String"],
1538
1535
  # },
1539
1536
  # ],
1537
+ # group_ids: ["String"],
1538
+ # group_names: ["String"],
1539
+ # dry_run: false,
1540
1540
  # })
1541
1541
  # @param [Hash] options ({})
1542
- # @option options [Boolean] :dry_run
1543
- # Checks whether you have the required permissions for the action,
1544
- # without actually making the request, and provides an error response.
1545
- # If you have the required permissions, the error response is
1546
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1547
- # @option options [Array<String>] :group_names
1548
- # \[EC2-Classic and default VPC only\] One or more security group names.
1549
- # You can specify either the security group name or the security group
1550
- # ID. For security groups in a nondefault VPC, use the `group-name`
1551
- # filter to describe security groups by name.
1552
- #
1553
- # Default: Describes all your security groups.
1554
- # @option options [Array<String>] :group_ids
1555
- # One or more security group IDs. Required for security groups in a
1556
- # nondefault VPC.
1557
- #
1558
- # Default: Describes all your security groups.
1559
1542
  # @option options [Array<Types::Filter>] :filters
1560
1543
  # One or more filters. If using multiple filters for rules, the results
1561
1544
  # include security groups for which any combination of rules - not
@@ -1602,6 +1585,23 @@ module Aws::EC2
1602
1585
  #
1603
1586
  # * `vpc-id` - The ID of the VPC specified when the security group was
1604
1587
  # created.
1588
+ # @option options [Array<String>] :group_ids
1589
+ # One or more security group IDs. Required for security groups in a
1590
+ # nondefault VPC.
1591
+ #
1592
+ # Default: Describes all your security groups.
1593
+ # @option options [Array<String>] :group_names
1594
+ # \[EC2-Classic and default VPC only\] One or more security group names.
1595
+ # You can specify either the security group name or the security group
1596
+ # ID. For security groups in a nondefault VPC, use the `group-name`
1597
+ # filter to describe security groups by name.
1598
+ #
1599
+ # Default: Describes all your security groups.
1600
+ # @option options [Boolean] :dry_run
1601
+ # Checks whether you have the required permissions for the action,
1602
+ # without actually making the request, and provides an error response.
1603
+ # If you have the required permissions, the error response is
1604
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1605
1605
  # @return [SecurityGroup::Collection]
1606
1606
  def security_groups(options = {})
1607
1607
  batches = Enumerator.new do |y|
@@ -1626,25 +1626,16 @@ module Aws::EC2
1626
1626
  # @example Request syntax with placeholder values
1627
1627
  #
1628
1628
  # subnets = vpc.subnets({
1629
- # dry_run: false,
1630
- # subnet_ids: ["String"],
1631
1629
  # filters: [
1632
1630
  # {
1633
1631
  # name: "String",
1634
1632
  # values: ["String"],
1635
1633
  # },
1636
1634
  # ],
1635
+ # subnet_ids: ["String"],
1636
+ # dry_run: false,
1637
1637
  # })
1638
1638
  # @param [Hash] options ({})
1639
- # @option options [Boolean] :dry_run
1640
- # Checks whether you have the required permissions for the action,
1641
- # without actually making the request, and provides an error response.
1642
- # If you have the required permissions, the error response is
1643
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1644
- # @option options [Array<String>] :subnet_ids
1645
- # One or more subnet IDs.
1646
- #
1647
- # Default: Describes all your subnets.
1648
1639
  # @option options [Array<Types::Filter>] :filters
1649
1640
  # One or more filters.
1650
1641
  #
@@ -1694,6 +1685,15 @@ module Aws::EC2
1694
1685
  # filter is independent of the `tag-key` filter.
1695
1686
  #
1696
1687
  # * `vpc-id` - The ID of the VPC for the subnet.
1688
+ # @option options [Array<String>] :subnet_ids
1689
+ # One or more subnet IDs.
1690
+ #
1691
+ # Default: Describes all your subnets.
1692
+ # @option options [Boolean] :dry_run
1693
+ # Checks whether you have the required permissions for the action,
1694
+ # without actually making the request, and provides an error response.
1695
+ # If you have the required permissions, the error response is
1696
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1697
1697
  # @return [Subnet::Collection]
1698
1698
  def subnets(options = {})
1699
1699
  batches = Enumerator.new do |y|