lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.80.0 vs lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.81.0
- old
+ new
@@ -129,10 +129,11 @@
# private_ip_address: "String",
# },
# ],
# secondary_private_ip_address_count: 1,
# subnet_id: "String",
+ # interface_type: "String",
# },
# ],
# private_ip_address: "String",
# elastic_gpu_specification: [
# {
@@ -198,24 +199,23 @@
# ID and an encryption value. This is because only blank volumes can be
# encrypted on creation. If a snapshot is the basis for a volume, it is
# not blank and its encryption status is used for the volume encryption
# status.
# @option options [String] :image_id
- # The ID of the AMI, which you can get by calling DescribeImages. An AMI
- # is required to launch an instance and must be specified here or in a
- # launch template.
+ # The ID of the AMI. An AMI is required to launch an instance and must
+ # be specified here or in a launch template.
# @option options [String] :instance_type
# The instance type. For more information, see [Instance Types][1] in
# the *Amazon Elastic Compute Cloud User Guide*.
#
# Default: `m1.small`
#
#
#
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
# @option options [Integer] :ipv_6_address_count
- # \[EC2-VPC\] A number of IPv6 addresses to associate with the primary
+ # \[EC2-VPC\] The number of IPv6 addresses to associate with the primary
# network interface. Amazon EC2 chooses the IPv6 addresses from the
# range of your subnet. You cannot specify this option and the option to
# assign specific IPv6 addresses in the same request. You can specify
# this option if you've specified a minimum number of instances to
# launch.
@@ -274,15 +274,18 @@
#
#
#
# [1]: http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2
# @option options [Types::RunInstancesMonitoringEnabled] :monitoring
- # The monitoring for the instance.
+ # Specifies whether detailed monitoring is enabled for the instance.
# @option options [Types::Placement] :placement
# The placement for the instance.
# @option options [String] :ramdisk_id
- # The ID of the RAM disk.
+ # The ID of the RAM disk to select. Some kernels require additional
+ # drivers at launch. Check the kernel requirements for information about
+ # whether you need to specify a RAM disk. To find kernel requirements,
+ # go to the AWS Resource Center and search for the kernel ID.
#
# We recommend that you use PV-GRUB instead of kernels and RAM disks.
# For more information, see [ PV-GRUB][1] in the *Amazon Elastic Compute
# Cloud User Guide*.
#
@@ -313,11 +316,12 @@
# @option options [String] :user_data
# The user data to make available to the instance. For more information,
# see [Running Commands on Your Linux Instance at Launch][1] (Linux) and
# [Adding User Data][2] (Windows). If you are using a command line tool,
# base64-encoding is performed for you, and you can load the text from a
- # file. Otherwise, you must provide base64-encoded text.
+ # file. Otherwise, you must provide base64-encoded text. User data is
+ # limited to 16 KB.
#
#
#
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data
@@ -363,14 +367,11 @@
# shutdown from the instance (using the operating system command for
# system shutdown).
#
# Default: `stop`
# @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
- # The network interfaces.
- #
- # You cannot specify this option and the network interfaces option in
- # the same request.
+ # The network interfaces to associate with the instance.
# @option options [String] :private_ip_address
# \[EC2-VPC\] The primary IPv4 address. You must specify a value from
# the IPv4 address range of the subnet.
#
# Only one private IP address can be designated as primary. You can't
@@ -380,13 +381,24 @@
# more than one instance in the request.
#
# You cannot specify this option and the network interfaces option in
# the same request.
# @option options [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
- # An elastic GPU to associate with the instance.
+ # An elastic GPU to associate with the instance. An Elastic GPU is a GPU
+ # resource that you can attach to your Windows instance to accelerate
+ # the graphics performance of your applications. For more information,
+ # see [ Amazon EC2 Elastic GPUs][1] in the *Amazon Elastic Compute Cloud
+ # User Guide*.
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html
# @option options [Array<Types::ElasticInferenceAccelerator>] :elastic_inference_accelerators
- # An elastic inference accelerator.
+ # An elastic inference accelerator to associate with the instance.
+ # Elastic inference accelerators are a resource you can attach to your
+ # Amazon EC2 instances to accelerate your Deep Learning (DL) inference
+ # workloads.
# @option options [Array<Types::TagSpecification>] :tag_specifications
# The tags to apply to the resources during launch. You can only tag
# instances and volumes on launch. The specified tags are applied to all
# instances or volumes that are created during launch. To tag a resource
# after it has been created, see CreateTags.
@@ -400,13 +412,13 @@
#
# For RunInstances, persistent Spot Instance requests are only supported
# when **InstanceInterruptionBehavior** is set to either `hibernate` or
# `stop`.
# @option options [Types::CreditSpecificationRequest] :credit_specification
- # The credit option for CPU usage of the instance. Valid values are
- # `standard` and `unlimited`. To change this attribute after launch, use
- # ModifyInstanceCreditSpecification. For more information, see
+ # The credit option for CPU usage of the T2 or T3 instance. Valid values
+ # are `standard` and `unlimited`. To change this attribute after launch,
+ # use ModifyInstanceCreditSpecification. For more information, see
# [Burstable Performance Instances][1] in the *Amazon Elastic Compute
# Cloud User Guide*.
#
# Default: `standard` (T2 instances) or `unlimited` (T3 instances)
#
@@ -540,10 +552,11 @@
# primary: false,
# private_ip_address: "String",
# },
# ],
# secondary_private_ip_address_count: 1,
+ # interface_type: "efa", # accepts efa
# subnet_id: "String", # required
# })
# @param [Hash] options ({})
# @option options [String] :description
# A description for the network interface.
@@ -585,10 +598,18 @@
# Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI
+ # @option options [String] :interface_type
+ # Indicates whether the network interface is an Elastic Fabric Adapter
+ # (EFA). Only specify this parameter to create an EFA. For more
+ # information, see [Elastic Fabric
+ # Adapter](AWSEC2/latest/UserGuide/efa.html) in the *Amazon Elastic
+ # Compute Cloud User Guide*.
+ #
+ # If you are not creating an EFA ENI, omit this parameter.
# @option options [required, String] :subnet_id
# The ID of the subnet to associate with the network interface.
# @return [NetworkInterface]
def create_network_interface(options = {})
resp = @client.create_network_interface(options)
@@ -803,13 +824,13 @@
# The IDs of the resources, separated by spaces.
#
# Constraints: Up to 1000 resource IDs. We recommend breaking up this
# request into smaller batches.
# @option options [required, Array<Types::Tag>] :tags
- # One or more tags. The `value` parameter is required, but if you don't
- # want the tag to have a value, specify the parameter with no value, and
- # we set the value to an empty string.
+ # The tags. The `value` parameter is required, but if you don't want
+ # the tag to have a value, specify the parameter with no value, and we
+ # set the value to an empty string.
# @return [EmptyStructure]
def create_tags(options = {})
resp = @client.create_tags(options)
resp.data
end
@@ -1116,11 +1137,11 @@
# The architecture of the AMI.
#
# Default: For Amazon EBS-backed AMIs, `i386`. For instance store-backed
# AMIs, the architecture specified in the manifest file.
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
- # One or more block device mapping entries.
+ # The block device mapping entries.
# @option options [String] :description
# A description for your AMI.
# @option options [Boolean] :dry_run
# Checks whether you have the required permissions for the action,
# without actually making the request, and provides an error response.
@@ -1346,11 +1367,11 @@
# @option options [Array<String>] :executable_users
# Scopes the images by users with explicit launch permissions. Specify
# an AWS account ID, `self` (the sender of the request), or `all`
# (public AMIs).
# @option options [Array<Types::Filter>] :filters
- # One or more filters.
+ # The filters.
#
# * `architecture` - The image architecture (`i386` \| `x86_64`).
#
# * `block-device-mapping.delete-on-termination` - A Boolean value that
# indicates whether the Amazon EBS volume is deleted on instance
@@ -1435,11 +1456,11 @@
# regardless of the tag value.
#
# * `virtualization-type` - The virtualization type (`paravirtual` \|
# `hvm`).
# @option options [Array<String>] :image_ids
- # One or more image IDs.
+ # The image IDs.
#
# Default: Describes all images available to you.
# @option options [Array<String>] :owners
# Filters the images by the owner. Specify an AWS account ID, `self`
# (owner is the sender of the request), or an AWS owner alias (valid
@@ -1681,12 +1702,12 @@
# instance.
#
# * `placement-partition-number` - The partition in which the instance
# is located.
#
- # * `platform` - The platform. Use `windows` if you have Windows
- # instances; otherwise, leave blank.
+ # * `platform` - The platform. To list only Windows instances, use
+ # `windows`.
#
# * `private-dns-name` - The private IPv4 DNS name of the instance.
#
# * `private-ip-address` - The private IPv4 address of the instance.
#
@@ -2120,11 +2141,11 @@
#
# * `requester-managed` - Indicates whether the network interface is
# being managed by an AWS service (for example, AWS Management
# Console, Auto Scaling, and so on).
#
- # * `source-desk-check` - Indicates whether the network interface
+ # * `source-dest-check` - Indicates whether the network interface
# performs source/destination checking. A value of `true` means
# checking is enabled, and `false` means checking is disabled. The
# value must be `false` for the network interface to perform network
# address translation (NAT) in your VPC.
#
@@ -2528,10 +2549,13 @@
# @option options [Array<Types::Filter>] :filters
# The filters.
#
# * `description` - A description of the snapshot.
#
+ # * `encrypted` - Indicates whether the snapshot is encrypted (`true` \|
+ # `false`)
+ #
# * `owner-alias` - Value from an Amazon-maintained list (`amazon` \|
# `self` \| `all` \| `aws-marketplace` \| `microsoft`) of snapshot
# owners. Not to be confused with the user-configured AWS account
# alias, which is set from the IAM console.
#
@@ -2733,10 +2757,11 @@
# * `availability-zone` - The Availability Zone in which the volume was
# created.
#
# * `create-time` - The time stamp when the volume was created.
#
- # * `encrypted` - The encryption status of the volume.
+ # * `encrypted` - Indicates whether the volume is encrypted (`true` \|
+ # `false`)
#
# * `size` - The size of the volume, in GiB.
#
# * `snapshot-id` - The snapshot from which the volume was created.
#