aws-sdk-ec2 1.479.0 → 1.480.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +11 -11
- data/lib/aws-sdk-ec2/client.rb +2723 -2713
- data/lib/aws-sdk-ec2/client_api.rb +438 -436
- data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
- data/lib/aws-sdk-ec2/image.rb +82 -82
- data/lib/aws-sdk-ec2/instance.rb +285 -285
- 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 -11
- data/lib/aws-sdk-ec2/resource.rb +597 -597
- 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 +276 -276
- data/lib/aws-sdk-ec2/types.rb +3284 -3291
- data/lib/aws-sdk-ec2/volume.rb +93 -93
- data/lib/aws-sdk-ec2/vpc.rb +143 -143
- 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 +872 -872
- 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 +438 -437
- 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/subnet.rb
CHANGED
@@ -35,38 +35,12 @@ module Aws::EC2
|
|
35
35
|
end
|
36
36
|
alias :subnet_id :id
|
37
37
|
|
38
|
-
# The Availability Zone of the subnet.
|
39
|
-
# @return [String]
|
40
|
-
def availability_zone
|
41
|
-
data[:availability_zone]
|
42
|
-
end
|
43
|
-
|
44
38
|
# The AZ ID of the subnet.
|
45
39
|
# @return [String]
|
46
40
|
def availability_zone_id
|
47
41
|
data[:availability_zone_id]
|
48
42
|
end
|
49
43
|
|
50
|
-
# The number of unused private IPv4 addresses in the subnet. The IPv4
|
51
|
-
# addresses for any stopped instances are considered unavailable.
|
52
|
-
# @return [Integer]
|
53
|
-
def available_ip_address_count
|
54
|
-
data[:available_ip_address_count]
|
55
|
-
end
|
56
|
-
|
57
|
-
# The IPv4 CIDR block assigned to the subnet.
|
58
|
-
# @return [String]
|
59
|
-
def cidr_block
|
60
|
-
data[:cidr_block]
|
61
|
-
end
|
62
|
-
|
63
|
-
# Indicates whether this is the default subnet for the Availability
|
64
|
-
# Zone.
|
65
|
-
# @return [Boolean]
|
66
|
-
def default_for_az
|
67
|
-
data[:default_for_az]
|
68
|
-
end
|
69
|
-
|
70
44
|
# Indicates the device position for local network interfaces in this
|
71
45
|
# subnet. For example, `1` indicates local network interfaces in this
|
72
46
|
# subnet are the secondary network interface (eth1).
|
@@ -75,22 +49,6 @@ module Aws::EC2
|
|
75
49
|
data[:enable_lni_at_device_index]
|
76
50
|
end
|
77
51
|
|
78
|
-
# Indicates whether instances launched in this subnet receive a public
|
79
|
-
# IPv4 address.
|
80
|
-
#
|
81
|
-
# Amazon Web Services charges for all public IPv4 addresses, including
|
82
|
-
# public IPv4 addresses associated with running instances and Elastic IP
|
83
|
-
# addresses. For more information, see the *Public IPv4 Address* tab on
|
84
|
-
# the [Amazon VPC pricing page][1].
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
# [1]: http://aws.amazon.com/vpc/pricing/
|
89
|
-
# @return [Boolean]
|
90
|
-
def map_public_ip_on_launch
|
91
|
-
data[:map_public_ip_on_launch]
|
92
|
-
end
|
93
|
-
|
94
52
|
# Indicates whether a network interface created in this subnet
|
95
53
|
# (including a network interface created by RunInstances) receives a
|
96
54
|
# customer-owned IPv4 address.
|
@@ -105,18 +63,6 @@ module Aws::EC2
|
|
105
63
|
data[:customer_owned_ipv_4_pool]
|
106
64
|
end
|
107
65
|
|
108
|
-
# The current state of the subnet.
|
109
|
-
# @return [String]
|
110
|
-
def state
|
111
|
-
data[:state]
|
112
|
-
end
|
113
|
-
|
114
|
-
# The ID of the VPC the subnet is in.
|
115
|
-
# @return [String]
|
116
|
-
def vpc_id
|
117
|
-
data[:vpc_id]
|
118
|
-
end
|
119
|
-
|
120
66
|
# The ID of the Amazon Web Services account that owns the subnet.
|
121
67
|
# @return [String]
|
122
68
|
def owner_id
|
@@ -177,6 +123,60 @@ module Aws::EC2
|
|
177
123
|
data[:private_dns_name_options_on_launch]
|
178
124
|
end
|
179
125
|
|
126
|
+
# The current state of the subnet.
|
127
|
+
# @return [String]
|
128
|
+
def state
|
129
|
+
data[:state]
|
130
|
+
end
|
131
|
+
|
132
|
+
# The ID of the VPC the subnet is in.
|
133
|
+
# @return [String]
|
134
|
+
def vpc_id
|
135
|
+
data[:vpc_id]
|
136
|
+
end
|
137
|
+
|
138
|
+
# The IPv4 CIDR block assigned to the subnet.
|
139
|
+
# @return [String]
|
140
|
+
def cidr_block
|
141
|
+
data[:cidr_block]
|
142
|
+
end
|
143
|
+
|
144
|
+
# The number of unused private IPv4 addresses in the subnet. The IPv4
|
145
|
+
# addresses for any stopped instances are considered unavailable.
|
146
|
+
# @return [Integer]
|
147
|
+
def available_ip_address_count
|
148
|
+
data[:available_ip_address_count]
|
149
|
+
end
|
150
|
+
|
151
|
+
# The Availability Zone of the subnet.
|
152
|
+
# @return [String]
|
153
|
+
def availability_zone
|
154
|
+
data[:availability_zone]
|
155
|
+
end
|
156
|
+
|
157
|
+
# Indicates whether this is the default subnet for the Availability
|
158
|
+
# Zone.
|
159
|
+
# @return [Boolean]
|
160
|
+
def default_for_az
|
161
|
+
data[:default_for_az]
|
162
|
+
end
|
163
|
+
|
164
|
+
# Indicates whether instances launched in this subnet receive a public
|
165
|
+
# IPv4 address.
|
166
|
+
#
|
167
|
+
# Amazon Web Services charges for all public IPv4 addresses, including
|
168
|
+
# public IPv4 addresses associated with running instances and Elastic IP
|
169
|
+
# addresses. For more information, see the *Public IPv4 Address* tab on
|
170
|
+
# the [Amazon VPC pricing page][1].
|
171
|
+
#
|
172
|
+
#
|
173
|
+
#
|
174
|
+
# [1]: http://aws.amazon.com/vpc/pricing/
|
175
|
+
# @return [Boolean]
|
176
|
+
def map_public_ip_on_launch
|
177
|
+
data[:map_public_ip_on_launch]
|
178
|
+
end
|
179
|
+
|
180
180
|
# @!endgroup
|
181
181
|
|
182
182
|
# @return [Client]
|
@@ -320,8 +320,6 @@ module Aws::EC2
|
|
320
320
|
# instance = subnet.create_instances({
|
321
321
|
# block_device_mappings: [
|
322
322
|
# {
|
323
|
-
# device_name: "String",
|
324
|
-
# virtual_name: "String",
|
325
323
|
# ebs: {
|
326
324
|
# delete_on_termination: false,
|
327
325
|
# iops: 1,
|
@@ -334,6 +332,8 @@ module Aws::EC2
|
|
334
332
|
# encrypted: false,
|
335
333
|
# },
|
336
334
|
# no_device: "String",
|
335
|
+
# device_name: "String",
|
336
|
+
# virtual_name: "String",
|
337
337
|
# },
|
338
338
|
# ],
|
339
339
|
# image_id: "ImageId",
|
@@ -353,7 +353,6 @@ module Aws::EC2
|
|
353
353
|
# enabled: false, # required
|
354
354
|
# },
|
355
355
|
# placement: {
|
356
|
-
# availability_zone: "String",
|
357
356
|
# affinity: "String",
|
358
357
|
# group_name: "PlacementGroupName",
|
359
358
|
# partition_number: 1,
|
@@ -362,75 +361,12 @@ module Aws::EC2
|
|
362
361
|
# spread_domain: "String",
|
363
362
|
# host_resource_group_arn: "String",
|
364
363
|
# group_id: "PlacementGroupId",
|
364
|
+
# availability_zone: "String",
|
365
365
|
# },
|
366
366
|
# ramdisk_id: "RamdiskId",
|
367
367
|
# security_group_ids: ["SecurityGroupId"],
|
368
368
|
# security_groups: ["SecurityGroupName"],
|
369
369
|
# user_data: "RunInstancesUserData",
|
370
|
-
# additional_info: "String",
|
371
|
-
# client_token: "String",
|
372
|
-
# disable_api_termination: false,
|
373
|
-
# dry_run: false,
|
374
|
-
# ebs_optimized: false,
|
375
|
-
# iam_instance_profile: {
|
376
|
-
# arn: "String",
|
377
|
-
# name: "String",
|
378
|
-
# },
|
379
|
-
# instance_initiated_shutdown_behavior: "stop", # accepts stop, terminate
|
380
|
-
# network_interfaces: [
|
381
|
-
# {
|
382
|
-
# associate_public_ip_address: false,
|
383
|
-
# delete_on_termination: false,
|
384
|
-
# description: "String",
|
385
|
-
# device_index: 1,
|
386
|
-
# groups: ["SecurityGroupId"],
|
387
|
-
# ipv_6_address_count: 1,
|
388
|
-
# ipv_6_addresses: [
|
389
|
-
# {
|
390
|
-
# ipv_6_address: "String",
|
391
|
-
# is_primary_ipv_6: false,
|
392
|
-
# },
|
393
|
-
# ],
|
394
|
-
# network_interface_id: "NetworkInterfaceId",
|
395
|
-
# private_ip_address: "String",
|
396
|
-
# private_ip_addresses: [
|
397
|
-
# {
|
398
|
-
# primary: false,
|
399
|
-
# private_ip_address: "String",
|
400
|
-
# },
|
401
|
-
# ],
|
402
|
-
# secondary_private_ip_address_count: 1,
|
403
|
-
# subnet_id: "String",
|
404
|
-
# associate_carrier_ip_address: false,
|
405
|
-
# interface_type: "String",
|
406
|
-
# network_card_index: 1,
|
407
|
-
# ipv_4_prefixes: [
|
408
|
-
# {
|
409
|
-
# ipv_4_prefix: "String",
|
410
|
-
# },
|
411
|
-
# ],
|
412
|
-
# ipv_4_prefix_count: 1,
|
413
|
-
# ipv_6_prefixes: [
|
414
|
-
# {
|
415
|
-
# ipv_6_prefix: "String",
|
416
|
-
# },
|
417
|
-
# ],
|
418
|
-
# ipv_6_prefix_count: 1,
|
419
|
-
# primary_ipv_6: false,
|
420
|
-
# ena_srd_specification: {
|
421
|
-
# ena_srd_enabled: false,
|
422
|
-
# ena_srd_udp_specification: {
|
423
|
-
# ena_srd_udp_enabled: false,
|
424
|
-
# },
|
425
|
-
# },
|
426
|
-
# connection_tracking_specification: {
|
427
|
-
# tcp_established_timeout: 1,
|
428
|
-
# udp_stream_timeout: 1,
|
429
|
-
# udp_timeout: 1,
|
430
|
-
# },
|
431
|
-
# },
|
432
|
-
# ],
|
433
|
-
# private_ip_address: "String",
|
434
370
|
# elastic_gpu_specification: [
|
435
371
|
# {
|
436
372
|
# type: "String", # required
|
@@ -511,6 +447,70 @@ module Aws::EC2
|
|
511
447
|
# },
|
512
448
|
# disable_api_stop: false,
|
513
449
|
# enable_primary_ipv_6: false,
|
450
|
+
# dry_run: false,
|
451
|
+
# disable_api_termination: false,
|
452
|
+
# instance_initiated_shutdown_behavior: "stop", # accepts stop, terminate
|
453
|
+
# private_ip_address: "String",
|
454
|
+
# client_token: "String",
|
455
|
+
# additional_info: "String",
|
456
|
+
# network_interfaces: [
|
457
|
+
# {
|
458
|
+
# associate_public_ip_address: false,
|
459
|
+
# delete_on_termination: false,
|
460
|
+
# description: "String",
|
461
|
+
# device_index: 1,
|
462
|
+
# groups: ["SecurityGroupId"],
|
463
|
+
# ipv_6_address_count: 1,
|
464
|
+
# ipv_6_addresses: [
|
465
|
+
# {
|
466
|
+
# ipv_6_address: "String",
|
467
|
+
# is_primary_ipv_6: false,
|
468
|
+
# },
|
469
|
+
# ],
|
470
|
+
# network_interface_id: "NetworkInterfaceId",
|
471
|
+
# private_ip_address: "String",
|
472
|
+
# private_ip_addresses: [
|
473
|
+
# {
|
474
|
+
# primary: false,
|
475
|
+
# private_ip_address: "String",
|
476
|
+
# },
|
477
|
+
# ],
|
478
|
+
# secondary_private_ip_address_count: 1,
|
479
|
+
# subnet_id: "String",
|
480
|
+
# associate_carrier_ip_address: false,
|
481
|
+
# interface_type: "String",
|
482
|
+
# network_card_index: 1,
|
483
|
+
# ipv_4_prefixes: [
|
484
|
+
# {
|
485
|
+
# ipv_4_prefix: "String",
|
486
|
+
# },
|
487
|
+
# ],
|
488
|
+
# ipv_4_prefix_count: 1,
|
489
|
+
# ipv_6_prefixes: [
|
490
|
+
# {
|
491
|
+
# ipv_6_prefix: "String",
|
492
|
+
# },
|
493
|
+
# ],
|
494
|
+
# ipv_6_prefix_count: 1,
|
495
|
+
# primary_ipv_6: false,
|
496
|
+
# ena_srd_specification: {
|
497
|
+
# ena_srd_enabled: false,
|
498
|
+
# ena_srd_udp_specification: {
|
499
|
+
# ena_srd_udp_enabled: false,
|
500
|
+
# },
|
501
|
+
# },
|
502
|
+
# connection_tracking_specification: {
|
503
|
+
# tcp_established_timeout: 1,
|
504
|
+
# udp_stream_timeout: 1,
|
505
|
+
# udp_timeout: 1,
|
506
|
+
# },
|
507
|
+
# },
|
508
|
+
# ],
|
509
|
+
# iam_instance_profile: {
|
510
|
+
# arn: "String",
|
511
|
+
# name: "String",
|
512
|
+
# },
|
513
|
+
# ebs_optimized: false,
|
514
514
|
# })
|
515
515
|
# @param [Hash] options ({})
|
516
516
|
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
@@ -635,76 +635,12 @@ module Aws::EC2
|
|
635
635
|
# @option options [String] :user_data
|
636
636
|
# The user data to make available to the instance. User data must be
|
637
637
|
# base64-encoded. Depending on the tool or SDK that you're using, the
|
638
|
-
# base64-encoding might be performed for you. For more information, see
|
639
|
-
# [Work with instance user data][1].
|
640
|
-
#
|
641
|
-
#
|
642
|
-
#
|
643
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
|
644
|
-
# @option options [String] :additional_info
|
645
|
-
# Reserved.
|
646
|
-
# @option options [String] :client_token
|
647
|
-
# Unique, case-sensitive identifier you provide to ensure the
|
648
|
-
# idempotency of the request. If you do not specify a client token, a
|
649
|
-
# randomly generated token is used for the request to ensure
|
650
|
-
# idempotency.
|
651
|
-
#
|
652
|
-
# For more information, see [Ensuring Idempotency][1].
|
653
|
-
#
|
654
|
-
# Constraints: Maximum 64 ASCII characters
|
655
|
-
#
|
656
|
-
#
|
657
|
-
#
|
658
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
659
|
-
# @option options [Boolean] :disable_api_termination
|
660
|
-
# If you set this parameter to `true`, you can't terminate the instance
|
661
|
-
# using the Amazon EC2 console, CLI, or API; otherwise, you can. To
|
662
|
-
# change this attribute after launch, use [ModifyInstanceAttribute][1].
|
663
|
-
# Alternatively, if you set `InstanceInitiatedShutdownBehavior` to
|
664
|
-
# `terminate`, you can terminate the instance by running the shutdown
|
665
|
-
# command from the instance.
|
666
|
-
#
|
667
|
-
# Default: `false`
|
668
|
-
#
|
669
|
-
#
|
670
|
-
#
|
671
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html
|
672
|
-
# @option options [Boolean] :dry_run
|
673
|
-
# Checks whether you have the required permissions for the operation,
|
674
|
-
# without actually making the request, and provides an error response.
|
675
|
-
# If you have the required permissions, the error response is
|
676
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
677
|
-
# @option options [Boolean] :ebs_optimized
|
678
|
-
# Indicates whether the instance is optimized for Amazon EBS I/O. This
|
679
|
-
# optimization provides dedicated throughput to Amazon EBS and an
|
680
|
-
# optimized configuration stack to provide optimal Amazon EBS I/O
|
681
|
-
# performance. This optimization isn't available with all instance
|
682
|
-
# types. Additional usage charges apply when using an EBS-optimized
|
683
|
-
# instance.
|
684
|
-
#
|
685
|
-
# Default: `false`
|
686
|
-
# @option options [Types::IamInstanceProfileSpecification] :iam_instance_profile
|
687
|
-
# The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
688
|
-
# @option options [String] :instance_initiated_shutdown_behavior
|
689
|
-
# Indicates whether an instance stops or terminates when you initiate
|
690
|
-
# shutdown from the instance (using the operating system command for
|
691
|
-
# system shutdown).
|
638
|
+
# base64-encoding might be performed for you. For more information, see
|
639
|
+
# [Work with instance user data][1].
|
692
640
|
#
|
693
|
-
# Default: `stop`
|
694
|
-
# @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
|
695
|
-
# The network interfaces to associate with the instance.
|
696
|
-
# @option options [String] :private_ip_address
|
697
|
-
# The primary IPv4 address. You must specify a value from the IPv4
|
698
|
-
# address range of the subnet.
|
699
641
|
#
|
700
|
-
# Only one private IP address can be designated as primary. You can't
|
701
|
-
# specify this option if you've specified the option to designate a
|
702
|
-
# private IP address as the primary IP address in a network interface
|
703
|
-
# specification. You cannot specify this option if you're launching
|
704
|
-
# more than one instance in the request.
|
705
642
|
#
|
706
|
-
#
|
707
|
-
# the same request.
|
643
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
|
708
644
|
# @option options [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
|
709
645
|
# An elastic GPU to associate with the instance.
|
710
646
|
#
|
@@ -843,6 +779,70 @@ module Aws::EC2
|
|
843
779
|
# attached to your instance and you enable a primary IPv6 address, the
|
844
780
|
# first IPv6 GUA address associated with the ENI becomes the primary
|
845
781
|
# IPv6 address.
|
782
|
+
# @option options [Boolean] :dry_run
|
783
|
+
# Checks whether you have the required permissions for the operation,
|
784
|
+
# without actually making the request, and provides an error response.
|
785
|
+
# If you have the required permissions, the error response is
|
786
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
787
|
+
# @option options [Boolean] :disable_api_termination
|
788
|
+
# If you set this parameter to `true`, you can't terminate the instance
|
789
|
+
# using the Amazon EC2 console, CLI, or API; otherwise, you can. To
|
790
|
+
# change this attribute after launch, use [ModifyInstanceAttribute][1].
|
791
|
+
# Alternatively, if you set `InstanceInitiatedShutdownBehavior` to
|
792
|
+
# `terminate`, you can terminate the instance by running the shutdown
|
793
|
+
# command from the instance.
|
794
|
+
#
|
795
|
+
# Default: `false`
|
796
|
+
#
|
797
|
+
#
|
798
|
+
#
|
799
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html
|
800
|
+
# @option options [String] :instance_initiated_shutdown_behavior
|
801
|
+
# Indicates whether an instance stops or terminates when you initiate
|
802
|
+
# shutdown from the instance (using the operating system command for
|
803
|
+
# system shutdown).
|
804
|
+
#
|
805
|
+
# Default: `stop`
|
806
|
+
# @option options [String] :private_ip_address
|
807
|
+
# The primary IPv4 address. You must specify a value from the IPv4
|
808
|
+
# address range of the subnet.
|
809
|
+
#
|
810
|
+
# Only one private IP address can be designated as primary. You can't
|
811
|
+
# specify this option if you've specified the option to designate a
|
812
|
+
# private IP address as the primary IP address in a network interface
|
813
|
+
# specification. You cannot specify this option if you're launching
|
814
|
+
# more than one instance in the request.
|
815
|
+
#
|
816
|
+
# You cannot specify this option and the network interfaces option in
|
817
|
+
# the same request.
|
818
|
+
# @option options [String] :client_token
|
819
|
+
# Unique, case-sensitive identifier you provide to ensure the
|
820
|
+
# idempotency of the request. If you do not specify a client token, a
|
821
|
+
# randomly generated token is used for the request to ensure
|
822
|
+
# idempotency.
|
823
|
+
#
|
824
|
+
# For more information, see [Ensuring Idempotency][1].
|
825
|
+
#
|
826
|
+
# Constraints: Maximum 64 ASCII characters
|
827
|
+
#
|
828
|
+
#
|
829
|
+
#
|
830
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
831
|
+
# @option options [String] :additional_info
|
832
|
+
# Reserved.
|
833
|
+
# @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
|
834
|
+
# The network interfaces to associate with the instance.
|
835
|
+
# @option options [Types::IamInstanceProfileSpecification] :iam_instance_profile
|
836
|
+
# The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
837
|
+
# @option options [Boolean] :ebs_optimized
|
838
|
+
# Indicates whether the instance is optimized for Amazon EBS I/O. This
|
839
|
+
# optimization provides dedicated throughput to Amazon EBS and an
|
840
|
+
# optimized configuration stack to provide optimal Amazon EBS I/O
|
841
|
+
# performance. This optimization isn't available with all instance
|
842
|
+
# types. Additional usage charges apply when using an EBS-optimized
|
843
|
+
# instance.
|
844
|
+
#
|
845
|
+
# Default: `false`
|
846
846
|
# @return [Instance::Collection]
|
847
847
|
def create_instances(options = {})
|
848
848
|
batch = []
|
@@ -863,24 +863,6 @@ module Aws::EC2
|
|
863
863
|
# @example Request syntax with placeholder values
|
864
864
|
#
|
865
865
|
# networkinterface = subnet.create_network_interface({
|
866
|
-
# description: "String",
|
867
|
-
# dry_run: false,
|
868
|
-
# groups: ["SecurityGroupId"],
|
869
|
-
# ipv_6_address_count: 1,
|
870
|
-
# ipv_6_addresses: [
|
871
|
-
# {
|
872
|
-
# ipv_6_address: "String",
|
873
|
-
# is_primary_ipv_6: false,
|
874
|
-
# },
|
875
|
-
# ],
|
876
|
-
# private_ip_address: "String",
|
877
|
-
# private_ip_addresses: [
|
878
|
-
# {
|
879
|
-
# primary: false,
|
880
|
-
# private_ip_address: "String",
|
881
|
-
# },
|
882
|
-
# ],
|
883
|
-
# secondary_private_ip_address_count: 1,
|
884
866
|
# ipv_4_prefixes: [
|
885
867
|
# {
|
886
868
|
# ipv_4_prefix: "String",
|
@@ -912,56 +894,26 @@ module Aws::EC2
|
|
912
894
|
# udp_stream_timeout: 1,
|
913
895
|
# udp_timeout: 1,
|
914
896
|
# },
|
897
|
+
# description: "String",
|
898
|
+
# private_ip_address: "String",
|
899
|
+
# groups: ["SecurityGroupId"],
|
900
|
+
# private_ip_addresses: [
|
901
|
+
# {
|
902
|
+
# primary: false,
|
903
|
+
# private_ip_address: "String",
|
904
|
+
# },
|
905
|
+
# ],
|
906
|
+
# secondary_private_ip_address_count: 1,
|
907
|
+
# ipv_6_addresses: [
|
908
|
+
# {
|
909
|
+
# ipv_6_address: "String",
|
910
|
+
# is_primary_ipv_6: false,
|
911
|
+
# },
|
912
|
+
# ],
|
913
|
+
# ipv_6_address_count: 1,
|
914
|
+
# dry_run: false,
|
915
915
|
# })
|
916
916
|
# @param [Hash] options ({})
|
917
|
-
# @option options [String] :description
|
918
|
-
# A description for the network interface.
|
919
|
-
# @option options [Boolean] :dry_run
|
920
|
-
# Checks whether you have the required permissions for the action,
|
921
|
-
# without actually making the request, and provides an error response.
|
922
|
-
# If you have the required permissions, the error response is
|
923
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
924
|
-
# @option options [Array<String>] :groups
|
925
|
-
# The IDs of one or more security groups.
|
926
|
-
# @option options [Integer] :ipv_6_address_count
|
927
|
-
# The number of IPv6 addresses to assign to a network interface. Amazon
|
928
|
-
# EC2 automatically selects the IPv6 addresses from the subnet range.
|
929
|
-
#
|
930
|
-
# You can't specify a count of IPv6 addresses using this parameter if
|
931
|
-
# you've specified one of the following: specific IPv6 addresses,
|
932
|
-
# specific IPv6 prefixes, or a count of IPv6 prefixes.
|
933
|
-
#
|
934
|
-
# If your subnet has the `AssignIpv6AddressOnCreation` attribute set,
|
935
|
-
# you can override that setting by specifying 0 as the IPv6 address
|
936
|
-
# count.
|
937
|
-
# @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
938
|
-
# The IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
939
|
-
#
|
940
|
-
# You can't specify IPv6 addresses using this parameter if you've
|
941
|
-
# specified one of the following: a count of IPv6 addresses, specific
|
942
|
-
# IPv6 prefixes, or a count of IPv6 prefixes.
|
943
|
-
# @option options [String] :private_ip_address
|
944
|
-
# The primary private IPv4 address of the network interface. If you
|
945
|
-
# don't specify an IPv4 address, Amazon EC2 selects one for you from
|
946
|
-
# the subnet's IPv4 CIDR range. If you specify an IP address, you
|
947
|
-
# cannot indicate any IP addresses specified in `privateIpAddresses` as
|
948
|
-
# primary (only one IP address can be designated as primary).
|
949
|
-
# @option options [Array<Types::PrivateIpAddressSpecification>] :private_ip_addresses
|
950
|
-
# The private IPv4 addresses.
|
951
|
-
#
|
952
|
-
# You can't specify private IPv4 addresses if you've specified one of
|
953
|
-
# the following: a count of private IPv4 addresses, specific IPv4
|
954
|
-
# prefixes, or a count of IPv4 prefixes.
|
955
|
-
# @option options [Integer] :secondary_private_ip_address_count
|
956
|
-
# The number of secondary private IPv4 addresses to assign to a network
|
957
|
-
# interface. When you specify a number of secondary IPv4 addresses,
|
958
|
-
# Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR
|
959
|
-
# range. You can't specify this option and specify more than one
|
960
|
-
# private IP address using `privateIpAddresses`.
|
961
|
-
#
|
962
|
-
# You can't specify a count of private IPv4 addresses if you've
|
963
|
-
# specified one of the following: specific private IPv4 addresses,
|
964
|
-
# specific IPv4 prefixes, or a count of IPv4 prefixes.
|
965
917
|
# @option options [Array<Types::Ipv4PrefixSpecificationRequest>] :ipv_4_prefixes
|
966
918
|
# The IPv4 prefixes assigned to the network interface.
|
967
919
|
#
|
@@ -1020,6 +972,54 @@ module Aws::EC2
|
|
1020
972
|
# the primary IPv6 address.
|
1021
973
|
# @option options [Types::ConnectionTrackingSpecificationRequest] :connection_tracking_specification
|
1022
974
|
# A connection tracking specification for the network interface.
|
975
|
+
# @option options [String] :description
|
976
|
+
# A description for the network interface.
|
977
|
+
# @option options [String] :private_ip_address
|
978
|
+
# The primary private IPv4 address of the network interface. If you
|
979
|
+
# don't specify an IPv4 address, Amazon EC2 selects one for you from
|
980
|
+
# the subnet's IPv4 CIDR range. If you specify an IP address, you
|
981
|
+
# cannot indicate any IP addresses specified in `privateIpAddresses` as
|
982
|
+
# primary (only one IP address can be designated as primary).
|
983
|
+
# @option options [Array<String>] :groups
|
984
|
+
# The IDs of one or more security groups.
|
985
|
+
# @option options [Array<Types::PrivateIpAddressSpecification>] :private_ip_addresses
|
986
|
+
# The private IPv4 addresses.
|
987
|
+
#
|
988
|
+
# You can't specify private IPv4 addresses if you've specified one of
|
989
|
+
# the following: a count of private IPv4 addresses, specific IPv4
|
990
|
+
# prefixes, or a count of IPv4 prefixes.
|
991
|
+
# @option options [Integer] :secondary_private_ip_address_count
|
992
|
+
# The number of secondary private IPv4 addresses to assign to a network
|
993
|
+
# interface. When you specify a number of secondary IPv4 addresses,
|
994
|
+
# Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR
|
995
|
+
# range. You can't specify this option and specify more than one
|
996
|
+
# private IP address using `privateIpAddresses`.
|
997
|
+
#
|
998
|
+
# You can't specify a count of private IPv4 addresses if you've
|
999
|
+
# specified one of the following: specific private IPv4 addresses,
|
1000
|
+
# specific IPv4 prefixes, or a count of IPv4 prefixes.
|
1001
|
+
# @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
1002
|
+
# The IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
1003
|
+
#
|
1004
|
+
# You can't specify IPv6 addresses using this parameter if you've
|
1005
|
+
# specified one of the following: a count of IPv6 addresses, specific
|
1006
|
+
# IPv6 prefixes, or a count of IPv6 prefixes.
|
1007
|
+
# @option options [Integer] :ipv_6_address_count
|
1008
|
+
# The number of IPv6 addresses to assign to a network interface. Amazon
|
1009
|
+
# EC2 automatically selects the IPv6 addresses from the subnet range.
|
1010
|
+
#
|
1011
|
+
# You can't specify a count of IPv6 addresses using this parameter if
|
1012
|
+
# you've specified one of the following: specific IPv6 addresses,
|
1013
|
+
# specific IPv6 prefixes, or a count of IPv6 prefixes.
|
1014
|
+
#
|
1015
|
+
# If your subnet has the `AssignIpv6AddressOnCreation` attribute set,
|
1016
|
+
# you can override that setting by specifying 0 as the IPv6 address
|
1017
|
+
# count.
|
1018
|
+
# @option options [Boolean] :dry_run
|
1019
|
+
# Checks whether you have the required permissions for the action,
|
1020
|
+
# without actually making the request, and provides an error response.
|
1021
|
+
# If you have the required permissions, the error response is
|
1022
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1023
1023
|
# @return [NetworkInterface]
|
1024
1024
|
def create_network_interface(options = {})
|
1025
1025
|
options = options.merge(subnet_id: @id)
|
@@ -1144,16 +1144,25 @@ module Aws::EC2
|
|
1144
1144
|
# @example Request syntax with placeholder values
|
1145
1145
|
#
|
1146
1146
|
# instances = subnet.instances({
|
1147
|
+
# instance_ids: ["InstanceId"],
|
1148
|
+
# dry_run: false,
|
1147
1149
|
# filters: [
|
1148
1150
|
# {
|
1149
1151
|
# name: "String",
|
1150
1152
|
# values: ["String"],
|
1151
1153
|
# },
|
1152
1154
|
# ],
|
1153
|
-
# instance_ids: ["InstanceId"],
|
1154
|
-
# dry_run: false,
|
1155
1155
|
# })
|
1156
1156
|
# @param [Hash] options ({})
|
1157
|
+
# @option options [Array<String>] :instance_ids
|
1158
|
+
# The instance IDs.
|
1159
|
+
#
|
1160
|
+
# Default: Describes all your instances.
|
1161
|
+
# @option options [Boolean] :dry_run
|
1162
|
+
# Checks whether you have the required permissions for the operation,
|
1163
|
+
# without actually making the request, and provides an error response.
|
1164
|
+
# If you have the required permissions, the error response is
|
1165
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1157
1166
|
# @option options [Array<Types::Filter>] :filters
|
1158
1167
|
# The filters.
|
1159
1168
|
#
|
@@ -1583,15 +1592,6 @@ module Aws::EC2
|
|
1583
1592
|
# (`paravirtual` \| `hvm`).
|
1584
1593
|
#
|
1585
1594
|
# * `vpc-id` - The ID of the VPC that the instance is running in.
|
1586
|
-
# @option options [Array<String>] :instance_ids
|
1587
|
-
# The instance IDs.
|
1588
|
-
#
|
1589
|
-
# Default: Describes all your instances.
|
1590
|
-
# @option options [Boolean] :dry_run
|
1591
|
-
# Checks whether you have the required permissions for the operation,
|
1592
|
-
# without actually making the request, and provides an error response.
|
1593
|
-
# If you have the required permissions, the error response is
|
1594
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1595
1595
|
# @return [Instance::Collection]
|
1596
1596
|
def instances(options = {})
|
1597
1597
|
batches = Enumerator.new do |y|
|
@@ -1688,16 +1688,25 @@ module Aws::EC2
|
|
1688
1688
|
# @example Request syntax with placeholder values
|
1689
1689
|
#
|
1690
1690
|
# network_interfaces = subnet.network_interfaces({
|
1691
|
+
# dry_run: false,
|
1692
|
+
# network_interface_ids: ["NetworkInterfaceId"],
|
1691
1693
|
# filters: [
|
1692
1694
|
# {
|
1693
1695
|
# name: "String",
|
1694
1696
|
# values: ["String"],
|
1695
1697
|
# },
|
1696
1698
|
# ],
|
1697
|
-
# dry_run: false,
|
1698
|
-
# network_interface_ids: ["NetworkInterfaceId"],
|
1699
1699
|
# })
|
1700
1700
|
# @param [Hash] options ({})
|
1701
|
+
# @option options [Boolean] :dry_run
|
1702
|
+
# Checks whether you have the required permissions for the action,
|
1703
|
+
# without actually making the request, and provides an error response.
|
1704
|
+
# If you have the required permissions, the error response is
|
1705
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1706
|
+
# @option options [Array<String>] :network_interface_ids
|
1707
|
+
# The network interface IDs.
|
1708
|
+
#
|
1709
|
+
# Default: Describes all your network interfaces.
|
1701
1710
|
# @option options [Array<Types::Filter>] :filters
|
1702
1711
|
# One or more filters.
|
1703
1712
|
#
|
@@ -1813,15 +1822,6 @@ module Aws::EC2
|
|
1813
1822
|
# regardless of the tag value.
|
1814
1823
|
#
|
1815
1824
|
# * `vpc-id` - The ID of the VPC for the network interface.
|
1816
|
-
# @option options [Boolean] :dry_run
|
1817
|
-
# Checks whether you have the required permissions for the action,
|
1818
|
-
# without actually making the request, and provides an error response.
|
1819
|
-
# If you have the required permissions, the error response is
|
1820
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1821
|
-
# @option options [Array<String>] :network_interface_ids
|
1822
|
-
# The network interface IDs.
|
1823
|
-
#
|
1824
|
-
# Default: Describes all your network interfaces.
|
1825
1825
|
# @return [NetworkInterface::Collection]
|
1826
1826
|
def network_interfaces(options = {})
|
1827
1827
|
batches = Enumerator.new do |y|
|