aws-sdk-ec2 1.540.0 → 1.542.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/client.rb +98 -71
- data/lib/aws-sdk-ec2/client_api.rb +4 -2
- data/lib/aws-sdk-ec2/instance.rb +34 -2
- data/lib/aws-sdk-ec2/resource.rb +19 -25
- data/lib/aws-sdk-ec2/subnet.rb +19 -25
- data/lib/aws-sdk-ec2/types.rb +66 -42
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +2 -0
- data/sig/instance.rbs +4 -0
- data/sig/types.rbs +13 -11
- metadata +1 -1
@@ -10007,7 +10007,7 @@ module Aws::EC2
|
|
10007
10007
|
FleetLaunchTemplateOverrides.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
|
10008
10008
|
FleetLaunchTemplateOverrides.add_member(:max_price, Shapes::ShapeRef.new(shape: String, location_name: "maxPrice"))
|
10009
10009
|
FleetLaunchTemplateOverrides.add_member(:subnet_id, Shapes::ShapeRef.new(shape: String, location_name: "subnetId"))
|
10010
|
-
FleetLaunchTemplateOverrides.add_member(:availability_zone, Shapes::ShapeRef.new(shape:
|
10010
|
+
FleetLaunchTemplateOverrides.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "availabilityZone"))
|
10011
10011
|
FleetLaunchTemplateOverrides.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: Double, location_name: "weightedCapacity"))
|
10012
10012
|
FleetLaunchTemplateOverrides.add_member(:priority, Shapes::ShapeRef.new(shape: Double, location_name: "priority"))
|
10013
10013
|
FleetLaunchTemplateOverrides.add_member(:placement, Shapes::ShapeRef.new(shape: PlacementResponse, location_name: "placement"))
|
@@ -10023,7 +10023,7 @@ module Aws::EC2
|
|
10023
10023
|
FleetLaunchTemplateOverridesRequest.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "InstanceType"))
|
10024
10024
|
FleetLaunchTemplateOverridesRequest.add_member(:max_price, Shapes::ShapeRef.new(shape: String, location_name: "MaxPrice"))
|
10025
10025
|
FleetLaunchTemplateOverridesRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "SubnetId"))
|
10026
|
-
FleetLaunchTemplateOverridesRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape:
|
10026
|
+
FleetLaunchTemplateOverridesRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "AvailabilityZone"))
|
10027
10027
|
FleetLaunchTemplateOverridesRequest.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: Double, location_name: "WeightedCapacity"))
|
10028
10028
|
FleetLaunchTemplateOverridesRequest.add_member(:priority, Shapes::ShapeRef.new(shape: Double, location_name: "Priority"))
|
10029
10029
|
FleetLaunchTemplateOverridesRequest.add_member(:placement, Shapes::ShapeRef.new(shape: Placement, location_name: "Placement"))
|
@@ -16116,6 +16116,7 @@ module Aws::EC2
|
|
16116
16116
|
|
16117
16117
|
StopInstancesRequest.add_member(:instance_ids, Shapes::ShapeRef.new(shape: InstanceIdStringList, required: true, location_name: "InstanceId"))
|
16118
16118
|
StopInstancesRequest.add_member(:hibernate, Shapes::ShapeRef.new(shape: Boolean, location_name: "Hibernate"))
|
16119
|
+
StopInstancesRequest.add_member(:skip_os_shutdown, Shapes::ShapeRef.new(shape: Boolean, location_name: "SkipOsShutdown"))
|
16119
16120
|
StopInstancesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
16120
16121
|
StopInstancesRequest.add_member(:force, Shapes::ShapeRef.new(shape: Boolean, location_name: "force"))
|
16121
16122
|
StopInstancesRequest.struct_class = Types::StopInstancesRequest
|
@@ -16333,6 +16334,7 @@ module Aws::EC2
|
|
16333
16334
|
TerminateConnectionStatusSet.member = Shapes::ShapeRef.new(shape: TerminateConnectionStatus, location_name: "item")
|
16334
16335
|
|
16335
16336
|
TerminateInstancesRequest.add_member(:instance_ids, Shapes::ShapeRef.new(shape: InstanceIdStringList, required: true, location_name: "InstanceId"))
|
16337
|
+
TerminateInstancesRequest.add_member(:skip_os_shutdown, Shapes::ShapeRef.new(shape: Boolean, location_name: "SkipOsShutdown"))
|
16336
16338
|
TerminateInstancesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
16337
16339
|
TerminateInstancesRequest.struct_class = Types::TerminateInstancesRequest
|
16338
16340
|
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -1502,6 +1502,7 @@ module Aws::EC2
|
|
1502
1502
|
#
|
1503
1503
|
# instance.stop({
|
1504
1504
|
# hibernate: false,
|
1505
|
+
# skip_os_shutdown: false,
|
1505
1506
|
# dry_run: false,
|
1506
1507
|
# force: false,
|
1507
1508
|
# })
|
@@ -1509,7 +1510,7 @@ module Aws::EC2
|
|
1509
1510
|
# @option options [Boolean] :hibernate
|
1510
1511
|
# Hibernates the instance if the instance was enabled for hibernation at
|
1511
1512
|
# launch. If the instance cannot hibernate successfully, a normal
|
1512
|
-
# shutdown occurs. For more information, see [Hibernate your
|
1513
|
+
# shutdown occurs. For more information, see [Hibernate your Amazon EC2
|
1513
1514
|
# instance][1] in the *Amazon EC2 User Guide*.
|
1514
1515
|
#
|
1515
1516
|
# Default: `false`
|
@@ -1517,6 +1518,15 @@ module Aws::EC2
|
|
1517
1518
|
#
|
1518
1519
|
#
|
1519
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`
|
1520
1530
|
# @option options [Boolean] :dry_run
|
1521
1531
|
# Checks whether you have the required permissions for the operation,
|
1522
1532
|
# without actually making the request, and provides an error response.
|
@@ -1551,9 +1561,15 @@ module Aws::EC2
|
|
1551
1561
|
# @example Request syntax with placeholder values
|
1552
1562
|
#
|
1553
1563
|
# instance.terminate({
|
1564
|
+
# skip_os_shutdown: false,
|
1554
1565
|
# dry_run: false,
|
1555
1566
|
# })
|
1556
1567
|
# @param [Hash] options ({})
|
1568
|
+
# @option options [Boolean] :skip_os_shutdown
|
1569
|
+
# Specifies whether to bypass the graceful OS shutdown process when the
|
1570
|
+
# instance is terminated.
|
1571
|
+
#
|
1572
|
+
# Default: `false`
|
1557
1573
|
# @option options [Boolean] :dry_run
|
1558
1574
|
# Checks whether you have the required permissions for the operation,
|
1559
1575
|
# without actually making the request, and provides an error response.
|
@@ -2079,6 +2095,7 @@ module Aws::EC2
|
|
2079
2095
|
#
|
2080
2096
|
# instance.batch_stop({
|
2081
2097
|
# hibernate: false,
|
2098
|
+
# skip_os_shutdown: false,
|
2082
2099
|
# dry_run: false,
|
2083
2100
|
# force: false,
|
2084
2101
|
# })
|
@@ -2086,7 +2103,7 @@ module Aws::EC2
|
|
2086
2103
|
# @option options [Boolean] :hibernate
|
2087
2104
|
# Hibernates the instance if the instance was enabled for hibernation at
|
2088
2105
|
# launch. If the instance cannot hibernate successfully, a normal
|
2089
|
-
# shutdown occurs. For more information, see [Hibernate your
|
2106
|
+
# shutdown occurs. For more information, see [Hibernate your Amazon EC2
|
2090
2107
|
# instance][1] in the *Amazon EC2 User Guide*.
|
2091
2108
|
#
|
2092
2109
|
# Default: `false`
|
@@ -2094,6 +2111,15 @@ module Aws::EC2
|
|
2094
2111
|
#
|
2095
2112
|
#
|
2096
2113
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
|
2114
|
+
# @option options [Boolean] :skip_os_shutdown
|
2115
|
+
# Specifies whether to bypass the graceful OS shutdown process when the
|
2116
|
+
# instance is stopped.
|
2117
|
+
#
|
2118
|
+
# Bypassing the graceful OS shutdown might result in data loss or
|
2119
|
+
# corruption (for example, memory contents not flushed to disk or loss
|
2120
|
+
# of in-flight IOs) or skipped shutdown scripts.
|
2121
|
+
#
|
2122
|
+
# Default: `false`
|
2097
2123
|
# @option options [Boolean] :dry_run
|
2098
2124
|
# Checks whether you have the required permissions for the operation,
|
2099
2125
|
# without actually making the request, and provides an error response.
|
@@ -2134,9 +2160,15 @@ module Aws::EC2
|
|
2134
2160
|
# @example Request syntax with placeholder values
|
2135
2161
|
#
|
2136
2162
|
# instance.batch_terminate!({
|
2163
|
+
# skip_os_shutdown: false,
|
2137
2164
|
# dry_run: false,
|
2138
2165
|
# })
|
2139
2166
|
# @param options ({})
|
2167
|
+
# @option options [Boolean] :skip_os_shutdown
|
2168
|
+
# Specifies whether to bypass the graceful OS shutdown process when the
|
2169
|
+
# instance is terminated.
|
2170
|
+
#
|
2171
|
+
# Default: `false`
|
2140
2172
|
# @option options [Boolean] :dry_run
|
2141
2173
|
# Checks whether you have the required permissions for the operation,
|
2142
2174
|
# without actually making the request, and provides an error response.
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -301,12 +301,12 @@ module Aws::EC2
|
|
301
301
|
# The ID of the AMI. An AMI ID is required to launch an instance and
|
302
302
|
# must be specified here or in a launch template.
|
303
303
|
# @option options [String] :instance_type
|
304
|
-
# The instance type. For more information, see [Amazon EC2
|
305
|
-
#
|
304
|
+
# The instance type. For more information, see [Amazon EC2 Instance
|
305
|
+
# Types Guide][1].
|
306
306
|
#
|
307
307
|
#
|
308
308
|
#
|
309
|
-
# [1]: https://docs.aws.amazon.com/
|
309
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-types.html
|
310
310
|
# @option options [Integer] :ipv_6_address_count
|
311
311
|
# The number of IPv6 addresses to associate with the primary network
|
312
312
|
# interface. Amazon EC2 chooses the IPv6 addresses from the range of
|
@@ -335,8 +335,8 @@ module Aws::EC2
|
|
335
335
|
#
|
336
336
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
|
337
337
|
# @option options [String] :key_name
|
338
|
-
# The name of the key pair.
|
339
|
-
#
|
338
|
+
# The name of the key pair. For more information, see [Create a key pair
|
339
|
+
# for your EC2 instance][1].
|
340
340
|
#
|
341
341
|
# If you do not specify a key pair, you can't connect to the instance
|
342
342
|
# unless you choose an AMI that is configured to allow users another way
|
@@ -344,8 +344,7 @@ module Aws::EC2
|
|
344
344
|
#
|
345
345
|
#
|
346
346
|
#
|
347
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/
|
348
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
|
347
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html
|
349
348
|
# @option options [required, Integer] :max_count
|
350
349
|
# The maximum number of instances to launch. If you specify a value that
|
351
350
|
# is more capacity than Amazon EC2 can launch in the target Availability
|
@@ -389,16 +388,11 @@ module Aws::EC2
|
|
389
388
|
#
|
390
389
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
|
391
390
|
# @option options [Array<String>] :security_group_ids
|
392
|
-
# The IDs of the security groups.
|
393
|
-
# [CreateSecurityGroup][1].
|
391
|
+
# The IDs of the security groups.
|
394
392
|
#
|
395
393
|
# If you specify a network interface, you must specify any security
|
396
394
|
# groups as part of the network interface instead of using this
|
397
395
|
# parameter.
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
401
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
|
402
396
|
# @option options [Array<String>] :security_groups
|
403
397
|
# \[Default VPC\] The names of the security groups.
|
404
398
|
#
|
@@ -416,11 +410,11 @@ module Aws::EC2
|
|
416
410
|
# The user data to make available to the instance. User data must be
|
417
411
|
# base64-encoded. Depending on the tool or SDK that you're using, the
|
418
412
|
# base64-encoding might be performed for you. For more information, see
|
419
|
-
# [
|
413
|
+
# [Run commands at launch using instance user data][1].
|
420
414
|
#
|
421
415
|
#
|
422
416
|
#
|
423
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
417
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
424
418
|
# @option options [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
|
425
419
|
# An elastic GPU to associate with the instance.
|
426
420
|
#
|
@@ -508,23 +502,22 @@ module Aws::EC2
|
|
508
502
|
# The license configurations.
|
509
503
|
# @option options [Types::InstanceMetadataOptionsRequest] :metadata_options
|
510
504
|
# The metadata options for the instance. For more information, see
|
511
|
-
# [Instance
|
505
|
+
# [Configure the Instance Metadata Service options][1].
|
512
506
|
#
|
513
507
|
#
|
514
508
|
#
|
515
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
509
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html
|
516
510
|
# @option options [Types::EnclaveOptionsRequest] :enclave_options
|
517
511
|
# Indicates whether the instance is enabled for Amazon Web Services
|
518
|
-
# Nitro Enclaves. For more information, see [
|
519
|
-
#
|
520
|
-
# Guide*.
|
512
|
+
# Nitro Enclaves. For more information, see [Amazon Web Services Nitro
|
513
|
+
# Enclaves User Guide][1].
|
521
514
|
#
|
522
515
|
# You can't enable Amazon Web Services Nitro Enclaves and hibernation
|
523
516
|
# on the same instance.
|
524
517
|
#
|
525
518
|
#
|
526
519
|
#
|
527
|
-
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
520
|
+
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
528
521
|
# @option options [Types::PrivateDnsNameOptionsRequest] :private_dns_name_options
|
529
522
|
# The options for the instance hostname. The default values are
|
530
523
|
# inherited from the subnet. Applies only if creating a network
|
@@ -533,11 +526,11 @@ module Aws::EC2
|
|
533
526
|
# The maintenance and recovery options for the instance.
|
534
527
|
# @option options [Boolean] :disable_api_stop
|
535
528
|
# Indicates whether an instance is enabled for stop protection. For more
|
536
|
-
# information, see [
|
529
|
+
# information, see [Enable stop protection for your EC2 instances][1].
|
537
530
|
#
|
538
531
|
#
|
539
532
|
#
|
540
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
533
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html
|
541
534
|
# @option options [Boolean] :enable_primary_ipv_6
|
542
535
|
# If you’re launching an instance into a dual-stack or IPv6-only subnet,
|
543
536
|
# you can enable assigning a primary IPv6 address. A primary IPv6
|
@@ -594,13 +587,14 @@ module Aws::EC2
|
|
594
587
|
# randomly generated token is used for the request to ensure
|
595
588
|
# idempotency.
|
596
589
|
#
|
597
|
-
# For more information, see [Ensuring
|
590
|
+
# For more information, see [Ensuring idempotency in Amazon EC2 API
|
591
|
+
# requests][1].
|
598
592
|
#
|
599
593
|
# Constraints: Maximum 64 ASCII characters
|
600
594
|
#
|
601
595
|
#
|
602
596
|
#
|
603
|
-
# [1]: https://docs.aws.amazon.com/
|
597
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
604
598
|
# @option options [String] :additional_info
|
605
599
|
# Reserved.
|
606
600
|
# @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -562,12 +562,12 @@ module Aws::EC2
|
|
562
562
|
# The ID of the AMI. An AMI ID is required to launch an instance and
|
563
563
|
# must be specified here or in a launch template.
|
564
564
|
# @option options [String] :instance_type
|
565
|
-
# The instance type. For more information, see [Amazon EC2
|
566
|
-
#
|
565
|
+
# The instance type. For more information, see [Amazon EC2 Instance
|
566
|
+
# Types Guide][1].
|
567
567
|
#
|
568
568
|
#
|
569
569
|
#
|
570
|
-
# [1]: https://docs.aws.amazon.com/
|
570
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-types.html
|
571
571
|
# @option options [Integer] :ipv_6_address_count
|
572
572
|
# The number of IPv6 addresses to associate with the primary network
|
573
573
|
# interface. Amazon EC2 chooses the IPv6 addresses from the range of
|
@@ -596,8 +596,8 @@ module Aws::EC2
|
|
596
596
|
#
|
597
597
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
|
598
598
|
# @option options [String] :key_name
|
599
|
-
# The name of the key pair.
|
600
|
-
#
|
599
|
+
# The name of the key pair. For more information, see [Create a key pair
|
600
|
+
# for your EC2 instance][1].
|
601
601
|
#
|
602
602
|
# If you do not specify a key pair, you can't connect to the instance
|
603
603
|
# unless you choose an AMI that is configured to allow users another way
|
@@ -605,8 +605,7 @@ module Aws::EC2
|
|
605
605
|
#
|
606
606
|
#
|
607
607
|
#
|
608
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/
|
609
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
|
608
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html
|
610
609
|
# @option options [required, Integer] :max_count
|
611
610
|
# The maximum number of instances to launch. If you specify a value that
|
612
611
|
# is more capacity than Amazon EC2 can launch in the target Availability
|
@@ -650,16 +649,11 @@ module Aws::EC2
|
|
650
649
|
#
|
651
650
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
|
652
651
|
# @option options [Array<String>] :security_group_ids
|
653
|
-
# The IDs of the security groups.
|
654
|
-
# [CreateSecurityGroup][1].
|
652
|
+
# The IDs of the security groups.
|
655
653
|
#
|
656
654
|
# If you specify a network interface, you must specify any security
|
657
655
|
# groups as part of the network interface instead of using this
|
658
656
|
# parameter.
|
659
|
-
#
|
660
|
-
#
|
661
|
-
#
|
662
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
|
663
657
|
# @option options [Array<String>] :security_groups
|
664
658
|
# \[Default VPC\] The names of the security groups.
|
665
659
|
#
|
@@ -672,11 +666,11 @@ module Aws::EC2
|
|
672
666
|
# The user data to make available to the instance. User data must be
|
673
667
|
# base64-encoded. Depending on the tool or SDK that you're using, the
|
674
668
|
# base64-encoding might be performed for you. For more information, see
|
675
|
-
# [
|
669
|
+
# [Run commands at launch using instance user data][1].
|
676
670
|
#
|
677
671
|
#
|
678
672
|
#
|
679
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
673
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
680
674
|
# @option options [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
|
681
675
|
# An elastic GPU to associate with the instance.
|
682
676
|
#
|
@@ -764,23 +758,22 @@ module Aws::EC2
|
|
764
758
|
# The license configurations.
|
765
759
|
# @option options [Types::InstanceMetadataOptionsRequest] :metadata_options
|
766
760
|
# The metadata options for the instance. For more information, see
|
767
|
-
# [Instance
|
761
|
+
# [Configure the Instance Metadata Service options][1].
|
768
762
|
#
|
769
763
|
#
|
770
764
|
#
|
771
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
765
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html
|
772
766
|
# @option options [Types::EnclaveOptionsRequest] :enclave_options
|
773
767
|
# Indicates whether the instance is enabled for Amazon Web Services
|
774
|
-
# Nitro Enclaves. For more information, see [
|
775
|
-
#
|
776
|
-
# Guide*.
|
768
|
+
# Nitro Enclaves. For more information, see [Amazon Web Services Nitro
|
769
|
+
# Enclaves User Guide][1].
|
777
770
|
#
|
778
771
|
# You can't enable Amazon Web Services Nitro Enclaves and hibernation
|
779
772
|
# on the same instance.
|
780
773
|
#
|
781
774
|
#
|
782
775
|
#
|
783
|
-
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
776
|
+
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
784
777
|
# @option options [Types::PrivateDnsNameOptionsRequest] :private_dns_name_options
|
785
778
|
# The options for the instance hostname. The default values are
|
786
779
|
# inherited from the subnet. Applies only if creating a network
|
@@ -789,11 +782,11 @@ module Aws::EC2
|
|
789
782
|
# The maintenance and recovery options for the instance.
|
790
783
|
# @option options [Boolean] :disable_api_stop
|
791
784
|
# Indicates whether an instance is enabled for stop protection. For more
|
792
|
-
# information, see [
|
785
|
+
# information, see [Enable stop protection for your EC2 instances][1].
|
793
786
|
#
|
794
787
|
#
|
795
788
|
#
|
796
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
789
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html
|
797
790
|
# @option options [Boolean] :enable_primary_ipv_6
|
798
791
|
# If you’re launching an instance into a dual-stack or IPv6-only subnet,
|
799
792
|
# you can enable assigning a primary IPv6 address. A primary IPv6
|
@@ -850,13 +843,14 @@ module Aws::EC2
|
|
850
843
|
# randomly generated token is used for the request to ensure
|
851
844
|
# idempotency.
|
852
845
|
#
|
853
|
-
# For more information, see [Ensuring
|
846
|
+
# For more information, see [Ensuring idempotency in Amazon EC2 API
|
847
|
+
# requests][1].
|
854
848
|
#
|
855
849
|
# Constraints: Maximum 64 ASCII characters
|
856
850
|
#
|
857
851
|
#
|
858
852
|
#
|
859
|
-
# [1]: https://docs.aws.amazon.com/
|
853
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
860
854
|
# @option options [String] :additional_info
|
861
855
|
# Reserved.
|
862
856
|
# @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -8140,7 +8140,7 @@ module Aws::EC2
|
|
8140
8140
|
# The instance type for which to reserve capacity.
|
8141
8141
|
#
|
8142
8142
|
# <note markdown="1"> You can request future-dated Capacity Reservations for instance
|
8143
|
-
# types in the C, M, R, I, and
|
8143
|
+
# types in the C, M, R, I, T, and G instance families only.
|
8144
8144
|
#
|
8145
8145
|
# </note>
|
8146
8146
|
#
|
@@ -8181,9 +8181,9 @@ module Aws::EC2
|
|
8181
8181
|
# The number of instances for which to reserve capacity.
|
8182
8182
|
#
|
8183
8183
|
# <note markdown="1"> You can request future-dated Capacity Reservations for an instance
|
8184
|
-
# count with a minimum of
|
8184
|
+
# count with a minimum of 64 vCPUs. For example, if you request a
|
8185
8185
|
# future-dated Capacity Reservation for `m5.xlarge` instances, you
|
8186
|
-
# must request at least 25 instances (*
|
8186
|
+
# must request at least 25 instances (*16 * m5.xlarge = 64 vCPUs*).
|
8187
8187
|
#
|
8188
8188
|
# </note>
|
8189
8189
|
#
|
@@ -23560,8 +23560,9 @@ module Aws::EC2
|
|
23560
23560
|
# express (NVMe) is supported for EBS volumes (`required` \|
|
23561
23561
|
# `supported` \| `unsupported`).
|
23562
23562
|
#
|
23563
|
-
# * `free-tier-eligible` -
|
23564
|
-
#
|
23563
|
+
# * `free-tier-eligible` - A Boolean that indicates whether this
|
23564
|
+
# instance type can be used under the Amazon Web Services Free Tier
|
23565
|
+
# (`true` \| `false`).
|
23565
23566
|
#
|
23566
23567
|
# * `hibernation-supported` - Indicates whether On-Demand hibernation
|
23567
23568
|
# is supported (`true` \| `false`).
|
@@ -34549,14 +34550,18 @@ module Aws::EC2
|
|
34549
34550
|
# but not both. If neither is specified, Amazon EC2 automatically
|
34550
34551
|
# selects an Availability Zone within the Region.
|
34551
34552
|
#
|
34552
|
-
# This parameter is not supported when using [
|
34553
|
-
# [
|
34553
|
+
# This parameter is not supported when using [CreateFleet][1],
|
34554
|
+
# [CreateImage][2], [DescribeImages][3], [RequestSpotFleet][4],
|
34555
|
+
# [RequestSpotInstances][5], and [RunInstances][6].
|
34554
34556
|
#
|
34555
34557
|
#
|
34556
34558
|
#
|
34557
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34558
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34559
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34559
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html
|
34560
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html
|
34561
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html
|
34562
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html
|
34563
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html
|
34564
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
|
34560
34565
|
# @return [String]
|
34561
34566
|
#
|
34562
34567
|
# @!attribute [rw] encrypted
|
@@ -34653,14 +34658,18 @@ module Aws::EC2
|
|
34653
34658
|
# but not both. If neither is specified, Amazon EC2 automatically
|
34654
34659
|
# selects an Availability Zone within the Region.
|
34655
34660
|
#
|
34656
|
-
# This parameter is not supported when using [
|
34657
|
-
# [
|
34661
|
+
# This parameter is not supported when using [CreateFleet][1],
|
34662
|
+
# [CreateImage][2], [DescribeImages][3], [RequestSpotFleet][4],
|
34663
|
+
# [RequestSpotInstances][5], and [RunInstances][6].
|
34658
34664
|
#
|
34659
34665
|
#
|
34660
34666
|
#
|
34661
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34662
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34663
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34667
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html
|
34668
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html
|
34669
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html
|
34670
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html
|
34671
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html
|
34672
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
|
34664
34673
|
# @return [String]
|
34665
34674
|
#
|
34666
34675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsBlockDevice AWS API Documentation
|
@@ -67489,12 +67498,12 @@ module Aws::EC2
|
|
67489
67498
|
# @return [String]
|
67490
67499
|
#
|
67491
67500
|
# @!attribute [rw] instance_type
|
67492
|
-
# The instance type. For more information, see [Amazon EC2
|
67493
|
-
#
|
67501
|
+
# The instance type. For more information, see [Amazon EC2 Instance
|
67502
|
+
# Types Guide][1].
|
67494
67503
|
#
|
67495
67504
|
#
|
67496
67505
|
#
|
67497
|
-
# [1]: https://docs.aws.amazon.com/
|
67506
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-types.html
|
67498
67507
|
# @return [String]
|
67499
67508
|
#
|
67500
67509
|
# @!attribute [rw] ipv_6_address_count
|
@@ -67532,8 +67541,8 @@ module Aws::EC2
|
|
67532
67541
|
# @return [String]
|
67533
67542
|
#
|
67534
67543
|
# @!attribute [rw] key_name
|
67535
|
-
# The name of the key pair.
|
67536
|
-
#
|
67544
|
+
# The name of the key pair. For more information, see [Create a key
|
67545
|
+
# pair for your EC2 instance][1].
|
67537
67546
|
#
|
67538
67547
|
# If you do not specify a key pair, you can't connect to the instance
|
67539
67548
|
# unless you choose an AMI that is configured to allow users another
|
@@ -67541,8 +67550,7 @@ module Aws::EC2
|
|
67541
67550
|
#
|
67542
67551
|
#
|
67543
67552
|
#
|
67544
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/
|
67545
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
|
67553
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html
|
67546
67554
|
# @return [String]
|
67547
67555
|
#
|
67548
67556
|
# @!attribute [rw] max_count
|
@@ -67599,16 +67607,11 @@ module Aws::EC2
|
|
67599
67607
|
# @return [String]
|
67600
67608
|
#
|
67601
67609
|
# @!attribute [rw] security_group_ids
|
67602
|
-
# The IDs of the security groups.
|
67603
|
-
# using [CreateSecurityGroup][1].
|
67610
|
+
# The IDs of the security groups.
|
67604
67611
|
#
|
67605
67612
|
# If you specify a network interface, you must specify any security
|
67606
67613
|
# groups as part of the network interface instead of using this
|
67607
67614
|
# parameter.
|
67608
|
-
#
|
67609
|
-
#
|
67610
|
-
#
|
67611
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
|
67612
67615
|
# @return [Array<String>]
|
67613
67616
|
#
|
67614
67617
|
# @!attribute [rw] security_groups
|
@@ -67632,11 +67635,11 @@ module Aws::EC2
|
|
67632
67635
|
# The user data to make available to the instance. User data must be
|
67633
67636
|
# base64-encoded. Depending on the tool or SDK that you're using, the
|
67634
67637
|
# base64-encoding might be performed for you. For more information,
|
67635
|
-
# see [
|
67638
|
+
# see [Run commands at launch using instance user data][1].
|
67636
67639
|
#
|
67637
67640
|
#
|
67638
67641
|
#
|
67639
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
67642
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
67640
67643
|
# @return [String]
|
67641
67644
|
#
|
67642
67645
|
# @!attribute [rw] elastic_gpu_specification
|
@@ -67746,25 +67749,24 @@ module Aws::EC2
|
|
67746
67749
|
#
|
67747
67750
|
# @!attribute [rw] metadata_options
|
67748
67751
|
# The metadata options for the instance. For more information, see
|
67749
|
-
# [Instance
|
67752
|
+
# [Configure the Instance Metadata Service options][1].
|
67750
67753
|
#
|
67751
67754
|
#
|
67752
67755
|
#
|
67753
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
67756
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html
|
67754
67757
|
# @return [Types::InstanceMetadataOptionsRequest]
|
67755
67758
|
#
|
67756
67759
|
# @!attribute [rw] enclave_options
|
67757
67760
|
# Indicates whether the instance is enabled for Amazon Web Services
|
67758
|
-
# Nitro Enclaves. For more information, see [
|
67759
|
-
#
|
67760
|
-
# Enclaves User Guide*.
|
67761
|
+
# Nitro Enclaves. For more information, see [Amazon Web Services Nitro
|
67762
|
+
# Enclaves User Guide][1].
|
67761
67763
|
#
|
67762
67764
|
# You can't enable Amazon Web Services Nitro Enclaves and hibernation
|
67763
67765
|
# on the same instance.
|
67764
67766
|
#
|
67765
67767
|
#
|
67766
67768
|
#
|
67767
|
-
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
67769
|
+
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
67768
67770
|
# @return [Types::EnclaveOptionsRequest]
|
67769
67771
|
#
|
67770
67772
|
# @!attribute [rw] private_dns_name_options
|
@@ -67779,11 +67781,12 @@ module Aws::EC2
|
|
67779
67781
|
#
|
67780
67782
|
# @!attribute [rw] disable_api_stop
|
67781
67783
|
# Indicates whether an instance is enabled for stop protection. For
|
67782
|
-
# more information, see [
|
67784
|
+
# more information, see [Enable stop protection for your EC2
|
67785
|
+
# instances][1].
|
67783
67786
|
#
|
67784
67787
|
#
|
67785
67788
|
#
|
67786
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
67789
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html
|
67787
67790
|
# @return [Boolean]
|
67788
67791
|
#
|
67789
67792
|
# @!attribute [rw] enable_primary_ipv_6
|
@@ -67857,7 +67860,8 @@ module Aws::EC2
|
|
67857
67860
|
# randomly generated token is used for the request to ensure
|
67858
67861
|
# idempotency.
|
67859
67862
|
#
|
67860
|
-
# For more information, see [Ensuring
|
67863
|
+
# For more information, see [Ensuring idempotency in Amazon EC2 API
|
67864
|
+
# requests][1].
|
67861
67865
|
#
|
67862
67866
|
# Constraints: Maximum 64 ASCII characters
|
67863
67867
|
#
|
@@ -67866,7 +67870,7 @@ module Aws::EC2
|
|
67866
67870
|
#
|
67867
67871
|
#
|
67868
67872
|
#
|
67869
|
-
# [1]: https://docs.aws.amazon.com/
|
67873
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
67870
67874
|
# @return [String]
|
67871
67875
|
#
|
67872
67876
|
# @!attribute [rw] additional_info
|
@@ -72016,8 +72020,8 @@ module Aws::EC2
|
|
72016
72020
|
# @!attribute [rw] hibernate
|
72017
72021
|
# Hibernates the instance if the instance was enabled for hibernation
|
72018
72022
|
# at launch. If the instance cannot hibernate successfully, a normal
|
72019
|
-
# shutdown occurs. For more information, see [Hibernate your
|
72020
|
-
# instance][1] in the *Amazon EC2 User Guide*.
|
72023
|
+
# shutdown occurs. For more information, see [Hibernate your Amazon
|
72024
|
+
# EC2 instance][1] in the *Amazon EC2 User Guide*.
|
72021
72025
|
#
|
72022
72026
|
# Default: `false`
|
72023
72027
|
#
|
@@ -72026,6 +72030,17 @@ module Aws::EC2
|
|
72026
72030
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
|
72027
72031
|
# @return [Boolean]
|
72028
72032
|
#
|
72033
|
+
# @!attribute [rw] skip_os_shutdown
|
72034
|
+
# Specifies whether to bypass the graceful OS shutdown process when
|
72035
|
+
# the instance is stopped.
|
72036
|
+
#
|
72037
|
+
# Bypassing the graceful OS shutdown might result in data loss or
|
72038
|
+
# corruption (for example, memory contents not flushed to disk or loss
|
72039
|
+
# of in-flight IOs) or skipped shutdown scripts.
|
72040
|
+
#
|
72041
|
+
# Default: `false`
|
72042
|
+
# @return [Boolean]
|
72043
|
+
#
|
72029
72044
|
# @!attribute [rw] dry_run
|
72030
72045
|
# Checks whether you have the required permissions for the operation,
|
72031
72046
|
# without actually making the request, and provides an error response.
|
@@ -72057,6 +72072,7 @@ module Aws::EC2
|
|
72057
72072
|
class StopInstancesRequest < Struct.new(
|
72058
72073
|
:instance_ids,
|
72059
72074
|
:hibernate,
|
72075
|
+
:skip_os_shutdown,
|
72060
72076
|
:dry_run,
|
72061
72077
|
:force)
|
72062
72078
|
SENSITIVE = []
|
@@ -72999,6 +73015,13 @@ module Aws::EC2
|
|
72999
73015
|
# request into smaller batches.
|
73000
73016
|
# @return [Array<String>]
|
73001
73017
|
#
|
73018
|
+
# @!attribute [rw] skip_os_shutdown
|
73019
|
+
# Specifies whether to bypass the graceful OS shutdown process when
|
73020
|
+
# the instance is terminated.
|
73021
|
+
#
|
73022
|
+
# Default: `false`
|
73023
|
+
# @return [Boolean]
|
73024
|
+
#
|
73002
73025
|
# @!attribute [rw] dry_run
|
73003
73026
|
# Checks whether you have the required permissions for the operation,
|
73004
73027
|
# without actually making the request, and provides an error response.
|
@@ -73010,6 +73033,7 @@ module Aws::EC2
|
|
73010
73033
|
#
|
73011
73034
|
class TerminateInstancesRequest < Struct.new(
|
73012
73035
|
:instance_ids,
|
73036
|
+
:skip_os_shutdown,
|
73013
73037
|
:dry_run)
|
73014
73038
|
SENSITIVE = []
|
73015
73039
|
include Aws::Structure
|