aws-sdk-ec2 1.522.0 → 1.560.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 +190 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +6 -0
- data/lib/aws-sdk-ec2/client.rb +2360 -573
- data/lib/aws-sdk-ec2/client_api.rb +698 -11
- data/lib/aws-sdk-ec2/customizations.rb +0 -1
- data/lib/aws-sdk-ec2/image.rb +28 -25
- data/lib/aws-sdk-ec2/instance.rb +91 -8
- data/lib/aws-sdk-ec2/network_interface.rb +37 -1
- data/lib/aws-sdk-ec2/placement_group.rb +13 -9
- data/lib/aws-sdk-ec2/resource.rb +91 -68
- data/lib/aws-sdk-ec2/route.rb +19 -0
- data/lib/aws-sdk-ec2/route_table.rb +7 -0
- data/lib/aws-sdk-ec2/route_table_association.rb +7 -0
- data/lib/aws-sdk-ec2/security_group.rb +2 -2
- data/lib/aws-sdk-ec2/snapshot.rb +25 -12
- data/lib/aws-sdk-ec2/subnet.rb +59 -38
- data/lib/aws-sdk-ec2/types.rb +2943 -253
- data/lib/aws-sdk-ec2/volume.rb +7 -1
- data/lib/aws-sdk-ec2/vpc.rb +19 -15
- data/lib/aws-sdk-ec2/vpc_address.rb +6 -0
- data/lib/aws-sdk-ec2/waiters.rb +191 -38
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/classic_address.rbs +3 -0
- data/sig/client.rbs +502 -135
- data/sig/image.rbs +4 -0
- data/sig/instance.rbs +15 -3
- data/sig/network_interface.rbs +10 -0
- data/sig/resource.rbs +28 -21
- data/sig/route.rbs +9 -2
- data/sig/route_table.rbs +2 -0
- data/sig/route_table_association.rbs +3 -0
- data/sig/security_group.rbs +2 -2
- data/sig/snapshot.rbs +2 -1
- data/sig/subnet.rbs +11 -5
- data/sig/tag.rbs +1 -1
- data/sig/types.rbs +523 -50
- data/sig/volume.rbs +4 -1
- data/sig/vpc.rbs +5 -5
- data/sig/vpc_address.rbs +3 -0
- data/sig/waiters.rbs +56 -0
- metadata +4 -4
@@ -1 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -142,8 +142,9 @@ module Aws::EC2
|
|
142
142
|
data[:virtualization_type]
|
143
143
|
end
|
144
144
|
|
145
|
-
# The boot mode of the image. For more information, see [
|
146
|
-
# in the *Amazon EC2 User
|
145
|
+
# The boot mode of the image. For more information, see [Instance launch
|
146
|
+
# behavior with Amazon EC2 boot modes][1] in the *Amazon EC2 User
|
147
|
+
# Guide*.
|
147
148
|
#
|
148
149
|
#
|
149
150
|
#
|
@@ -240,38 +241,29 @@ module Aws::EC2
|
|
240
241
|
end
|
241
242
|
|
242
243
|
# The ID of the source AMI from which the AMI was created.
|
243
|
-
#
|
244
|
-
# The ID only appears if the AMI was created using CreateImage,
|
245
|
-
# CopyImage, or CreateRestoreImageTask. The ID does not appear if the
|
246
|
-
# AMI was created using any other API. For some older AMIs, the ID might
|
247
|
-
# not be available. For more information, see [Identify the source AMI
|
248
|
-
# used to create a new AMI][1] in the *Amazon EC2 User Guide*.
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify-source-ami-used-to-create-new-ami.html
|
253
244
|
# @return [String]
|
254
245
|
def source_image_id
|
255
246
|
data[:source_image_id]
|
256
247
|
end
|
257
248
|
|
258
249
|
# The Region of the source AMI.
|
259
|
-
#
|
260
|
-
# The Region only appears if the AMI was created using CreateImage,
|
261
|
-
# CopyImage, or CreateRestoreImageTask. The Region does not appear if
|
262
|
-
# the AMI was created using any other API. For some older AMIs, the
|
263
|
-
# Region might not be available. For more information, see [Identify the
|
264
|
-
# source AMI used to create a new AMI][1] in the *Amazon EC2 User
|
265
|
-
# Guide*.
|
266
|
-
#
|
267
|
-
#
|
268
|
-
#
|
269
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify-source-ami-used-to-create-new-ami.html
|
270
250
|
# @return [String]
|
271
251
|
def source_image_region
|
272
252
|
data[:source_image_region]
|
273
253
|
end
|
274
254
|
|
255
|
+
# Indicates whether the image is eligible for Amazon Web Services Free
|
256
|
+
# Tier.
|
257
|
+
#
|
258
|
+
# * If `true`, the AMI is eligible for Free Tier and can be used to
|
259
|
+
# launch instances under the Free Tier limits.
|
260
|
+
#
|
261
|
+
# * If `false`, the AMI is not eligible for Free Tier.
|
262
|
+
# @return [Boolean]
|
263
|
+
def free_tier_eligible
|
264
|
+
data[:free_tier_eligible]
|
265
|
+
end
|
266
|
+
|
275
267
|
# The location of the AMI.
|
276
268
|
# @return [String]
|
277
269
|
def image_location
|
@@ -605,9 +597,20 @@ module Aws::EC2
|
|
605
597
|
# @example Request syntax with placeholder values
|
606
598
|
#
|
607
599
|
# image.deregister({
|
600
|
+
# delete_associated_snapshots: false,
|
608
601
|
# dry_run: false,
|
609
602
|
# })
|
610
603
|
# @param [Hash] options ({})
|
604
|
+
# @option options [Boolean] :delete_associated_snapshots
|
605
|
+
# Specifies whether to delete the snapshots associated with the AMI
|
606
|
+
# during deregistration.
|
607
|
+
#
|
608
|
+
# <note markdown="1"> If a snapshot is associated with multiple AMIs, it is not deleted,
|
609
|
+
# regardless of this setting.
|
610
|
+
#
|
611
|
+
# </note>
|
612
|
+
#
|
613
|
+
# Default: The snapshots are not deleted.
|
611
614
|
# @option options [Boolean] :dry_run
|
612
615
|
# Checks whether you have the required permissions for the action,
|
613
616
|
# without actually making the request, and provides an error response.
|
@@ -634,8 +637,8 @@ module Aws::EC2
|
|
634
637
|
#
|
635
638
|
# **Note**: The `blockDeviceMapping` attribute is deprecated. Using this
|
636
639
|
# attribute returns the `Client.AuthFailure` error. To get information
|
637
|
-
# about the block device mappings for an AMI,
|
638
|
-
#
|
640
|
+
# about the block device mappings for an AMI, describe the image
|
641
|
+
# instead.
|
639
642
|
# @option options [Boolean] :dry_run
|
640
643
|
# Checks whether you have the required permissions for the action,
|
641
644
|
# without actually making the request, and provides an error response.
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -177,6 +177,17 @@ module Aws::EC2
|
|
177
177
|
data[:cpu_options]
|
178
178
|
end
|
179
179
|
|
180
|
+
# The ID of the Capacity Block.
|
181
|
+
#
|
182
|
+
# <note markdown="1"> For P5 instances, a Capacity Block ID refers to a group of instances.
|
183
|
+
# For Trn2u instances, a capacity block ID refers to an EC2 UltraServer.
|
184
|
+
#
|
185
|
+
# </note>
|
186
|
+
# @return [String]
|
187
|
+
def capacity_block_id
|
188
|
+
data[:capacity_block_id]
|
189
|
+
end
|
190
|
+
|
180
191
|
# The ID of the Capacity Reservation.
|
181
192
|
# @return [String]
|
182
193
|
def capacity_reservation_id
|
@@ -345,9 +356,14 @@ module Aws::EC2
|
|
345
356
|
data[:private_dns_name]
|
346
357
|
end
|
347
358
|
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
359
|
+
# The public DNS name assigned to the instance. This name is not
|
360
|
+
# available until the instance enters the `running` state. This name is
|
361
|
+
# only available if you've enabled DNS hostnames for your VPC. The
|
362
|
+
# format of this name depends on the [public hostname type][1].
|
363
|
+
#
|
364
|
+
#
|
365
|
+
#
|
366
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hostname-types.html#public-hostnames
|
351
367
|
# @return [String]
|
352
368
|
def public_dns_name
|
353
369
|
data[:public_dns_name]
|
@@ -769,7 +785,7 @@ module Aws::EC2
|
|
769
785
|
# image = instance.create_image({
|
770
786
|
# tag_specifications: [
|
771
787
|
# {
|
772
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, 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, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, 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, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token
|
788
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, image-usage-report, 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, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, 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, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token, capacity-block, mac-modification-task
|
773
789
|
# tags: [
|
774
790
|
# {
|
775
791
|
# key: "String",
|
@@ -778,6 +794,7 @@ module Aws::EC2
|
|
778
794
|
# ],
|
779
795
|
# },
|
780
796
|
# ],
|
797
|
+
# snapshot_location: "regional", # accepts regional, local
|
781
798
|
# dry_run: false,
|
782
799
|
# name: "String", # required
|
783
800
|
# description: "String",
|
@@ -793,8 +810,10 @@ module Aws::EC2
|
|
793
810
|
# kms_key_id: "String",
|
794
811
|
# throughput: 1,
|
795
812
|
# outpost_arn: "String",
|
813
|
+
# availability_zone: "String",
|
796
814
|
# encrypted: false,
|
797
815
|
# volume_initialization_rate: 1,
|
816
|
+
# availability_zone_id: "String",
|
798
817
|
# },
|
799
818
|
# no_device: "String",
|
800
819
|
# device_name: "String",
|
@@ -822,6 +841,21 @@ module Aws::EC2
|
|
822
841
|
#
|
823
842
|
#
|
824
843
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
844
|
+
# @option options [String] :snapshot_location
|
845
|
+
# <note markdown="1"> Only supported for instances in Local Zones. If the source instance is
|
846
|
+
# not in a Local Zone, omit this parameter.
|
847
|
+
#
|
848
|
+
# </note>
|
849
|
+
#
|
850
|
+
# The Amazon S3 location where the snapshots will be stored.
|
851
|
+
#
|
852
|
+
# * To create local snapshots in the same Local Zone as the source
|
853
|
+
# instance, specify `local`.
|
854
|
+
#
|
855
|
+
# * To create regional snapshots in the parent Region of the Local Zone,
|
856
|
+
# specify `regional` or omit this parameter.
|
857
|
+
#
|
858
|
+
# Default: `regional`
|
825
859
|
# @option options [Boolean] :dry_run
|
826
860
|
# Checks whether you have the required permissions for the action,
|
827
861
|
# without actually making the request, and provides an error response.
|
@@ -863,7 +897,7 @@ module Aws::EC2
|
|
863
897
|
# snapshots. To create an AMI with volumes or snapshots that have a
|
864
898
|
# different encryption status (for example, where the source volume
|
865
899
|
# and snapshots are unencrypted, and you want to create an AMI with
|
866
|
-
# encrypted volumes or snapshots),
|
900
|
+
# encrypted volumes or snapshots), copy the image instead.
|
867
901
|
#
|
868
902
|
# * The only option that can be changed for existing mappings or
|
869
903
|
# snapshots is `DeleteOnTermination`.
|
@@ -1140,7 +1174,7 @@ module Aws::EC2
|
|
1140
1174
|
# value is specified for `DeleteOnTermination`, the default is `true`
|
1141
1175
|
# and the volume is deleted when the instance is terminated. You can't
|
1142
1176
|
# modify the `DeleteOnTermination` attribute for volumes that are
|
1143
|
-
# attached to
|
1177
|
+
# attached to Amazon Web Services-managed resources.
|
1144
1178
|
#
|
1145
1179
|
# To add instance store volumes to an Amazon EBS-backed instance, you
|
1146
1180
|
# must add them when you launch the instance. For more information, see
|
@@ -1468,6 +1502,7 @@ module Aws::EC2
|
|
1468
1502
|
#
|
1469
1503
|
# instance.stop({
|
1470
1504
|
# hibernate: false,
|
1505
|
+
# skip_os_shutdown: false,
|
1471
1506
|
# dry_run: false,
|
1472
1507
|
# force: false,
|
1473
1508
|
# })
|
@@ -1475,7 +1510,7 @@ module Aws::EC2
|
|
1475
1510
|
# @option options [Boolean] :hibernate
|
1476
1511
|
# Hibernates the instance if the instance was enabled for hibernation at
|
1477
1512
|
# launch. If the instance cannot hibernate successfully, a normal
|
1478
|
-
# shutdown occurs. For more information, see [Hibernate your
|
1513
|
+
# shutdown occurs. For more information, see [Hibernate your Amazon EC2
|
1479
1514
|
# instance][1] in the *Amazon EC2 User Guide*.
|
1480
1515
|
#
|
1481
1516
|
# Default: `false`
|
@@ -1483,6 +1518,15 @@ module Aws::EC2
|
|
1483
1518
|
#
|
1484
1519
|
#
|
1485
1520
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
|
1521
|
+
# @option options [Boolean] :skip_os_shutdown
|
1522
|
+
# Specifies whether to bypass the graceful OS shutdown process when the
|
1523
|
+
# instance is stopped.
|
1524
|
+
#
|
1525
|
+
# Bypassing the graceful OS shutdown might result in data loss or
|
1526
|
+
# corruption (for example, memory contents not flushed to disk or loss
|
1527
|
+
# of in-flight IOs) or skipped shutdown scripts.
|
1528
|
+
#
|
1529
|
+
# Default: `false`
|
1486
1530
|
# @option options [Boolean] :dry_run
|
1487
1531
|
# Checks whether you have the required permissions for the operation,
|
1488
1532
|
# without actually making the request, and provides an error response.
|
@@ -1517,9 +1561,22 @@ module Aws::EC2
|
|
1517
1561
|
# @example Request syntax with placeholder values
|
1518
1562
|
#
|
1519
1563
|
# instance.terminate({
|
1564
|
+
# force: false,
|
1565
|
+
# skip_os_shutdown: false,
|
1520
1566
|
# dry_run: false,
|
1521
1567
|
# })
|
1522
1568
|
# @param [Hash] options ({})
|
1569
|
+
# @option options [Boolean] :force
|
1570
|
+
# Forces the instances to terminate. The instance will first attempt a
|
1571
|
+
# graceful shutdown, which includes flushing file system caches and
|
1572
|
+
# metadata. If the graceful shutdown fails to complete within the
|
1573
|
+
# timeout period, the instance shuts down forcibly without flushing the
|
1574
|
+
# file system caches and metadata.
|
1575
|
+
# @option options [Boolean] :skip_os_shutdown
|
1576
|
+
# Specifies whether to bypass the graceful OS shutdown process when the
|
1577
|
+
# instance is terminated.
|
1578
|
+
#
|
1579
|
+
# Default: `false`
|
1523
1580
|
# @option options [Boolean] :dry_run
|
1524
1581
|
# Checks whether you have the required permissions for the operation,
|
1525
1582
|
# without actually making the request, and provides an error response.
|
@@ -1671,6 +1728,9 @@ module Aws::EC2
|
|
1671
1728
|
# * `availability-zone` - The Availability Zone in which the volume was
|
1672
1729
|
# created.
|
1673
1730
|
#
|
1731
|
+
# * `availability-zone-id` - The ID of the Availability Zone in which
|
1732
|
+
# the volume was created.
|
1733
|
+
#
|
1674
1734
|
# * `create-time` - The time stamp when the volume was created.
|
1675
1735
|
#
|
1676
1736
|
# * `encrypted` - Indicates whether the volume is encrypted (`true` \|
|
@@ -2045,6 +2105,7 @@ module Aws::EC2
|
|
2045
2105
|
#
|
2046
2106
|
# instance.batch_stop({
|
2047
2107
|
# hibernate: false,
|
2108
|
+
# skip_os_shutdown: false,
|
2048
2109
|
# dry_run: false,
|
2049
2110
|
# force: false,
|
2050
2111
|
# })
|
@@ -2052,7 +2113,7 @@ module Aws::EC2
|
|
2052
2113
|
# @option options [Boolean] :hibernate
|
2053
2114
|
# Hibernates the instance if the instance was enabled for hibernation at
|
2054
2115
|
# launch. If the instance cannot hibernate successfully, a normal
|
2055
|
-
# shutdown occurs. For more information, see [Hibernate your
|
2116
|
+
# shutdown occurs. For more information, see [Hibernate your Amazon EC2
|
2056
2117
|
# instance][1] in the *Amazon EC2 User Guide*.
|
2057
2118
|
#
|
2058
2119
|
# Default: `false`
|
@@ -2060,6 +2121,15 @@ module Aws::EC2
|
|
2060
2121
|
#
|
2061
2122
|
#
|
2062
2123
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
|
2124
|
+
# @option options [Boolean] :skip_os_shutdown
|
2125
|
+
# Specifies whether to bypass the graceful OS shutdown process when the
|
2126
|
+
# instance is stopped.
|
2127
|
+
#
|
2128
|
+
# Bypassing the graceful OS shutdown might result in data loss or
|
2129
|
+
# corruption (for example, memory contents not flushed to disk or loss
|
2130
|
+
# of in-flight IOs) or skipped shutdown scripts.
|
2131
|
+
#
|
2132
|
+
# Default: `false`
|
2063
2133
|
# @option options [Boolean] :dry_run
|
2064
2134
|
# Checks whether you have the required permissions for the operation,
|
2065
2135
|
# without actually making the request, and provides an error response.
|
@@ -2100,9 +2170,22 @@ module Aws::EC2
|
|
2100
2170
|
# @example Request syntax with placeholder values
|
2101
2171
|
#
|
2102
2172
|
# instance.batch_terminate!({
|
2173
|
+
# force: false,
|
2174
|
+
# skip_os_shutdown: false,
|
2103
2175
|
# dry_run: false,
|
2104
2176
|
# })
|
2105
2177
|
# @param options ({})
|
2178
|
+
# @option options [Boolean] :force
|
2179
|
+
# Forces the instances to terminate. The instance will first attempt a
|
2180
|
+
# graceful shutdown, which includes flushing file system caches and
|
2181
|
+
# metadata. If the graceful shutdown fails to complete within the
|
2182
|
+
# timeout period, the instance shuts down forcibly without flushing the
|
2183
|
+
# file system caches and metadata.
|
2184
|
+
# @option options [Boolean] :skip_os_shutdown
|
2185
|
+
# Specifies whether to bypass the graceful OS shutdown process when the
|
2186
|
+
# instance is terminated.
|
2187
|
+
#
|
2188
|
+
# Default: `false`
|
2106
2189
|
# @option options [Boolean] :dry_run
|
2107
2190
|
# Checks whether you have the required permissions for the operation,
|
2108
2191
|
# without actually making the request, and provides an error response.
|
@@ -103,12 +103,39 @@ module Aws::EC2
|
|
103
103
|
data[:owner_id]
|
104
104
|
end
|
105
105
|
|
106
|
-
# The private
|
106
|
+
# The private hostname. For more information, see [EC2 instance
|
107
|
+
# hostnames, DNS names, and domains][1] in the *Amazon EC2 User Guide*.
|
108
|
+
#
|
109
|
+
#
|
110
|
+
#
|
111
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
|
107
112
|
# @return [String]
|
108
113
|
def private_dns_name
|
109
114
|
data[:private_dns_name]
|
110
115
|
end
|
111
116
|
|
117
|
+
# A public hostname. For more information, see [EC2 instance hostnames,
|
118
|
+
# DNS names, and domains][1] in the *Amazon EC2 User Guide*.
|
119
|
+
#
|
120
|
+
#
|
121
|
+
#
|
122
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
|
123
|
+
# @return [String]
|
124
|
+
def public_dns_name
|
125
|
+
data[:public_dns_name]
|
126
|
+
end
|
127
|
+
|
128
|
+
# Public hostname type options. For more information, see [EC2 instance
|
129
|
+
# hostnames, DNS names, and domains][1] in the *Amazon EC2 User Guide*.
|
130
|
+
#
|
131
|
+
#
|
132
|
+
#
|
133
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
|
134
|
+
# @return [Types::PublicIpDnsNameOptions]
|
135
|
+
def public_ip_dns_name_options
|
136
|
+
data[:public_ip_dns_name_options]
|
137
|
+
end
|
138
|
+
|
112
139
|
# The IPv4 address of the network interface within the subnet.
|
113
140
|
# @return [String]
|
114
141
|
def private_ip_address
|
@@ -207,6 +234,12 @@ module Aws::EC2
|
|
207
234
|
data[:operator]
|
208
235
|
end
|
209
236
|
|
237
|
+
# The subnets associated with this network interface.
|
238
|
+
# @return [Array<String>]
|
239
|
+
def associated_subnets
|
240
|
+
data[:associated_subnets]
|
241
|
+
end
|
242
|
+
|
210
243
|
# @!endgroup
|
211
244
|
|
212
245
|
# @return [Client]
|
@@ -617,6 +650,7 @@ module Aws::EC2
|
|
617
650
|
# udp_timeout: 1,
|
618
651
|
# },
|
619
652
|
# associate_public_ip_address: false,
|
653
|
+
# associated_subnet_ids: ["SubnetId"],
|
620
654
|
# dry_run: false,
|
621
655
|
# description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
622
656
|
# source_dest_check: {
|
@@ -656,6 +690,8 @@ module Aws::EC2
|
|
656
690
|
# Indicates whether to assign a public IPv4 address to a network
|
657
691
|
# interface. This option can be enabled for any network interface but
|
658
692
|
# will only apply to the primary network interface (eth0).
|
693
|
+
# @option options [Array<String>] :associated_subnet_ids
|
694
|
+
# A list of subnet IDs to associate with the network interface.
|
659
695
|
# @option options [Boolean] :dry_run
|
660
696
|
# Checks whether you have the required permissions for the action,
|
661
697
|
# without actually making the request, and provides an error response.
|
@@ -272,6 +272,9 @@ module Aws::EC2
|
|
272
272
|
#
|
273
273
|
# * `availability-zone` - The Availability Zone of the instance.
|
274
274
|
#
|
275
|
+
# * `availability-zone-id` - The ID of the Availability Zone of the
|
276
|
+
# instance.
|
277
|
+
#
|
275
278
|
# * `block-device-mapping.attach-time` - The attach time for an EBS
|
276
279
|
# volume mapped to the instance, for example,
|
277
280
|
# `2022-09-15T17:15:20.000Z`.
|
@@ -598,15 +601,16 @@ module Aws::EC2
|
|
598
601
|
#
|
599
602
|
# * `platform-details` - The platform (`Linux/UNIX` \| `Red Hat BYOL
|
600
603
|
# Linux` \| ` Red Hat Enterprise Linux` \| `Red Hat Enterprise Linux
|
601
|
-
# with HA` \| `Red Hat Enterprise Linux with
|
602
|
-
#
|
603
|
-
#
|
604
|
-
# Enterprise Linux with SQL Server
|
605
|
-
# with SQL Server
|
606
|
-
# Server
|
607
|
-
# \| `
|
608
|
-
#
|
609
|
-
# SQL Server
|
604
|
+
# with HA` \| `Red Hat Enterprise Linux with High Availability` \|
|
605
|
+
# `Red Hat Enterprise Linux with SQL Server Standard and HA` \| `Red
|
606
|
+
# Hat Enterprise Linux with SQL Server Enterprise and HA` \| `Red Hat
|
607
|
+
# Enterprise Linux with SQL Server Standard` \| `Red Hat Enterprise
|
608
|
+
# Linux with SQL Server Web` \| `Red Hat Enterprise Linux with SQL
|
609
|
+
# Server Enterprise` \| `SQL Server Enterprise` \| `SQL Server
|
610
|
+
# Standard` \| `SQL Server Web` \| `SUSE Linux` \| `Ubuntu Pro` \|
|
611
|
+
# `Windows` \| `Windows BYOL` \| `Windows with SQL Server Enterprise`
|
612
|
+
# \| `Windows with SQL Server Standard` \| `Windows with SQL Server
|
613
|
+
# Web`).
|
610
614
|
#
|
611
615
|
# * `private-dns-name` - The private IPv4 DNS name of the instance.
|
612
616
|
#
|