aws-sdk-ec2 1.479.0 → 1.480.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +11 -11
  5. data/lib/aws-sdk-ec2/client.rb +2723 -2713
  6. data/lib/aws-sdk-ec2/client_api.rb +438 -436
  7. data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
  8. data/lib/aws-sdk-ec2/image.rb +82 -82
  9. data/lib/aws-sdk-ec2/instance.rb +285 -285
  10. data/lib/aws-sdk-ec2/key_pair.rb +12 -12
  11. data/lib/aws-sdk-ec2/key_pair_info.rb +27 -27
  12. data/lib/aws-sdk-ec2/network_acl.rb +60 -60
  13. data/lib/aws-sdk-ec2/network_interface.rb +65 -65
  14. data/lib/aws-sdk-ec2/placement_group.rb +11 -11
  15. data/lib/aws-sdk-ec2/resource.rb +597 -597
  16. data/lib/aws-sdk-ec2/route.rb +30 -30
  17. data/lib/aws-sdk-ec2/route_table.rb +37 -37
  18. data/lib/aws-sdk-ec2/security_group.rb +137 -137
  19. data/lib/aws-sdk-ec2/snapshot.rb +77 -77
  20. data/lib/aws-sdk-ec2/subnet.rb +276 -276
  21. data/lib/aws-sdk-ec2/types.rb +3284 -3291
  22. data/lib/aws-sdk-ec2/volume.rb +93 -93
  23. data/lib/aws-sdk-ec2/vpc.rb +143 -143
  24. data/lib/aws-sdk-ec2/vpc_address.rb +17 -17
  25. data/lib/aws-sdk-ec2.rb +1 -1
  26. data/sig/classic_address.rbs +5 -5
  27. data/sig/client.rbs +872 -872
  28. data/sig/dhcp_options.rbs +3 -3
  29. data/sig/image.rbs +41 -41
  30. data/sig/instance.rbs +108 -108
  31. data/sig/key_pair.rbs +6 -6
  32. data/sig/key_pair_info.rbs +3 -3
  33. data/sig/network_acl.rbs +16 -16
  34. data/sig/network_interface.rbs +22 -22
  35. data/sig/placement_group.rbs +3 -3
  36. data/sig/resource.rbs +201 -201
  37. data/sig/route.rbs +9 -9
  38. data/sig/route_table.rbs +10 -10
  39. data/sig/security_group.rbs +110 -110
  40. data/sig/snapshot.rbs +34 -34
  41. data/sig/subnet.rbs +116 -116
  42. data/sig/types.rbs +438 -437
  43. data/sig/volume.rbs +33 -33
  44. data/sig/vpc.rbs +46 -46
  45. data/sig/vpc_address.rbs +8 -8
  46. data/sig/waiters.rbs +113 -113
  47. metadata +2 -2
@@ -35,24 +35,6 @@ module Aws::EC2
35
35
  end
36
36
  alias :vpc_id :id
37
37
 
38
- # The primary IPv4 CIDR block for the VPC.
39
- # @return [String]
40
- def cidr_block
41
- data[:cidr_block]
42
- end
43
-
44
- # The ID of the set of DHCP options you've associated with the VPC.
45
- # @return [String]
46
- def dhcp_options_id
47
- data[:dhcp_options_id]
48
- end
49
-
50
- # The current state of the VPC.
51
- # @return [String]
52
- def state
53
- data[:state]
54
- end
55
-
56
38
  # The ID of the Amazon Web Services account that owns the VPC.
57
39
  # @return [String]
58
40
  def owner_id
@@ -89,6 +71,24 @@ module Aws::EC2
89
71
  data[:tags]
90
72
  end
91
73
 
74
+ # The current state of the VPC.
75
+ # @return [String]
76
+ def state
77
+ data[:state]
78
+ end
79
+
80
+ # The primary IPv4 CIDR block for the VPC.
81
+ # @return [String]
82
+ def cidr_block
83
+ data[:cidr_block]
84
+ end
85
+
86
+ # The ID of the set of DHCP options you've associated with the VPC.
87
+ # @return [String]
88
+ def dhcp_options_id
89
+ data[:dhcp_options_id]
90
+ end
91
+
92
92
  # @!endgroup
93
93
 
94
94
  # @return [Client]
@@ -307,8 +307,8 @@ module Aws::EC2
307
307
  #
308
308
  # vpc.attach_classic_link_instance({
309
309
  # dry_run: false,
310
- # groups: ["SecurityGroupId"], # required
311
310
  # instance_id: "InstanceId", # required
311
+ # groups: ["SecurityGroupId"], # required
312
312
  # })
313
313
  # @param [Hash] options ({})
314
314
  # @option options [Boolean] :dry_run
@@ -316,11 +316,11 @@ module Aws::EC2
316
316
  # without actually making the request, and provides an error response.
317
317
  # If you have the required permissions, the error response is
318
318
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
319
+ # @option options [required, String] :instance_id
320
+ # The ID of the EC2-Classic instance.
319
321
  # @option options [required, Array<String>] :groups
320
322
  # The IDs of the security groups. You cannot specify security groups
321
323
  # from a different VPC.
322
- # @option options [required, String] :instance_id
323
- # The ID of the EC2-Classic instance.
324
324
  # @return [Types::AttachClassicLinkVpcResult]
325
325
  def attach_classic_link_instance(options = {})
326
326
  options = options.merge(vpc_id: @id)
@@ -356,7 +356,6 @@ module Aws::EC2
356
356
  # @example Request syntax with placeholder values
357
357
  #
358
358
  # networkacl = vpc.create_network_acl({
359
- # dry_run: false,
360
359
  # tag_specifications: [
361
360
  # {
362
361
  # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, ipam-external-resource-verification-token
@@ -369,13 +368,9 @@ module Aws::EC2
369
368
  # },
370
369
  # ],
371
370
  # client_token: "String",
371
+ # dry_run: false,
372
372
  # })
373
373
  # @param [Hash] options ({})
374
- # @option options [Boolean] :dry_run
375
- # Checks whether you have the required permissions for the action,
376
- # without actually making the request, and provides an error response.
377
- # If you have the required permissions, the error response is
378
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
379
374
  # @option options [Array<Types::TagSpecification>] :tag_specifications
380
375
  # The tags to assign to the network ACL.
381
376
  # @option options [String] :client_token
@@ -386,6 +381,11 @@ module Aws::EC2
386
381
  #
387
382
  #
388
383
  # [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
384
+ # @option options [Boolean] :dry_run
385
+ # Checks whether you have the required permissions for the action,
386
+ # without actually making the request, and provides an error response.
387
+ # If you have the required permissions, the error response is
388
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
389
389
  # @return [NetworkAcl]
390
390
  def create_network_acl(options = {})
391
391
  options = options.merge(vpc_id: @id)
@@ -402,7 +402,6 @@ module Aws::EC2
402
402
  # @example Request syntax with placeholder values
403
403
  #
404
404
  # routetable = vpc.create_route_table({
405
- # dry_run: false,
406
405
  # tag_specifications: [
407
406
  # {
408
407
  # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, ipam-external-resource-verification-token
@@ -415,13 +414,9 @@ module Aws::EC2
415
414
  # },
416
415
  # ],
417
416
  # client_token: "String",
417
+ # dry_run: false,
418
418
  # })
419
419
  # @param [Hash] options ({})
420
- # @option options [Boolean] :dry_run
421
- # Checks whether you have the required permissions for the action,
422
- # without actually making the request, and provides an error response.
423
- # If you have the required permissions, the error response is
424
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
425
420
  # @option options [Array<Types::TagSpecification>] :tag_specifications
426
421
  # The tags to assign to the route table.
427
422
  # @option options [String] :client_token
@@ -432,6 +427,11 @@ module Aws::EC2
432
427
  #
433
428
  #
434
429
  # [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
430
+ # @option options [Boolean] :dry_run
431
+ # Checks whether you have the required permissions for the action,
432
+ # without actually making the request, and provides an error response.
433
+ # If you have the required permissions, the error response is
434
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
435
435
  # @return [RouteTable]
436
436
  def create_route_table(options = {})
437
437
  options = options.merge(vpc_id: @id)
@@ -516,12 +516,12 @@ module Aws::EC2
516
516
  # cidr_block: "String",
517
517
  # ipv_6_cidr_block: "String",
518
518
  # outpost_arn: "String",
519
- # dry_run: false,
520
519
  # ipv_6_native: false,
521
520
  # ipv_4_ipam_pool_id: "IpamPoolId",
522
521
  # ipv_4_netmask_length: 1,
523
522
  # ipv_6_ipam_pool_id: "IpamPoolId",
524
523
  # ipv_6_netmask_length: 1,
524
+ # dry_run: false,
525
525
  # })
526
526
  # @param [Hash] options ({})
527
527
  # @option options [Array<Types::TagSpecification>] :tag_specifications
@@ -559,11 +559,6 @@ module Aws::EC2
559
559
  # The Amazon Resource Name (ARN) of the Outpost. If you specify an
560
560
  # Outpost ARN, you must also specify the Availability Zone of the
561
561
  # Outpost subnet.
562
- # @option options [Boolean] :dry_run
563
- # Checks whether you have the required permissions for the action,
564
- # without actually making the request, and provides an error response.
565
- # If you have the required permissions, the error response is
566
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
567
562
  # @option options [Boolean] :ipv_6_native
568
563
  # Indicates whether to create an IPv6 only subnet.
569
564
  # @option options [String] :ipv_4_ipam_pool_id
@@ -574,6 +569,11 @@ module Aws::EC2
574
569
  # An IPv6 IPAM pool ID for the subnet.
575
570
  # @option options [Integer] :ipv_6_netmask_length
576
571
  # An IPv6 netmask length for the subnet.
572
+ # @option options [Boolean] :dry_run
573
+ # Checks whether you have the required permissions for the action,
574
+ # without actually making the request, and provides an error response.
575
+ # If you have the required permissions, the error response is
576
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
577
577
  # @return [Subnet]
578
578
  def create_subnet(options = {})
579
579
  options = options.merge(vpc_id: @id)
@@ -849,9 +849,6 @@ module Aws::EC2
849
849
  # @example Request syntax with placeholder values
850
850
  #
851
851
  # vpcpeeringconnection = vpc.request_vpc_peering_connection({
852
- # dry_run: false,
853
- # peer_owner_id: "String",
854
- # peer_vpc_id: "String",
855
852
  # peer_region: "String",
856
853
  # tag_specifications: [
857
854
  # {
@@ -864,27 +861,30 @@ module Aws::EC2
864
861
  # ],
865
862
  # },
866
863
  # ],
864
+ # dry_run: false,
865
+ # peer_vpc_id: "String",
866
+ # peer_owner_id: "String",
867
867
  # })
868
868
  # @param [Hash] options ({})
869
+ # @option options [String] :peer_region
870
+ # The Region code for the accepter VPC, if the accepter VPC is located
871
+ # in a Region other than the Region in which you make the request.
872
+ #
873
+ # Default: The Region in which you make the request.
874
+ # @option options [Array<Types::TagSpecification>] :tag_specifications
875
+ # The tags to assign to the peering connection.
869
876
  # @option options [Boolean] :dry_run
870
877
  # Checks whether you have the required permissions for the action,
871
878
  # without actually making the request, and provides an error response.
872
879
  # If you have the required permissions, the error response is
873
880
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
874
- # @option options [String] :peer_owner_id
875
- # The Amazon Web Services account ID of the owner of the accepter VPC.
876
- #
877
- # Default: Your Amazon Web Services account ID
878
881
  # @option options [String] :peer_vpc_id
879
882
  # The ID of the VPC with which you are creating the VPC peering
880
883
  # connection. You must specify this parameter in the request.
881
- # @option options [String] :peer_region
882
- # The Region code for the accepter VPC, if the accepter VPC is located
883
- # in a Region other than the Region in which you make the request.
884
+ # @option options [String] :peer_owner_id
885
+ # The Amazon Web Services account ID of the owner of the accepter VPC.
884
886
  #
885
- # Default: The Region in which you make the request.
886
- # @option options [Array<Types::TagSpecification>] :tag_specifications
887
- # The tags to assign to the peering connection.
887
+ # Default: Your Amazon Web Services account ID
888
888
  # @return [VpcPeeringConnection]
889
889
  def request_vpc_peering_connection(options = {})
890
890
  options = options.merge(vpc_id: @id)
@@ -903,16 +903,25 @@ module Aws::EC2
903
903
  # @example Request syntax with placeholder values
904
904
  #
905
905
  # accepted_vpc_peering_connections = vpc.accepted_vpc_peering_connections({
906
+ # dry_run: false,
907
+ # vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
906
908
  # filters: [
907
909
  # {
908
910
  # name: "String",
909
911
  # values: ["String"],
910
912
  # },
911
913
  # ],
912
- # dry_run: false,
913
- # vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
914
914
  # })
915
915
  # @param [Hash] options ({})
916
+ # @option options [Boolean] :dry_run
917
+ # Checks whether you have the required permissions for the action,
918
+ # without actually making the request, and provides an error response.
919
+ # If you have the required permissions, the error response is
920
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
921
+ # @option options [Array<String>] :vpc_peering_connection_ids
922
+ # The IDs of the VPC peering connections.
923
+ #
924
+ # Default: Describes all your VPC peering connections.
916
925
  # @option options [Array<Types::Filter>] :filters
917
926
  # The filters.
918
927
  #
@@ -953,15 +962,6 @@ module Aws::EC2
953
962
  # regardless of the tag value.
954
963
  #
955
964
  # * `vpc-peering-connection-id` - The ID of the VPC peering connection.
956
- # @option options [Boolean] :dry_run
957
- # Checks whether you have the required permissions for the action,
958
- # without actually making the request, and provides an error response.
959
- # If you have the required permissions, the error response is
960
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
961
- # @option options [Array<String>] :vpc_peering_connection_ids
962
- # The IDs of the VPC peering connections.
963
- #
964
- # Default: Describes all your VPC peering connections.
965
965
  # @return [VpcPeeringConnection::Collection]
966
966
  def accepted_vpc_peering_connections(options = {})
967
967
  batches = Enumerator.new do |y|
@@ -1002,16 +1002,25 @@ module Aws::EC2
1002
1002
  # @example Request syntax with placeholder values
1003
1003
  #
1004
1004
  # instances = vpc.instances({
1005
+ # instance_ids: ["InstanceId"],
1006
+ # dry_run: false,
1005
1007
  # filters: [
1006
1008
  # {
1007
1009
  # name: "String",
1008
1010
  # values: ["String"],
1009
1011
  # },
1010
1012
  # ],
1011
- # instance_ids: ["InstanceId"],
1012
- # dry_run: false,
1013
1013
  # })
1014
1014
  # @param [Hash] options ({})
1015
+ # @option options [Array<String>] :instance_ids
1016
+ # The instance IDs.
1017
+ #
1018
+ # Default: Describes all your instances.
1019
+ # @option options [Boolean] :dry_run
1020
+ # Checks whether you have the required permissions for the operation,
1021
+ # without actually making the request, and provides an error response.
1022
+ # If you have the required permissions, the error response is
1023
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1015
1024
  # @option options [Array<Types::Filter>] :filters
1016
1025
  # The filters.
1017
1026
  #
@@ -1441,15 +1450,6 @@ module Aws::EC2
1441
1450
  # (`paravirtual` \| `hvm`).
1442
1451
  #
1443
1452
  # * `vpc-id` - The ID of the VPC that the instance is running in.
1444
- # @option options [Array<String>] :instance_ids
1445
- # The instance IDs.
1446
- #
1447
- # Default: Describes all your instances.
1448
- # @option options [Boolean] :dry_run
1449
- # Checks whether you have the required permissions for the operation,
1450
- # without actually making the request, and provides an error response.
1451
- # If you have the required permissions, the error response is
1452
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1453
1453
  # @return [Instance::Collection]
1454
1454
  def instances(options = {})
1455
1455
  batches = Enumerator.new do |y|
@@ -1480,16 +1480,25 @@ module Aws::EC2
1480
1480
  # @example Request syntax with placeholder values
1481
1481
  #
1482
1482
  # internet_gateways = vpc.internet_gateways({
1483
+ # dry_run: false,
1484
+ # internet_gateway_ids: ["InternetGatewayId"],
1483
1485
  # filters: [
1484
1486
  # {
1485
1487
  # name: "String",
1486
1488
  # values: ["String"],
1487
1489
  # },
1488
1490
  # ],
1489
- # dry_run: false,
1490
- # internet_gateway_ids: ["InternetGatewayId"],
1491
1491
  # })
1492
1492
  # @param [Hash] options ({})
1493
+ # @option options [Boolean] :dry_run
1494
+ # Checks whether you have the required permissions for the action,
1495
+ # without actually making the request, and provides an error response.
1496
+ # If you have the required permissions, the error response is
1497
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1498
+ # @option options [Array<String>] :internet_gateway_ids
1499
+ # The IDs of the internet gateways.
1500
+ #
1501
+ # Default: Describes all your internet gateways.
1493
1502
  # @option options [Array<Types::Filter>] :filters
1494
1503
  # The filters.
1495
1504
  #
@@ -1513,15 +1522,6 @@ module Aws::EC2
1513
1522
  # * `tag-key` - The key of a tag assigned to the resource. Use this
1514
1523
  # filter to find all resources assigned a tag with a specific key,
1515
1524
  # regardless of the tag value.
1516
- # @option options [Boolean] :dry_run
1517
- # Checks whether you have the required permissions for the action,
1518
- # without actually making the request, and provides an error response.
1519
- # If you have the required permissions, the error response is
1520
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1521
- # @option options [Array<String>] :internet_gateway_ids
1522
- # The IDs of the internet gateways.
1523
- #
1524
- # Default: Describes all your internet gateways.
1525
1525
  # @return [InternetGateway::Collection]
1526
1526
  def internet_gateways(options = {})
1527
1527
  batches = Enumerator.new do |y|
@@ -1550,16 +1550,23 @@ module Aws::EC2
1550
1550
  # @example Request syntax with placeholder values
1551
1551
  #
1552
1552
  # network_acls = vpc.network_acls({
1553
+ # dry_run: false,
1554
+ # network_acl_ids: ["NetworkAclId"],
1553
1555
  # filters: [
1554
1556
  # {
1555
1557
  # name: "String",
1556
1558
  # values: ["String"],
1557
1559
  # },
1558
1560
  # ],
1559
- # dry_run: false,
1560
- # network_acl_ids: ["NetworkAclId"],
1561
1561
  # })
1562
1562
  # @param [Hash] options ({})
1563
+ # @option options [Boolean] :dry_run
1564
+ # Checks whether you have the required permissions for the action,
1565
+ # without actually making the request, and provides an error response.
1566
+ # If you have the required permissions, the error response is
1567
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1568
+ # @option options [Array<String>] :network_acl_ids
1569
+ # The IDs of the network ACLs.
1563
1570
  # @option options [Array<Types::Filter>] :filters
1564
1571
  # The filters.
1565
1572
  #
@@ -1617,13 +1624,6 @@ module Aws::EC2
1617
1624
  # regardless of the tag value.
1618
1625
  #
1619
1626
  # * `vpc-id` - The ID of the VPC for the network ACL.
1620
- # @option options [Boolean] :dry_run
1621
- # Checks whether you have the required permissions for the action,
1622
- # without actually making the request, and provides an error response.
1623
- # If you have the required permissions, the error response is
1624
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1625
- # @option options [Array<String>] :network_acl_ids
1626
- # The IDs of the network ACLs.
1627
1627
  # @return [NetworkAcl::Collection]
1628
1628
  def network_acls(options = {})
1629
1629
  batches = Enumerator.new do |y|
@@ -1652,16 +1652,25 @@ module Aws::EC2
1652
1652
  # @example Request syntax with placeholder values
1653
1653
  #
1654
1654
  # network_interfaces = vpc.network_interfaces({
1655
+ # dry_run: false,
1656
+ # network_interface_ids: ["NetworkInterfaceId"],
1655
1657
  # filters: [
1656
1658
  # {
1657
1659
  # name: "String",
1658
1660
  # values: ["String"],
1659
1661
  # },
1660
1662
  # ],
1661
- # dry_run: false,
1662
- # network_interface_ids: ["NetworkInterfaceId"],
1663
1663
  # })
1664
1664
  # @param [Hash] options ({})
1665
+ # @option options [Boolean] :dry_run
1666
+ # Checks whether you have the required permissions for the action,
1667
+ # without actually making the request, and provides an error response.
1668
+ # If you have the required permissions, the error response is
1669
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1670
+ # @option options [Array<String>] :network_interface_ids
1671
+ # The network interface IDs.
1672
+ #
1673
+ # Default: Describes all your network interfaces.
1665
1674
  # @option options [Array<Types::Filter>] :filters
1666
1675
  # One or more filters.
1667
1676
  #
@@ -1777,15 +1786,6 @@ module Aws::EC2
1777
1786
  # regardless of the tag value.
1778
1787
  #
1779
1788
  # * `vpc-id` - The ID of the VPC for the network interface.
1780
- # @option options [Boolean] :dry_run
1781
- # Checks whether you have the required permissions for the action,
1782
- # without actually making the request, and provides an error response.
1783
- # If you have the required permissions, the error response is
1784
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1785
- # @option options [Array<String>] :network_interface_ids
1786
- # The network interface IDs.
1787
- #
1788
- # Default: Describes all your network interfaces.
1789
1789
  # @return [NetworkInterface::Collection]
1790
1790
  def network_interfaces(options = {})
1791
1791
  batches = Enumerator.new do |y|
@@ -1814,16 +1814,25 @@ module Aws::EC2
1814
1814
  # @example Request syntax with placeholder values
1815
1815
  #
1816
1816
  # requested_vpc_peering_connections = vpc.requested_vpc_peering_connections({
1817
+ # dry_run: false,
1818
+ # vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
1817
1819
  # filters: [
1818
1820
  # {
1819
1821
  # name: "String",
1820
1822
  # values: ["String"],
1821
1823
  # },
1822
1824
  # ],
1823
- # dry_run: false,
1824
- # vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
1825
1825
  # })
1826
1826
  # @param [Hash] options ({})
1827
+ # @option options [Boolean] :dry_run
1828
+ # Checks whether you have the required permissions for the action,
1829
+ # without actually making the request, and provides an error response.
1830
+ # If you have the required permissions, the error response is
1831
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1832
+ # @option options [Array<String>] :vpc_peering_connection_ids
1833
+ # The IDs of the VPC peering connections.
1834
+ #
1835
+ # Default: Describes all your VPC peering connections.
1827
1836
  # @option options [Array<Types::Filter>] :filters
1828
1837
  # The filters.
1829
1838
  #
@@ -1864,15 +1873,6 @@ module Aws::EC2
1864
1873
  # regardless of the tag value.
1865
1874
  #
1866
1875
  # * `vpc-peering-connection-id` - The ID of the VPC peering connection.
1867
- # @option options [Boolean] :dry_run
1868
- # Checks whether you have the required permissions for the action,
1869
- # without actually making the request, and provides an error response.
1870
- # If you have the required permissions, the error response is
1871
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1872
- # @option options [Array<String>] :vpc_peering_connection_ids
1873
- # The IDs of the VPC peering connections.
1874
- #
1875
- # Default: Describes all your VPC peering connections.
1876
1876
  # @return [VpcPeeringConnection::Collection]
1877
1877
  def requested_vpc_peering_connections(options = {})
1878
1878
  batches = Enumerator.new do |y|
@@ -1901,16 +1901,23 @@ module Aws::EC2
1901
1901
  # @example Request syntax with placeholder values
1902
1902
  #
1903
1903
  # route_tables = vpc.route_tables({
1904
+ # dry_run: false,
1905
+ # route_table_ids: ["RouteTableId"],
1904
1906
  # filters: [
1905
1907
  # {
1906
1908
  # name: "String",
1907
1909
  # values: ["String"],
1908
1910
  # },
1909
1911
  # ],
1910
- # dry_run: false,
1911
- # route_table_ids: ["RouteTableId"],
1912
1912
  # })
1913
1913
  # @param [Hash] options ({})
1914
+ # @option options [Boolean] :dry_run
1915
+ # Checks whether you have the required permissions for the action,
1916
+ # without actually making the request, and provides an error response.
1917
+ # If you have the required permissions, the error response is
1918
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1919
+ # @option options [Array<String>] :route_table_ids
1920
+ # The IDs of the route tables.
1914
1921
  # @option options [Array<Types::Filter>] :filters
1915
1922
  # The filters.
1916
1923
  #
@@ -1984,13 +1991,6 @@ module Aws::EC2
1984
1991
  # regardless of the tag value.
1985
1992
  #
1986
1993
  # * `vpc-id` - The ID of the VPC for the route table.
1987
- # @option options [Boolean] :dry_run
1988
- # Checks whether you have the required permissions for the action,
1989
- # without actually making the request, and provides an error response.
1990
- # If you have the required permissions, the error response is
1991
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1992
- # @option options [Array<String>] :route_table_ids
1993
- # The IDs of the route tables.
1994
1994
  # @return [RouteTable::Collection]
1995
1995
  def route_tables(options = {})
1996
1996
  batches = Enumerator.new do |y|
@@ -2019,17 +2019,32 @@ module Aws::EC2
2019
2019
  # @example Request syntax with placeholder values
2020
2020
  #
2021
2021
  # security_groups = vpc.security_groups({
2022
+ # group_ids: ["SecurityGroupId"],
2023
+ # group_names: ["SecurityGroupName"],
2024
+ # dry_run: false,
2022
2025
  # filters: [
2023
2026
  # {
2024
2027
  # name: "String",
2025
2028
  # values: ["String"],
2026
2029
  # },
2027
2030
  # ],
2028
- # group_ids: ["SecurityGroupId"],
2029
- # group_names: ["SecurityGroupName"],
2030
- # dry_run: false,
2031
2031
  # })
2032
2032
  # @param [Hash] options ({})
2033
+ # @option options [Array<String>] :group_ids
2034
+ # The IDs of the security groups. Required for security groups in a
2035
+ # nondefault VPC.
2036
+ #
2037
+ # Default: Describes all of your security groups.
2038
+ # @option options [Array<String>] :group_names
2039
+ # \[Default VPC\] The names of the security groups. You can specify
2040
+ # either the security group name or the security group ID.
2041
+ #
2042
+ # Default: Describes all of your security groups.
2043
+ # @option options [Boolean] :dry_run
2044
+ # Checks whether you have the required permissions for the action,
2045
+ # without actually making the request, and provides an error response.
2046
+ # If you have the required permissions, the error response is
2047
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
2033
2048
  # @option options [Array<Types::Filter>] :filters
2034
2049
  # The filters. If using multiple filters for rules, the results include
2035
2050
  # security groups for which any combination of rules - not necessarily a
@@ -2112,21 +2127,6 @@ module Aws::EC2
2112
2127
  #
2113
2128
  # * `vpc-id` - The ID of the VPC specified when the security group was
2114
2129
  # created.
2115
- # @option options [Array<String>] :group_ids
2116
- # The IDs of the security groups. Required for security groups in a
2117
- # nondefault VPC.
2118
- #
2119
- # Default: Describes all of your security groups.
2120
- # @option options [Array<String>] :group_names
2121
- # \[Default VPC\] The names of the security groups. You can specify
2122
- # either the security group name or the security group ID.
2123
- #
2124
- # Default: Describes all of your security groups.
2125
- # @option options [Boolean] :dry_run
2126
- # Checks whether you have the required permissions for the action,
2127
- # without actually making the request, and provides an error response.
2128
- # If you have the required permissions, the error response is
2129
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
2130
2130
  # @return [SecurityGroup::Collection]
2131
2131
  def security_groups(options = {})
2132
2132
  batches = Enumerator.new do |y|
@@ -34,18 +34,6 @@ module Aws::EC2
34
34
  @allocation_id
35
35
  end
36
36
 
37
- # The ID of the instance that the address is associated with (if any).
38
- # @return [String]
39
- def instance_id
40
- data[:instance_id]
41
- end
42
-
43
- # The Elastic IP address.
44
- # @return [String]
45
- def public_ip
46
- data[:public_ip]
47
- end
48
-
49
37
  # The ID representing the association of the address with an instance.
50
38
  # @return [String]
51
39
  def association_id
@@ -117,6 +105,18 @@ module Aws::EC2
117
105
  data[:carrier_ip]
118
106
  end
119
107
 
108
+ # The ID of the instance that the address is associated with (if any).
109
+ # @return [String]
110
+ def instance_id
111
+ data[:instance_id]
112
+ end
113
+
114
+ # The Elastic IP address.
115
+ # @return [String]
116
+ def public_ip
117
+ data[:public_ip]
118
+ end
119
+
120
120
  # @!endgroup
121
121
 
122
122
  # @return [Client]
@@ -260,10 +260,10 @@ module Aws::EC2
260
260
  # vpc_address.associate({
261
261
  # instance_id: "InstanceId",
262
262
  # public_ip: "EipAllocationPublicIp",
263
- # allow_reassociation: false,
264
263
  # dry_run: false,
265
264
  # network_interface_id: "NetworkInterfaceId",
266
265
  # private_ip_address: "String",
266
+ # allow_reassociation: false,
267
267
  # })
268
268
  # @param [Hash] options ({})
269
269
  # @option options [String] :instance_id
@@ -272,10 +272,6 @@ module Aws::EC2
272
272
  # network interface ID, but not both.
273
273
  # @option options [String] :public_ip
274
274
  # Deprecated.
275
- # @option options [Boolean] :allow_reassociation
276
- # Reassociation is automatic, but you can specify false to ensure the
277
- # operation fails if the Elastic IP address is already associated with
278
- # another resource.
279
275
  # @option options [Boolean] :dry_run
280
276
  # Checks whether you have the required permissions for the action,
281
277
  # without actually making the request, and provides an error response.
@@ -291,6 +287,10 @@ module Aws::EC2
291
287
  # The primary or secondary private IP address to associate with the
292
288
  # Elastic IP address. If no private IP address is specified, the Elastic
293
289
  # IP address is associated with the primary private IP address.
290
+ # @option options [Boolean] :allow_reassociation
291
+ # Reassociation is automatic, but you can specify false to ensure the
292
+ # operation fails if the Elastic IP address is already associated with
293
+ # another resource.
294
294
  # @return [Types::AssociateAddressResult]
295
295
  def associate(options = {})
296
296
  options = options.merge(allocation_id: @allocation_id)
data/lib/aws-sdk-ec2.rb CHANGED
@@ -78,7 +78,7 @@ module Aws::EC2
78
78
  autoload :VpcPeeringConnection, 'aws-sdk-ec2/vpc_peering_connection'
79
79
  autoload :VpcAddress, 'aws-sdk-ec2/vpc_address'
80
80
 
81
- GEM_VERSION = '1.479.0'
81
+ GEM_VERSION = '1.480.0'
82
82
 
83
83
  end
84
84