aws-sdk-ec2 1.479.0 → 1.481.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +11 -11
- data/lib/aws-sdk-ec2/client.rb +3074 -2792
- data/lib/aws-sdk-ec2/client_api.rb +562 -438
- data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
- data/lib/aws-sdk-ec2/endpoints.rb +55 -0
- data/lib/aws-sdk-ec2/image.rb +82 -82
- data/lib/aws-sdk-ec2/instance.rb +291 -289
- data/lib/aws-sdk-ec2/key_pair.rb +12 -12
- data/lib/aws-sdk-ec2/key_pair_info.rb +27 -27
- data/lib/aws-sdk-ec2/network_acl.rb +60 -60
- data/lib/aws-sdk-ec2/network_interface.rb +65 -65
- data/lib/aws-sdk-ec2/placement_group.rb +11 -14
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +10 -0
- data/lib/aws-sdk-ec2/resource.rb +594 -602
- data/lib/aws-sdk-ec2/route.rb +30 -30
- data/lib/aws-sdk-ec2/route_table.rb +37 -37
- data/lib/aws-sdk-ec2/security_group.rb +137 -137
- data/lib/aws-sdk-ec2/snapshot.rb +77 -77
- data/lib/aws-sdk-ec2/subnet.rb +279 -287
- data/lib/aws-sdk-ec2/types.rb +3640 -3368
- data/lib/aws-sdk-ec2/volume.rb +93 -93
- data/lib/aws-sdk-ec2/vpc.rb +143 -146
- data/lib/aws-sdk-ec2/vpc_address.rb +17 -17
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/classic_address.rbs +5 -5
- data/sig/client.rbs +948 -881
- data/sig/dhcp_options.rbs +3 -3
- data/sig/image.rbs +41 -41
- data/sig/instance.rbs +108 -108
- data/sig/key_pair.rbs +6 -6
- data/sig/key_pair_info.rbs +3 -3
- data/sig/network_acl.rbs +16 -16
- data/sig/network_interface.rbs +22 -22
- data/sig/placement_group.rbs +3 -3
- data/sig/resource.rbs +201 -201
- data/sig/route.rbs +9 -9
- data/sig/route_table.rbs +10 -10
- data/sig/security_group.rbs +110 -110
- data/sig/snapshot.rbs +34 -34
- data/sig/subnet.rbs +116 -116
- data/sig/types.rbs +525 -443
- data/sig/volume.rbs +33 -33
- data/sig/vpc.rbs +46 -46
- data/sig/vpc_address.rbs +8 -8
- data/sig/waiters.rbs +113 -113
- metadata +2 -2
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -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] :
|
882
|
-
# The
|
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:
|
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
|
#
|
@@ -1087,9 +1096,6 @@ module Aws::EC2
|
|
1087
1096
|
# * `iam-instance-profile.id` - The instance profile associated with the
|
1088
1097
|
# instance. Specified as an ID.
|
1089
1098
|
#
|
1090
|
-
# * `iam-instance-profile.name` - The instance profile associated with
|
1091
|
-
# the instance. Specified as an name.
|
1092
|
-
#
|
1093
1099
|
# * `image-id` - The ID of the image used to launch the instance.
|
1094
1100
|
#
|
1095
1101
|
# * `instance-id` - The ID of the instance.
|
@@ -1441,15 +1447,6 @@ module Aws::EC2
|
|
1441
1447
|
# (`paravirtual` \| `hvm`).
|
1442
1448
|
#
|
1443
1449
|
# * `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
1450
|
# @return [Instance::Collection]
|
1454
1451
|
def instances(options = {})
|
1455
1452
|
batches = Enumerator.new do |y|
|
@@ -1480,16 +1477,25 @@ module Aws::EC2
|
|
1480
1477
|
# @example Request syntax with placeholder values
|
1481
1478
|
#
|
1482
1479
|
# internet_gateways = vpc.internet_gateways({
|
1480
|
+
# dry_run: false,
|
1481
|
+
# internet_gateway_ids: ["InternetGatewayId"],
|
1483
1482
|
# filters: [
|
1484
1483
|
# {
|
1485
1484
|
# name: "String",
|
1486
1485
|
# values: ["String"],
|
1487
1486
|
# },
|
1488
1487
|
# ],
|
1489
|
-
# dry_run: false,
|
1490
|
-
# internet_gateway_ids: ["InternetGatewayId"],
|
1491
1488
|
# })
|
1492
1489
|
# @param [Hash] options ({})
|
1490
|
+
# @option options [Boolean] :dry_run
|
1491
|
+
# Checks whether you have the required permissions for the action,
|
1492
|
+
# without actually making the request, and provides an error response.
|
1493
|
+
# If you have the required permissions, the error response is
|
1494
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1495
|
+
# @option options [Array<String>] :internet_gateway_ids
|
1496
|
+
# The IDs of the internet gateways.
|
1497
|
+
#
|
1498
|
+
# Default: Describes all your internet gateways.
|
1493
1499
|
# @option options [Array<Types::Filter>] :filters
|
1494
1500
|
# The filters.
|
1495
1501
|
#
|
@@ -1513,15 +1519,6 @@ module Aws::EC2
|
|
1513
1519
|
# * `tag-key` - The key of a tag assigned to the resource. Use this
|
1514
1520
|
# filter to find all resources assigned a tag with a specific key,
|
1515
1521
|
# 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
1522
|
# @return [InternetGateway::Collection]
|
1526
1523
|
def internet_gateways(options = {})
|
1527
1524
|
batches = Enumerator.new do |y|
|
@@ -1550,16 +1547,23 @@ module Aws::EC2
|
|
1550
1547
|
# @example Request syntax with placeholder values
|
1551
1548
|
#
|
1552
1549
|
# network_acls = vpc.network_acls({
|
1550
|
+
# dry_run: false,
|
1551
|
+
# network_acl_ids: ["NetworkAclId"],
|
1553
1552
|
# filters: [
|
1554
1553
|
# {
|
1555
1554
|
# name: "String",
|
1556
1555
|
# values: ["String"],
|
1557
1556
|
# },
|
1558
1557
|
# ],
|
1559
|
-
# dry_run: false,
|
1560
|
-
# network_acl_ids: ["NetworkAclId"],
|
1561
1558
|
# })
|
1562
1559
|
# @param [Hash] options ({})
|
1560
|
+
# @option options [Boolean] :dry_run
|
1561
|
+
# Checks whether you have the required permissions for the action,
|
1562
|
+
# without actually making the request, and provides an error response.
|
1563
|
+
# If you have the required permissions, the error response is
|
1564
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1565
|
+
# @option options [Array<String>] :network_acl_ids
|
1566
|
+
# The IDs of the network ACLs.
|
1563
1567
|
# @option options [Array<Types::Filter>] :filters
|
1564
1568
|
# The filters.
|
1565
1569
|
#
|
@@ -1617,13 +1621,6 @@ module Aws::EC2
|
|
1617
1621
|
# regardless of the tag value.
|
1618
1622
|
#
|
1619
1623
|
# * `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
1624
|
# @return [NetworkAcl::Collection]
|
1628
1625
|
def network_acls(options = {})
|
1629
1626
|
batches = Enumerator.new do |y|
|
@@ -1652,16 +1649,25 @@ module Aws::EC2
|
|
1652
1649
|
# @example Request syntax with placeholder values
|
1653
1650
|
#
|
1654
1651
|
# network_interfaces = vpc.network_interfaces({
|
1652
|
+
# dry_run: false,
|
1653
|
+
# network_interface_ids: ["NetworkInterfaceId"],
|
1655
1654
|
# filters: [
|
1656
1655
|
# {
|
1657
1656
|
# name: "String",
|
1658
1657
|
# values: ["String"],
|
1659
1658
|
# },
|
1660
1659
|
# ],
|
1661
|
-
# dry_run: false,
|
1662
|
-
# network_interface_ids: ["NetworkInterfaceId"],
|
1663
1660
|
# })
|
1664
1661
|
# @param [Hash] options ({})
|
1662
|
+
# @option options [Boolean] :dry_run
|
1663
|
+
# Checks whether you have the required permissions for the action,
|
1664
|
+
# without actually making the request, and provides an error response.
|
1665
|
+
# If you have the required permissions, the error response is
|
1666
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1667
|
+
# @option options [Array<String>] :network_interface_ids
|
1668
|
+
# The network interface IDs.
|
1669
|
+
#
|
1670
|
+
# Default: Describes all your network interfaces.
|
1665
1671
|
# @option options [Array<Types::Filter>] :filters
|
1666
1672
|
# One or more filters.
|
1667
1673
|
#
|
@@ -1777,15 +1783,6 @@ module Aws::EC2
|
|
1777
1783
|
# regardless of the tag value.
|
1778
1784
|
#
|
1779
1785
|
# * `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
1786
|
# @return [NetworkInterface::Collection]
|
1790
1787
|
def network_interfaces(options = {})
|
1791
1788
|
batches = Enumerator.new do |y|
|
@@ -1814,16 +1811,25 @@ module Aws::EC2
|
|
1814
1811
|
# @example Request syntax with placeholder values
|
1815
1812
|
#
|
1816
1813
|
# requested_vpc_peering_connections = vpc.requested_vpc_peering_connections({
|
1814
|
+
# dry_run: false,
|
1815
|
+
# vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
|
1817
1816
|
# filters: [
|
1818
1817
|
# {
|
1819
1818
|
# name: "String",
|
1820
1819
|
# values: ["String"],
|
1821
1820
|
# },
|
1822
1821
|
# ],
|
1823
|
-
# dry_run: false,
|
1824
|
-
# vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
|
1825
1822
|
# })
|
1826
1823
|
# @param [Hash] options ({})
|
1824
|
+
# @option options [Boolean] :dry_run
|
1825
|
+
# Checks whether you have the required permissions for the action,
|
1826
|
+
# without actually making the request, and provides an error response.
|
1827
|
+
# If you have the required permissions, the error response is
|
1828
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1829
|
+
# @option options [Array<String>] :vpc_peering_connection_ids
|
1830
|
+
# The IDs of the VPC peering connections.
|
1831
|
+
#
|
1832
|
+
# Default: Describes all your VPC peering connections.
|
1827
1833
|
# @option options [Array<Types::Filter>] :filters
|
1828
1834
|
# The filters.
|
1829
1835
|
#
|
@@ -1864,15 +1870,6 @@ module Aws::EC2
|
|
1864
1870
|
# regardless of the tag value.
|
1865
1871
|
#
|
1866
1872
|
# * `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
1873
|
# @return [VpcPeeringConnection::Collection]
|
1877
1874
|
def requested_vpc_peering_connections(options = {})
|
1878
1875
|
batches = Enumerator.new do |y|
|
@@ -1901,16 +1898,23 @@ module Aws::EC2
|
|
1901
1898
|
# @example Request syntax with placeholder values
|
1902
1899
|
#
|
1903
1900
|
# route_tables = vpc.route_tables({
|
1901
|
+
# dry_run: false,
|
1902
|
+
# route_table_ids: ["RouteTableId"],
|
1904
1903
|
# filters: [
|
1905
1904
|
# {
|
1906
1905
|
# name: "String",
|
1907
1906
|
# values: ["String"],
|
1908
1907
|
# },
|
1909
1908
|
# ],
|
1910
|
-
# dry_run: false,
|
1911
|
-
# route_table_ids: ["RouteTableId"],
|
1912
1909
|
# })
|
1913
1910
|
# @param [Hash] options ({})
|
1911
|
+
# @option options [Boolean] :dry_run
|
1912
|
+
# Checks whether you have the required permissions for the action,
|
1913
|
+
# without actually making the request, and provides an error response.
|
1914
|
+
# If you have the required permissions, the error response is
|
1915
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1916
|
+
# @option options [Array<String>] :route_table_ids
|
1917
|
+
# The IDs of the route tables.
|
1914
1918
|
# @option options [Array<Types::Filter>] :filters
|
1915
1919
|
# The filters.
|
1916
1920
|
#
|
@@ -1984,13 +1988,6 @@ module Aws::EC2
|
|
1984
1988
|
# regardless of the tag value.
|
1985
1989
|
#
|
1986
1990
|
# * `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
1991
|
# @return [RouteTable::Collection]
|
1995
1992
|
def route_tables(options = {})
|
1996
1993
|
batches = Enumerator.new do |y|
|
@@ -2019,17 +2016,32 @@ module Aws::EC2
|
|
2019
2016
|
# @example Request syntax with placeholder values
|
2020
2017
|
#
|
2021
2018
|
# security_groups = vpc.security_groups({
|
2019
|
+
# group_ids: ["SecurityGroupId"],
|
2020
|
+
# group_names: ["SecurityGroupName"],
|
2021
|
+
# dry_run: false,
|
2022
2022
|
# filters: [
|
2023
2023
|
# {
|
2024
2024
|
# name: "String",
|
2025
2025
|
# values: ["String"],
|
2026
2026
|
# },
|
2027
2027
|
# ],
|
2028
|
-
# group_ids: ["SecurityGroupId"],
|
2029
|
-
# group_names: ["SecurityGroupName"],
|
2030
|
-
# dry_run: false,
|
2031
2028
|
# })
|
2032
2029
|
# @param [Hash] options ({})
|
2030
|
+
# @option options [Array<String>] :group_ids
|
2031
|
+
# The IDs of the security groups. Required for security groups in a
|
2032
|
+
# nondefault VPC.
|
2033
|
+
#
|
2034
|
+
# Default: Describes all of your security groups.
|
2035
|
+
# @option options [Array<String>] :group_names
|
2036
|
+
# \[Default VPC\] The names of the security groups. You can specify
|
2037
|
+
# either the security group name or the security group ID.
|
2038
|
+
#
|
2039
|
+
# Default: Describes all of your security groups.
|
2040
|
+
# @option options [Boolean] :dry_run
|
2041
|
+
# Checks whether you have the required permissions for the action,
|
2042
|
+
# without actually making the request, and provides an error response.
|
2043
|
+
# If you have the required permissions, the error response is
|
2044
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2033
2045
|
# @option options [Array<Types::Filter>] :filters
|
2034
2046
|
# The filters. If using multiple filters for rules, the results include
|
2035
2047
|
# security groups for which any combination of rules - not necessarily a
|
@@ -2112,21 +2124,6 @@ module Aws::EC2
|
|
2112
2124
|
#
|
2113
2125
|
# * `vpc-id` - The ID of the VPC specified when the security group was
|
2114
2126
|
# 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
2127
|
# @return [SecurityGroup::Collection]
|
2131
2128
|
def security_groups(options = {})
|
2132
2129
|
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)
|