aws-sdk-ec2 1.306.0 → 1.309.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a05de3da3b87f32d7f4d0559418c57bf203dc9b02a8cc54b447d9139f74a8f6
4
- data.tar.gz: 0ae2278de55efe1b0ca7144a638ec229db8d3903f64510faead445ad7066b71f
3
+ metadata.gz: 2e285a4ec10318bc908bea452a07179d6083076c04c1e9f98ccc560bceb99889
4
+ data.tar.gz: 5b4b2f2a824da32e96c119e1e8e8b9d9a82aed3003f35e8cb309813e17cea6b2
5
5
  SHA512:
6
- metadata.gz: e95459f6e8a8ba7c629e463977ef7f9e6a1a38740be190faa1ca6581e82f33c7bfb6ede8142da1625ff9a26cb3f65d39c60e95362088cbd2c5d610a074c96c0a
7
- data.tar.gz: 9eaec01e181f0ef74b90b037d54b55d340a974b0776f26ce88b1c566a4ab83fe107f8acf177499e20067a85964624aa88051255f03863d5ffbd77759c90835bb
6
+ metadata.gz: c99bb361a69770847fda20d0f8dfd8be23887472077901ad63e4ef4952a0e1f6a72ad487cc81b82f2f1400ecc026a46d197f62d51433090beb7c560a83a3fce5
7
+ data.tar.gz: ea4719f3d4e8a0343b54aed166361d3015e9cfb1a3602300e4cf3d3794593a01c4b519be4b4f535304c1de3e82d82d080c2243f8f201f0729efea90894fb1c9f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.309.0 (2022-04-28)
5
+ ------------------
6
+
7
+ * Feature - This release adds support to query the public key and creation date of EC2 Key Pairs. Additionally, the format (pem or ppk) of a key pair can be specified when creating a new key pair.
8
+
9
+ 1.308.0 (2022-04-22)
10
+ ------------------
11
+
12
+ * Feature - Adds support for waiters that automatically poll for a deleted NAT Gateway until it reaches the deleted state.
13
+
14
+ 1.307.0 (2022-04-14)
15
+ ------------------
16
+
17
+ * Feature - Documentation updates for Amazon EC2.
18
+
4
19
  1.306.0 (2022-04-12)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.306.0
1
+ 1.309.0
@@ -4976,32 +4976,18 @@ module Aws::EC2
4976
4976
  # For devices that use Border Gateway Protocol (BGP), you can also
4977
4977
  # provide the device's BGP Autonomous System Number (ASN). You can use
4978
4978
  # an existing ASN assigned to your network. If you don't have an ASN
4979
- # already, you can use a private ASN (in the 64512 - 65534 range).
4980
- #
4981
- # <note markdown="1"> Amazon EC2 supports all 4-byte ASN numbers in the range of 1 -
4982
- # 2147483647, with the exception of the following:
4983
- #
4984
- # * 7224 - reserved in the `us-east-1` Region
4985
- #
4986
- # * 9059 - reserved in the `eu-west-1` Region
4987
- #
4988
- # * 17943 - reserved in the `ap-southeast-1` Region
4989
- #
4990
- # * 10124 - reserved in the `ap-northeast-1` Region
4991
- #
4992
- # </note>
4993
- #
4994
- # For more information, see [Amazon Web Services Site-to-Site VPN][1] in
4979
+ # already, you can use a private ASN. For more information, see
4980
+ # [Customer gateway options for your Site-to-Site VPN connection][1] in
4995
4981
  # the *Amazon Web Services Site-to-Site VPN User Guide*.
4996
4982
  #
4997
4983
  # To create more than one customer gateway with the same VPN type, IP
4998
4984
  # address, and BGP ASN, specify a unique device name for each customer
4999
- # gateway. Identical requests return information about the existing
5000
- # customer gateway and do not create new customer gateways.
4985
+ # gateway. An identical request returns information about the existing
4986
+ # customer gateway; it doesn't create a new customer gateway.
5001
4987
  #
5002
4988
  #
5003
4989
  #
5004
- # [1]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
4990
+ # [1]: https://docs.aws.amazon.com/vpn/latest/s2svpn/cgw-options.html
5005
4991
  #
5006
4992
  # @option params [required, Integer] :bgp_asn
5007
4993
  # For devices that support BGP, the customer gateway's BGP ASN.
@@ -6121,12 +6107,17 @@ module Aws::EC2
6121
6107
  # Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance
6122
6108
  # that is either running or stopped.
6123
6109
  #
6124
- # By default, Amazon EC2 shuts down and reboots the instance before
6125
- # creating the AMI to ensure that everything on the instance is stopped
6126
- # and in a consistent state during the creation process. If you're
6127
- # confident that your instance is in a consistent state appropriate for
6128
- # AMI creation, use the **NoReboot** parameter to prevent Amazon EC2
6129
- # from shutting down and rebooting the instance.
6110
+ # By default, when Amazon EC2 creates the new AMI, it reboots the
6111
+ # instance so that it can take snapshots of the attached volumes while
6112
+ # data is at rest, in order to ensure a consistent state. You can set
6113
+ # the `NoReboot` parameter to `true` in the API request, or use the
6114
+ # `--no-reboot` option in the CLI to prevent Amazon EC2 from shutting
6115
+ # down and rebooting the instance.
6116
+ #
6117
+ # If you choose to bypass the shutdown and reboot process by setting the
6118
+ # `NoReboot` parameter to `true` in the API request, or by using the
6119
+ # `--no-reboot` option in the CLI, we can't guarantee the file system
6120
+ # integrity of the created image.
6130
6121
  #
6131
6122
  # If you customized your instance with instance store volumes or Amazon
6132
6123
  # EBS volumes in addition to the root device volume, the new AMI
@@ -6166,13 +6157,19 @@ module Aws::EC2
6166
6157
  # single quotes ('), at-signs (@), or underscores(\_)
6167
6158
  #
6168
6159
  # @option params [Boolean] :no_reboot
6169
- # By default, Amazon EC2 attempts to shut down and reboot the instance
6170
- # before creating the image. If the `No Reboot` option is set, Amazon
6171
- # EC2 doesn't shut down the instance before creating the image. Without
6172
- # a reboot, the AMI will be crash consistent (all the volumes are
6173
- # snapshotted at the same time), but not application consistent (all the
6174
- # operating system buffers are not flushed to disk before the snapshots
6175
- # are created).
6160
+ # By default, when Amazon EC2 creates the new AMI, it reboots the
6161
+ # instance so that it can take snapshots of the attached volumes while
6162
+ # data is at rest, in order to ensure a consistent state. You can set
6163
+ # the `NoReboot` parameter to `true` in the API request, or use the
6164
+ # `--no-reboot` option in the CLI to prevent Amazon EC2 from shutting
6165
+ # down and rebooting the instance.
6166
+ #
6167
+ # If you choose to bypass the shutdown and reboot process by setting the
6168
+ # `NoReboot` parameter to `true` in the API request, or by using the
6169
+ # `--no-reboot` option in the CLI, we can't guarantee the file system
6170
+ # integrity of the created image.
6171
+ #
6172
+ # Default: `false` (follow standard reboot process)
6176
6173
  #
6177
6174
  # @option params [Array<Types::TagSpecification>] :tag_specifications
6178
6175
  # The tags to apply to the AMI and snapshots on creation. You can tag
@@ -6578,7 +6575,7 @@ module Aws::EC2
6578
6575
  req.send_request(options)
6579
6576
  end
6580
6577
 
6581
- # Create an IPAM. Amazon VCP IP Address Manager (IPAM) is a VPC feature
6578
+ # Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature
6582
6579
  # that you can use to automate your IP address management workflows
6583
6580
  # including assigning, tracking, troubleshooting, and auditing IP
6584
6581
  # addresses across Amazon Web Services Regions and accounts throughout
@@ -6962,11 +6959,13 @@ module Aws::EC2
6962
6959
  req.send_request(options)
6963
6960
  end
6964
6961
 
6965
- # Creates an ED25519 or 2048-bit RSA key pair with the specified name.
6966
- # Amazon EC2 stores the public key and displays the private key for you
6967
- # to save to a file. The private key is returned as an unencrypted PEM
6968
- # encoded PKCS#1 private key. If a key with the specified name already
6969
- # exists, Amazon EC2 returns an error.
6962
+ # Creates an ED25519 or 2048-bit RSA key pair with the specified name
6963
+ # and in the specified PEM or PPK format. Amazon EC2 stores the public
6964
+ # key and displays the private key for you to save to a file. The
6965
+ # private key is returned as an unencrypted PEM encoded PKCS#1 private
6966
+ # key or an unencrypted PPK formatted private key for use with PuTTY. If
6967
+ # a key with the specified name already exists, Amazon EC2 returns an
6968
+ # error.
6970
6969
  #
6971
6970
  # The key pair returned to you is available only in the Amazon Web
6972
6971
  # Services Region in which you create it. If you prefer, you can create
@@ -6995,13 +6994,18 @@ module Aws::EC2
6995
6994
  #
6996
6995
  # @option params [String] :key_type
6997
6996
  # The type of key pair. Note that ED25519 keys are not supported for
6998
- # Windows instances, EC2 Instance Connect, and EC2 Serial Console.
6997
+ # Windows instances.
6999
6998
  #
7000
6999
  # Default: `rsa`
7001
7000
  #
7002
7001
  # @option params [Array<Types::TagSpecification>] :tag_specifications
7003
7002
  # The tags to apply to the new key pair.
7004
7003
  #
7004
+ # @option params [String] :key_format
7005
+ # The format of the key pair.
7006
+ #
7007
+ # Default: `pem`
7008
+ #
7005
7009
  # @return [Types::KeyPair] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7006
7010
  #
7007
7011
  # * {Types::KeyPair#key_fingerprint #key_fingerprint} => String
@@ -7036,6 +7040,7 @@ module Aws::EC2
7036
7040
  # ],
7037
7041
  # },
7038
7042
  # ],
7043
+ # key_format: "pem", # accepts pem, ppk
7039
7044
  # })
7040
7045
  #
7041
7046
  # @example Response structure
@@ -7057,16 +7062,24 @@ module Aws::EC2
7057
7062
  req.send_request(options)
7058
7063
  end
7059
7064
 
7060
- # Creates a launch template. A launch template contains the parameters
7061
- # to launch an instance. When you launch an instance using RunInstances,
7062
- # you can specify a launch template instead of providing the launch
7063
- # parameters in the request. For more information, see [Launching an
7064
- # instance from a launch template][1] in the *Amazon Elastic Compute
7065
- # Cloud User Guide*.
7065
+ # Creates a launch template.
7066
+ #
7067
+ # A launch template contains the parameters to launch an instance. When
7068
+ # you launch an instance using RunInstances, you can specify a launch
7069
+ # template instead of providing the launch parameters in the request.
7070
+ # For more information, see [Launching an instance from a launch
7071
+ # template][1] in the *Amazon Elastic Compute Cloud User Guide*.
7072
+ #
7073
+ # If you want to clone an existing launch template as the basis for
7074
+ # creating a new launch template, you can use the Amazon EC2 console.
7075
+ # The API, SDKs, and CLI do not support cloning a template. For more
7076
+ # information, see [Create a launch template from an existing launch
7077
+ # template][2] in the *Amazon Elastic Compute Cloud User Guide*.
7066
7078
  #
7067
7079
  #
7068
7080
  #
7069
7081
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html
7082
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template-from-existing-launch-template
7070
7083
  #
7071
7084
  # @option params [Boolean] :dry_run
7072
7085
  # Checks whether you have the required permissions for the action,
@@ -12398,29 +12411,12 @@ module Aws::EC2
12398
12411
  # you to create a private connection between your VPC and the service.
12399
12412
  # The service may be provided by Amazon Web Services, an Amazon Web
12400
12413
  # Services Marketplace Partner, or another Amazon Web Services account.
12401
- # For more information, see [VPC Endpoints][1] in the *Amazon Virtual
12402
- # Private Cloud User Guide*.
12403
- #
12404
- # A `gateway` endpoint serves as a target for a route in your route
12405
- # table for traffic destined for the Amazon Web Service. You can specify
12406
- # an endpoint policy to attach to the endpoint, which will control
12407
- # access to the service from your VPC. You can also specify the VPC
12408
- # route tables that use the endpoint.
12409
- #
12410
- # An `interface` endpoint is a network interface in your subnet that
12411
- # serves as an endpoint for communicating with the specified service.
12412
- # You can specify the subnets in which to create an endpoint, and the
12413
- # security groups to associate with the endpoint network interface.
12414
+ # For more information, see the [Amazon Web Services PrivateLink
12415
+ # Guide][1].
12414
12416
  #
12415
- # A `GatewayLoadBalancer` endpoint is a network interface in your subnet
12416
- # that serves an endpoint for communicating with a Gateway Load Balancer
12417
- # that you've configured as a VPC endpoint service.
12418
12417
  #
12419
- # Use DescribeVpcEndpointServices to get a list of supported services.
12420
12418
  #
12421
- #
12422
- #
12423
- # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html
12419
+ # [1]: https://docs.aws.amazon.com/vpc/latest/privatelink/
12424
12420
  #
12425
12421
  # @option params [Boolean] :dry_run
12426
12422
  # Checks whether you have the required permissions for the action,
@@ -12635,12 +12631,11 @@ module Aws::EC2
12635
12631
  req.send_request(options)
12636
12632
  end
12637
12633
 
12638
- # Creates a VPC endpoint service configuration to which service
12639
- # consumers (Amazon Web Services accounts, IAM users, and IAM roles) can
12640
- # connect.
12634
+ # Creates a VPC endpoint service to which service consumers (Amazon Web
12635
+ # Services accounts, IAM users, and IAM roles) can connect.
12641
12636
  #
12642
- # To create an endpoint service configuration, you must first create one
12643
- # of the following for your service:
12637
+ # Before you create an endpoint service, you must create one of the
12638
+ # following for your service:
12644
12639
  #
12645
12640
  # * A [Network Load Balancer][1]. Service consumers connect to your
12646
12641
  # service using an interface endpoint.
@@ -12648,20 +12643,17 @@ module Aws::EC2
12648
12643
  # * A [Gateway Load Balancer][2]. Service consumers connect to your
12649
12644
  # service using a Gateway Load Balancer endpoint.
12650
12645
  #
12651
- # For more information, see [VPC Endpoint Services][3] in the *Amazon
12652
- # Virtual Private Cloud User Guide*.
12653
- #
12654
12646
  # If you set the private DNS name, you must prove that you own the
12655
- # private DNS domain name. For more information, see [VPC Endpoint
12656
- # Service Private DNS Name Verification][4] in the *Amazon Virtual
12657
- # Private Cloud User Guide*.
12647
+ # private DNS domain name.
12648
+ #
12649
+ # For more information, see the [Amazon Web Services PrivateLink
12650
+ # Guide][3].
12658
12651
  #
12659
12652
  #
12660
12653
  #
12661
- # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html
12662
- # [2]: https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/introduction.html
12663
- # [3]: https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html
12664
- # [4]: https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html
12654
+ # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/
12655
+ # [2]: https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/
12656
+ # [3]: https://docs.aws.amazon.com/vpc/latest/privatelink/
12665
12657
  #
12666
12658
  # @option params [Boolean] :dry_run
12667
12659
  # Checks whether you have the required permissions for the action,
@@ -12671,8 +12663,7 @@ module Aws::EC2
12671
12663
  #
12672
12664
  # @option params [Boolean] :acceptance_required
12673
12665
  # Indicates whether requests from service consumers to create an
12674
- # endpoint to your service must be accepted. To accept a request, use
12675
- # AcceptVpcEndpointConnections.
12666
+ # endpoint to your service must be accepted manually.
12676
12667
  #
12677
12668
  # @option params [String] :private_dns_name
12678
12669
  # (Interface endpoint configuration) The private DNS name to assign to
@@ -13703,22 +13694,10 @@ module Aws::EC2
13703
13694
  # Delete an IPAM. Deleting an IPAM removes all monitored data associated
13704
13695
  # with the IPAM including the historical data for CIDRs.
13705
13696
  #
13706
- # <note markdown="1"> You cannot delete an IPAM if there are CIDRs provisioned to pools or
13707
- # if there are allocations in the pools within the IPAM. To deprovision
13708
- # pool CIDRs, see [DeprovisionIpamPoolCidr][1]. To release allocations,
13709
- # see [ReleaseIpamPoolAllocation][2].
13710
- #
13711
- # </note>
13712
- #
13713
13697
  # For more information, see [Delete an
13714
13698
  # IPAM](/vpc/latest/ipam/delete-ipam.html) in the *Amazon VPC IPAM User
13715
13699
  # Guide*.
13716
13700
  #
13717
- #
13718
- #
13719
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeprovisionIpamPoolCidr.html
13720
- # [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html
13721
- #
13722
13701
  # @option params [Boolean] :dry_run
13723
13702
  # A check for whether you have the required permissions for the action
13724
13703
  # without actually making the request and provides an error response. If
@@ -20271,6 +20250,11 @@ module Aws::EC2
20271
20250
  # * `block-device-mapping.encrypted` - A Boolean that indicates whether
20272
20251
  # the Amazon EBS volume is encrypted.
20273
20252
  #
20253
+ # * `creation-date` - The time when the image was created, in the ISO
20254
+ # 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for
20255
+ # example, `2021-09-29T11:04:43.305Z`. You can use a wildcard (`*`),
20256
+ # for example, `2021-09-29T*`, which matches an entire day.
20257
+ #
20274
20258
  # * `description` - The description of the image (provided during image
20275
20259
  # creation).
20276
20260
  #
@@ -21692,6 +21676,9 @@ module Aws::EC2
21692
21676
  #
21693
21677
  # * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
21694
21678
  #
21679
+ # * `capacity-reservation-id` - The ID of the Capacity Reservation into
21680
+ # which the instance was launched.
21681
+ #
21695
21682
  # * `client-token` - The idempotency token you provided when you
21696
21683
  # launched the instance.
21697
21684
  #
@@ -22700,6 +22687,11 @@ module Aws::EC2
22700
22687
  # If you have the required permissions, the error response is
22701
22688
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
22702
22689
  #
22690
+ # @option params [Boolean] :include_public_key
22691
+ # If `true`, the public key material is included in the response.
22692
+ #
22693
+ # Default: `false`
22694
+ #
22703
22695
  # @return [Types::DescribeKeyPairsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
22704
22696
  #
22705
22697
  # * {Types::DescribeKeyPairsResult#key_pairs #key_pairs} => Array&lt;Types::KeyPairInfo&gt;
@@ -22737,6 +22729,7 @@ module Aws::EC2
22737
22729
  # key_names: ["KeyPairName"],
22738
22730
  # key_pair_ids: ["KeyPairId"],
22739
22731
  # dry_run: false,
22732
+ # include_public_key: false,
22740
22733
  # })
22741
22734
  #
22742
22735
  # @example Response structure
@@ -22749,6 +22742,8 @@ module Aws::EC2
22749
22742
  # resp.key_pairs[0].tags #=> Array
22750
22743
  # resp.key_pairs[0].tags[0].key #=> String
22751
22744
  # resp.key_pairs[0].tags[0].value #=> String
22745
+ # resp.key_pairs[0].public_key #=> String
22746
+ # resp.key_pairs[0].create_time #=> Time
22752
22747
  #
22753
22748
  #
22754
22749
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -23561,9 +23556,6 @@ module Aws::EC2
23561
23556
  # * `local-gateway-virtual-interface-id` - The ID of the virtual
23562
23557
  # interface.
23563
23558
  #
23564
- # * `local-gateway-virtual-interface-group-id` - The ID of the virtual
23565
- # interface group.
23566
- #
23567
23559
  # * `owner-id` - The ID of the Amazon Web Services account that owns the
23568
23560
  # local gateway virtual interface.
23569
23561
  #
@@ -24010,6 +24002,7 @@ module Aws::EC2
24010
24002
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
24011
24003
  #
24012
24004
  # * nat_gateway_available
24005
+ # * nat_gateway_deleted
24013
24006
  #
24014
24007
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways AWS API Documentation
24015
24008
  #
@@ -28460,7 +28453,7 @@ module Aws::EC2
28460
28453
  #
28461
28454
  #
28462
28455
  #
28463
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html
28456
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
28464
28457
  #
28465
28458
  # @option params [Boolean] :dry_run
28466
28459
  # Checks whether you have the required permissions for the action,
@@ -41101,12 +41094,11 @@ module Aws::EC2
41101
41094
  # destinations.
41102
41095
  #
41103
41096
  # @option params [String] :private_dns_hostname_type_on_launch
41104
- # The type of hostnames to assign to instances in the subnet at launch.
41105
- # For IPv4 only subnets, an instance DNS name must be based on the
41106
- # instance IPv4 address. For IPv6 only subnets, an instance DNS name
41107
- # must be based on the instance ID. For dual-stack subnets, you can
41108
- # specify whether DNS names use the instance IPv4 address or the
41109
- # instance ID.
41097
+ # The type of hostname to assign to instances in the subnet at launch.
41098
+ # For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS
41099
+ # name can be based on the instance IPv4 address (ip-name) or the
41100
+ # instance ID (resource-name). For IPv6 only subnets, an instance DNS
41101
+ # name must be based on the instance ID (resource-name).
41110
41102
  #
41111
41103
  # @option params [Types::AttributeBooleanValue] :enable_resource_name_dns_a_record_on_launch
41112
41104
  # Indicates whether to respond to DNS queries for instance hostnames
@@ -41676,9 +41668,10 @@ module Aws::EC2
41676
41668
  # require detaching and reattaching the volume or stopping and
41677
41669
  # restarting the instance.
41678
41670
  #
41679
- # If you reach the maximum volume modification rate per volume limit,
41680
- # you must wait at least six hours before applying further modifications
41681
- # to the affected EBS volume.
41671
+ # After modifying a volume, you must wait at least six hours and ensure
41672
+ # that the volume is in the `in-use` or `available` state before you can
41673
+ # modify the same volume. This is sometimes referred to as a cooldown
41674
+ # period.
41682
41675
  #
41683
41676
  #
41684
41677
  #
@@ -41947,12 +41940,12 @@ module Aws::EC2
41947
41940
 
41948
41941
  # Modifies attributes of a specified VPC endpoint. The attributes that
41949
41942
  # you can modify depend on the type of VPC endpoint (interface, gateway,
41950
- # or Gateway Load Balancer). For more information, see [VPC
41951
- # Endpoints][1] in the *Amazon Virtual Private Cloud User Guide*.
41943
+ # or Gateway Load Balancer). For more information, see the [Amazon Web
41944
+ # Services PrivateLink Guide][1].
41952
41945
  #
41953
41946
  #
41954
41947
  #
41955
- # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html
41948
+ # [1]: https://docs.aws.amazon.com/vpc/latest/privatelink/
41956
41949
  #
41957
41950
  # @option params [Boolean] :dry_run
41958
41951
  # Checks whether you have the required permissions for the action,
@@ -42087,13 +42080,7 @@ module Aws::EC2
42087
42080
  # VPC endpoint.
42088
42081
  #
42089
42082
  # If you set or modify the private DNS name, you must prove that you own
42090
- # the private DNS domain name. For more information, see [VPC Endpoint
42091
- # Service Private DNS Name Verification][1] in the *Amazon Virtual
42092
- # Private Cloud User Guide*.
42093
- #
42094
- #
42095
- #
42096
- # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html
42083
+ # the private DNS domain name.
42097
42084
  #
42098
42085
  # @option params [Boolean] :dry_run
42099
42086
  # Checks whether you have the required permissions for the action,
@@ -42204,19 +42191,15 @@ module Aws::EC2
42204
42191
  req.send_request(options)
42205
42192
  end
42206
42193
 
42207
- # Modifies the permissions for your [VPC endpoint service][1]. You can
42208
- # add or remove permissions for service consumers (IAM users, IAM roles,
42209
- # and Amazon Web Services accounts) to connect to your endpoint service.
42194
+ # Modifies the permissions for your VPC endpoint service. You can add or
42195
+ # remove permissions for service consumers (IAM users, IAM roles, and
42196
+ # Amazon Web Services accounts) to connect to your endpoint service.
42210
42197
  #
42211
42198
  # If you grant permissions to all principals, the service is public. Any
42212
42199
  # users who know the name of a public service can send a request to
42213
42200
  # attach an endpoint. If the service does not require manual approval,
42214
42201
  # attachments are automatically approved.
42215
42202
  #
42216
- #
42217
- #
42218
- # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html
42219
- #
42220
42203
  # @option params [Boolean] :dry_run
42221
42204
  # Checks whether you have the required permissions for the action,
42222
42205
  # without actually making the request, and provides an error response.
@@ -45007,9 +44990,15 @@ module Aws::EC2
45007
44990
  # For more information, see [Spot Fleet requests][1] in the *Amazon EC2
45008
44991
  # User Guide for Linux Instances*.
45009
44992
  #
44993
+ # We strongly discourage using the RequestSpotFleet API because it is a
44994
+ # legacy API with no planned investment. For options for requesting Spot
44995
+ # Instances, see [Which is the best Spot request method to use?][2] in
44996
+ # the *Amazon EC2 User Guide for Linux Instances*.
44997
+ #
45010
44998
  #
45011
44999
  #
45012
45000
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html
45001
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
45013
45002
  #
45014
45003
  # @option params [Boolean] :dry_run
45015
45004
  # Checks whether you have the required permissions for the action,
@@ -45470,9 +45459,15 @@ module Aws::EC2
45470
45459
  # For more information, see [Spot Instance requests][1] in the *Amazon
45471
45460
  # EC2 User Guide for Linux Instances*.
45472
45461
  #
45462
+ # We strongly discourage using the RequestSpotInstances API because it
45463
+ # is a legacy API with no planned investment. For options for requesting
45464
+ # Spot Instances, see [Which is the best Spot request method to use?][2]
45465
+ # in the *Amazon EC2 User Guide for Linux Instances*.
45466
+ #
45473
45467
  #
45474
45468
  #
45475
45469
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html
45470
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
45476
45471
  #
45477
45472
  # @option params [String] :availability_zone_group
45478
45473
  # The user-specified name for a logical grouping of requests.
@@ -47027,12 +47022,12 @@ module Aws::EC2
47027
47022
  # part of the network interface.
47028
47023
  #
47029
47024
  # @option params [String] :user_data
47030
- # The user data to make available to the instance. For more information,
47031
- # see [Run commands on your Linux instance at launch][1] and [Run
47032
- # commands on your Windows instance at launch][2]. If you are using a
47033
- # command line tool, base64-encoding is performed for you, and you can
47034
- # load the text from a file. Otherwise, you must provide base64-encoded
47035
- # text. User data is limited to 16 KB.
47025
+ # The user data script to make available to the instance. For more
47026
+ # information, see [Run commands on your Linux instance at launch][1]
47027
+ # and [Run commands on your Windows instance at launch][2]. If you are
47028
+ # using a command line tool, base64-encoding is performed for you, and
47029
+ # you can load the text from a file. Otherwise, you must provide
47030
+ # base64-encoded text. User data is limited to 16 KB.
47036
47031
  #
47037
47032
  #
47038
47033
  #
@@ -47332,7 +47327,7 @@ module Aws::EC2
47332
47327
  # security_group_ids: ["SecurityGroupId"],
47333
47328
  # security_groups: ["SecurityGroupName"],
47334
47329
  # subnet_id: "SubnetId",
47335
- # user_data: "String",
47330
+ # user_data: "RunInstancesUserData",
47336
47331
  # additional_info: "String",
47337
47332
  # client_token: "String",
47338
47333
  # disable_api_termination: false,
@@ -48712,12 +48707,7 @@ module Aws::EC2
48712
48707
  # the consumer can use the name to access the service.
48713
48708
  #
48714
48709
  # Before the service provider runs this command, they must add a record
48715
- # to the DNS server. For more information, see [Adding a TXT Record to
48716
- # Your Domain's DNS Server ][1] in the *Amazon VPC User Guide*.
48717
- #
48718
- #
48719
- #
48720
- # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html#add-dns-txt-record
48710
+ # to the DNS server.
48721
48711
  #
48722
48712
  # @option params [Boolean] :dry_run
48723
48713
  # Checks whether you have the required permissions for the action,
@@ -49516,7 +49506,7 @@ module Aws::EC2
49516
49506
  params: params,
49517
49507
  config: config)
49518
49508
  context[:gem_name] = 'aws-sdk-ec2'
49519
- context[:gem_version] = '1.306.0'
49509
+ context[:gem_version] = '1.309.0'
49520
49510
  Seahorse::Client::Request.new(handlers, context)
49521
49511
  end
49522
49512
 
@@ -49601,6 +49591,7 @@ module Aws::EC2
49601
49591
  # | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
49602
49592
  # | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
49603
49593
  # | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
49594
+ # | nat_gateway_deleted | {Client#describe_nat_gateways} | 15 | 40 |
49604
49595
  # | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
49605
49596
  # | password_data_available | {Client#get_password_data} | 15 | 40 |
49606
49597
  # | security_group_exists | {Client#describe_security_groups} | 5 | 6 |
@@ -49684,6 +49675,7 @@ module Aws::EC2
49684
49675
  internet_gateway_exists: Waiters::InternetGatewayExists,
49685
49676
  key_pair_exists: Waiters::KeyPairExists,
49686
49677
  nat_gateway_available: Waiters::NatGatewayAvailable,
49678
+ nat_gateway_deleted: Waiters::NatGatewayDeleted,
49687
49679
  network_interface_available: Waiters::NetworkInterfaceAvailable,
49688
49680
  password_data_available: Waiters::PasswordDataAvailable,
49689
49681
  security_group_exists: Waiters::SecurityGroupExists,
@@ -1581,6 +1581,7 @@ module Aws::EC2
1581
1581
  Ipv6RangeList = Shapes::ListShape.new(name: 'Ipv6RangeList')
1582
1582
  Ipv6SupportValue = Shapes::StringShape.new(name: 'Ipv6SupportValue')
1583
1583
  KernelId = Shapes::StringShape.new(name: 'KernelId')
1584
+ KeyFormat = Shapes::StringShape.new(name: 'KeyFormat')
1584
1585
  KeyNameStringList = Shapes::ListShape.new(name: 'KeyNameStringList')
1585
1586
  KeyPair = Shapes::StructureShape.new(name: 'KeyPair')
1586
1587
  KeyPairId = Shapes::StringShape.new(name: 'KeyPairId')
@@ -2230,6 +2231,7 @@ module Aws::EC2
2230
2231
  RuleAction = Shapes::StringShape.new(name: 'RuleAction')
2231
2232
  RunInstancesMonitoringEnabled = Shapes::StructureShape.new(name: 'RunInstancesMonitoringEnabled')
2232
2233
  RunInstancesRequest = Shapes::StructureShape.new(name: 'RunInstancesRequest')
2234
+ RunInstancesUserData = Shapes::StringShape.new(name: 'RunInstancesUserData')
2233
2235
  RunScheduledInstancesRequest = Shapes::StructureShape.new(name: 'RunScheduledInstancesRequest')
2234
2236
  RunScheduledInstancesResult = Shapes::StructureShape.new(name: 'RunScheduledInstancesResult')
2235
2237
  S3ObjectTag = Shapes::StructureShape.new(name: 'S3ObjectTag')
@@ -4074,6 +4076,7 @@ module Aws::EC2
4074
4076
  CreateKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
4075
4077
  CreateKeyPairRequest.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "KeyType"))
4076
4078
  CreateKeyPairRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
4079
+ CreateKeyPairRequest.add_member(:key_format, Shapes::ShapeRef.new(shape: KeyFormat, location_name: "KeyFormat"))
4077
4080
  CreateKeyPairRequest.struct_class = Types::CreateKeyPairRequest
4078
4081
 
4079
4082
  CreateLaunchTemplateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
@@ -5771,6 +5774,7 @@ module Aws::EC2
5771
5774
  DescribeKeyPairsRequest.add_member(:key_names, Shapes::ShapeRef.new(shape: KeyNameStringList, location_name: "KeyName"))
5772
5775
  DescribeKeyPairsRequest.add_member(:key_pair_ids, Shapes::ShapeRef.new(shape: KeyPairIdStringList, location_name: "KeyPairId"))
5773
5776
  DescribeKeyPairsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
5777
+ DescribeKeyPairsRequest.add_member(:include_public_key, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludePublicKey"))
5774
5778
  DescribeKeyPairsRequest.struct_class = Types::DescribeKeyPairsRequest
5775
5779
 
5776
5780
  DescribeKeyPairsResult.add_member(:key_pairs, Shapes::ShapeRef.new(shape: KeyPairList, location_name: "keySet"))
@@ -8970,6 +8974,8 @@ module Aws::EC2
8970
8974
  KeyPairInfo.add_member(:key_name, Shapes::ShapeRef.new(shape: String, location_name: "keyName"))
8971
8975
  KeyPairInfo.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "keyType"))
8972
8976
  KeyPairInfo.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
8977
+ KeyPairInfo.add_member(:public_key, Shapes::ShapeRef.new(shape: String, location_name: "publicKey"))
8978
+ KeyPairInfo.add_member(:create_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "createTime"))
8973
8979
  KeyPairInfo.struct_class = Types::KeyPairInfo
8974
8980
 
8975
8981
  KeyPairList.member = Shapes::ShapeRef.new(shape: KeyPairInfo, location_name: "item")
@@ -11494,7 +11500,7 @@ module Aws::EC2
11494
11500
  RunInstancesRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdStringList, location_name: "SecurityGroupId"))
11495
11501
  RunInstancesRequest.add_member(:security_groups, Shapes::ShapeRef.new(shape: SecurityGroupStringList, location_name: "SecurityGroup"))
11496
11502
  RunInstancesRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "SubnetId"))
11497
- RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape: String, location_name: "UserData"))
11503
+ RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape: RunInstancesUserData, location_name: "UserData"))
11498
11504
  RunInstancesRequest.add_member(:additional_info, Shapes::ShapeRef.new(shape: String, location_name: "additionalInfo"))
11499
11505
  RunInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
11500
11506
  RunInstancesRequest.add_member(:disable_api_termination, Shapes::ShapeRef.new(shape: Boolean, location_name: "disableApiTermination"))
@@ -745,13 +745,19 @@ module Aws::EC2
745
745
  # brackets (\[\]), spaces ( ), periods (.), slashes (/), dashes (-),
746
746
  # single quotes ('), at-signs (@), or underscores(\_)
747
747
  # @option options [Boolean] :no_reboot
748
- # By default, Amazon EC2 attempts to shut down and reboot the instance
749
- # before creating the image. If the `No Reboot` option is set, Amazon
750
- # EC2 doesn't shut down the instance before creating the image. Without
751
- # a reboot, the AMI will be crash consistent (all the volumes are
752
- # snapshotted at the same time), but not application consistent (all the
753
- # operating system buffers are not flushed to disk before the snapshots
754
- # are created).
748
+ # By default, when Amazon EC2 creates the new AMI, it reboots the
749
+ # instance so that it can take snapshots of the attached volumes while
750
+ # data is at rest, in order to ensure a consistent state. You can set
751
+ # the `NoReboot` parameter to `true` in the API request, or use the
752
+ # `--no-reboot` option in the CLI to prevent Amazon EC2 from shutting
753
+ # down and rebooting the instance.
754
+ #
755
+ # If you choose to bypass the shutdown and reboot process by setting the
756
+ # `NoReboot` parameter to `true` in the API request, or by using the
757
+ # `--no-reboot` option in the CLI, we can't guarantee the file system
758
+ # integrity of the created image.
759
+ #
760
+ # Default: `false` (follow standard reboot process)
755
761
  # @option options [Array<Types::TagSpecification>] :tag_specifications
756
762
  # The tags to apply to the AMI and snapshots on creation. You can tag
757
763
  # the AMI, the snapshots, or both.
@@ -35,7 +35,12 @@ module Aws::EC2
35
35
  end
36
36
  alias :key_name :name
37
37
 
38
- # The SHA-1 digest of the DER encoded private key.
38
+ # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
39
+ # DER encoded private key.
40
+ #
41
+ # * For ED25519 key pairs, the key fingerprint is the base64-encoded
42
+ # SHA-256 digest, which is the default for OpenSSH, starting with
43
+ # OpenSSH 6.8.
39
44
  # @return [String]
40
45
  def key_fingerprint
41
46
  data[:key_fingerprint]
@@ -80,6 +80,28 @@ module Aws::EC2
80
80
  data[:tags]
81
81
  end
82
82
 
83
+ # The public key material.
84
+ # @return [String]
85
+ def public_key
86
+ data[:public_key]
87
+ end
88
+
89
+ # If you used Amazon EC2 to create the key pair, this is the date and
90
+ # time when the key was created, in [ISO 8601 date-time format][1], in
91
+ # the UTC time zone.
92
+ #
93
+ # If you imported an existing key pair to Amazon EC2, this is the date
94
+ # and time the key was imported, in [ISO 8601 date-time format][1], in
95
+ # the UTC time zone.
96
+ #
97
+ #
98
+ #
99
+ # [1]: https://www.iso.org/iso-8601-date-and-time-format.html
100
+ # @return [Time]
101
+ def create_time
102
+ data[:create_time]
103
+ end
104
+
83
105
  # @!endgroup
84
106
 
85
107
  # @return [Client]
@@ -265,6 +265,9 @@ module Aws::EC2
265
265
  #
266
266
  # * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
267
267
  #
268
+ # * `capacity-reservation-id` - The ID of the Capacity Reservation into
269
+ # which the instance was launched.
270
+ #
268
271
  # * `client-token` - The idempotency token you provided when you
269
272
  # launched the instance.
270
273
  #
@@ -127,7 +127,7 @@ module Aws::EC2
127
127
  # security_group_ids: ["SecurityGroupId"],
128
128
  # security_groups: ["SecurityGroupName"],
129
129
  # subnet_id: "SubnetId",
130
- # user_data: "String",
130
+ # user_data: "RunInstancesUserData",
131
131
  # additional_info: "String",
132
132
  # client_token: "String",
133
133
  # disable_api_termination: false,
@@ -387,12 +387,12 @@ module Aws::EC2
387
387
  # If you specify a network interface, you must specify any subnets as
388
388
  # part of the network interface.
389
389
  # @option options [String] :user_data
390
- # The user data to make available to the instance. For more information,
391
- # see [Run commands on your Linux instance at launch][1] and [Run
392
- # commands on your Windows instance at launch][2]. If you are using a
393
- # command line tool, base64-encoding is performed for you, and you can
394
- # load the text from a file. Otherwise, you must provide base64-encoded
395
- # text. User data is limited to 16 KB.
390
+ # The user data script to make available to the instance. For more
391
+ # information, see [Run commands on your Linux instance at launch][1]
392
+ # and [Run commands on your Windows instance at launch][2]. If you are
393
+ # using a command line tool, base64-encoding is performed for you, and
394
+ # you can load the text from a file. Otherwise, you must provide
395
+ # base64-encoded text. User data is limited to 16 KB.
396
396
  #
397
397
  #
398
398
  #
@@ -631,6 +631,7 @@ module Aws::EC2
631
631
  # ],
632
632
  # },
633
633
  # ],
634
+ # key_format: "pem", # accepts pem, ppk
634
635
  # })
635
636
  # @param [Hash] options ({})
636
637
  # @option options [required, String] :key_name
@@ -644,11 +645,15 @@ module Aws::EC2
644
645
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
645
646
  # @option options [String] :key_type
646
647
  # The type of key pair. Note that ED25519 keys are not supported for
647
- # Windows instances, EC2 Instance Connect, and EC2 Serial Console.
648
+ # Windows instances.
648
649
  #
649
650
  # Default: `rsa`
650
651
  # @option options [Array<Types::TagSpecification>] :tag_specifications
651
652
  # The tags to apply to the new key pair.
653
+ # @option options [String] :key_format
654
+ # The format of the key pair.
655
+ #
656
+ # Default: `pem`
652
657
  # @return [KeyPair]
653
658
  def create_key_pair(options = {})
654
659
  resp = @client.create_key_pair(options)
@@ -1985,6 +1990,11 @@ module Aws::EC2
1985
1990
  # * `block-device-mapping.encrypted` - A Boolean that indicates whether
1986
1991
  # the Amazon EBS volume is encrypted.
1987
1992
  #
1993
+ # * `creation-date` - The time when the image was created, in the ISO
1994
+ # 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for
1995
+ # example, `2021-09-29T11:04:43.305Z`. You can use a wildcard (`*`),
1996
+ # for example, `2021-09-29T*`, which matches an entire day.
1997
+ #
1988
1998
  # * `description` - The description of the image (provided during image
1989
1999
  # creation).
1990
2000
  #
@@ -2142,6 +2152,9 @@ module Aws::EC2
2142
2152
  #
2143
2153
  # * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
2144
2154
  #
2155
+ # * `capacity-reservation-id` - The ID of the Capacity Reservation into
2156
+ # which the instance was launched.
2157
+ #
2145
2158
  # * `client-token` - The idempotency token you provided when you
2146
2159
  # launched the instance.
2147
2160
  #
@@ -2520,6 +2533,7 @@ module Aws::EC2
2520
2533
  # key_names: ["KeyPairName"],
2521
2534
  # key_pair_ids: ["KeyPairId"],
2522
2535
  # dry_run: false,
2536
+ # include_public_key: false,
2523
2537
  # })
2524
2538
  # @param [Hash] options ({})
2525
2539
  # @option options [Array<Types::Filter>] :filters
@@ -2551,6 +2565,10 @@ module Aws::EC2
2551
2565
  # without actually making the request, and provides an error response.
2552
2566
  # If you have the required permissions, the error response is
2553
2567
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
2568
+ # @option options [Boolean] :include_public_key
2569
+ # If `true`, the public key material is included in the response.
2570
+ #
2571
+ # Default: `false`
2554
2572
  # @return [KeyPairInfo::Collection]
2555
2573
  def key_pairs(options = {})
2556
2574
  batches = Enumerator.new do |y|
@@ -351,7 +351,7 @@ module Aws::EC2
351
351
  # ramdisk_id: "RamdiskId",
352
352
  # security_group_ids: ["SecurityGroupId"],
353
353
  # security_groups: ["SecurityGroupName"],
354
- # user_data: "String",
354
+ # user_data: "RunInstancesUserData",
355
355
  # additional_info: "String",
356
356
  # client_token: "String",
357
357
  # disable_api_termination: false,
@@ -606,12 +606,12 @@ module Aws::EC2
606
606
  #
607
607
  # Default: Amazon EC2 uses the default security group.
608
608
  # @option options [String] :user_data
609
- # The user data to make available to the instance. For more information,
610
- # see [Run commands on your Linux instance at launch][1] and [Run
611
- # commands on your Windows instance at launch][2]. If you are using a
612
- # command line tool, base64-encoding is performed for you, and you can
613
- # load the text from a file. Otherwise, you must provide base64-encoded
614
- # text. User data is limited to 16 KB.
609
+ # The user data script to make available to the instance. For more
610
+ # information, see [Run commands on your Linux instance at launch][1]
611
+ # and [Run commands on your Windows instance at launch][2]. If you are
612
+ # using a command line tool, base64-encoding is performed for you, and
613
+ # you can load the text from a file. Otherwise, you must provide
614
+ # base64-encoded text. User data is limited to 16 KB.
615
615
  #
616
616
  #
617
617
  #
@@ -1069,6 +1069,9 @@ module Aws::EC2
1069
1069
  #
1070
1070
  # * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
1071
1071
  #
1072
+ # * `capacity-reservation-id` - The ID of the Capacity Reservation into
1073
+ # which the instance was launched.
1074
+ #
1072
1075
  # * `client-token` - The idempotency token you provided when you
1073
1076
  # launched the instance.
1074
1077
  #
@@ -8332,13 +8332,19 @@ module Aws::EC2
8332
8332
  # @return [String]
8333
8333
  #
8334
8334
  # @!attribute [rw] no_reboot
8335
- # By default, Amazon EC2 attempts to shut down and reboot the instance
8336
- # before creating the image. If the `No Reboot` option is set, Amazon
8337
- # EC2 doesn't shut down the instance before creating the image.
8338
- # Without a reboot, the AMI will be crash consistent (all the volumes
8339
- # are snapshotted at the same time), but not application consistent
8340
- # (all the operating system buffers are not flushed to disk before the
8341
- # snapshots are created).
8335
+ # By default, when Amazon EC2 creates the new AMI, it reboots the
8336
+ # instance so that it can take snapshots of the attached volumes while
8337
+ # data is at rest, in order to ensure a consistent state. You can set
8338
+ # the `NoReboot` parameter to `true` in the API request, or use the
8339
+ # `--no-reboot` option in the CLI to prevent Amazon EC2 from shutting
8340
+ # down and rebooting the instance.
8341
+ #
8342
+ # If you choose to bypass the shutdown and reboot process by setting
8343
+ # the `NoReboot` parameter to `true` in the API request, or by using
8344
+ # the `--no-reboot` option in the CLI, we can't guarantee the file
8345
+ # system integrity of the created image.
8346
+ #
8347
+ # Default: `false` (follow standard reboot process)
8342
8348
  # @return [Boolean]
8343
8349
  #
8344
8350
  # @!attribute [rw] tag_specifications
@@ -8991,6 +8997,7 @@ module Aws::EC2
8991
8997
  # ],
8992
8998
  # },
8993
8999
  # ],
9000
+ # key_format: "pem", # accepts pem, ppk
8994
9001
  # }
8995
9002
  #
8996
9003
  # @!attribute [rw] key_name
@@ -9008,7 +9015,7 @@ module Aws::EC2
9008
9015
  #
9009
9016
  # @!attribute [rw] key_type
9010
9017
  # The type of key pair. Note that ED25519 keys are not supported for
9011
- # Windows instances, EC2 Instance Connect, and EC2 Serial Console.
9018
+ # Windows instances.
9012
9019
  #
9013
9020
  # Default: `rsa`
9014
9021
  # @return [String]
@@ -9017,13 +9024,20 @@ module Aws::EC2
9017
9024
  # The tags to apply to the new key pair.
9018
9025
  # @return [Array<Types::TagSpecification>]
9019
9026
  #
9027
+ # @!attribute [rw] key_format
9028
+ # The format of the key pair.
9029
+ #
9030
+ # Default: `pem`
9031
+ # @return [String]
9032
+ #
9020
9033
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPairRequest AWS API Documentation
9021
9034
  #
9022
9035
  class CreateKeyPairRequest < Struct.new(
9023
9036
  :key_name,
9024
9037
  :dry_run,
9025
9038
  :key_type,
9026
- :tag_specifications)
9039
+ :tag_specifications,
9040
+ :key_format)
9027
9041
  SENSITIVE = []
9028
9042
  include Aws::Structure
9029
9043
  end
@@ -13503,8 +13517,7 @@ module Aws::EC2
13503
13517
  #
13504
13518
  # @!attribute [rw] acceptance_required
13505
13519
  # Indicates whether requests from service consumers to create an
13506
- # endpoint to your service must be accepted. To accept a request, use
13507
- # AcceptVpcEndpointConnections.
13520
+ # endpoint to your service must be accepted manually.
13508
13521
  # @return [Boolean]
13509
13522
  #
13510
13523
  # @!attribute [rw] private_dns_name
@@ -20384,6 +20397,11 @@ module Aws::EC2
20384
20397
  # * `block-device-mapping.encrypted` - A Boolean that indicates
20385
20398
  # whether the Amazon EBS volume is encrypted.
20386
20399
  #
20400
+ # * `creation-date` - The time when the image was created, in the ISO
20401
+ # 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for
20402
+ # example, `2021-09-29T11:04:43.305Z`. You can use a wildcard (`*`),
20403
+ # for example, `2021-09-29T*`, which matches an entire day.
20404
+ #
20387
20405
  # * `description` - The description of the image (provided during
20388
20406
  # image creation).
20389
20407
  #
@@ -21396,6 +21414,9 @@ module Aws::EC2
21396
21414
  # * `block-device-mapping.volume-id` - The volume ID of the EBS
21397
21415
  # volume.
21398
21416
  #
21417
+ # * `capacity-reservation-id` - The ID of the Capacity Reservation
21418
+ # into which the instance was launched.
21419
+ #
21399
21420
  # * `client-token` - The idempotency token you provided when you
21400
21421
  # launched the instance.
21401
21422
  #
@@ -22122,6 +22143,7 @@ module Aws::EC2
22122
22143
  # key_names: ["KeyPairName"],
22123
22144
  # key_pair_ids: ["KeyPairId"],
22124
22145
  # dry_run: false,
22146
+ # include_public_key: false,
22125
22147
  # }
22126
22148
  #
22127
22149
  # @!attribute [rw] filters
@@ -22161,13 +22183,20 @@ module Aws::EC2
22161
22183
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
22162
22184
  # @return [Boolean]
22163
22185
  #
22186
+ # @!attribute [rw] include_public_key
22187
+ # If `true`, the public key material is included in the response.
22188
+ #
22189
+ # Default: `false`
22190
+ # @return [Boolean]
22191
+ #
22164
22192
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsRequest AWS API Documentation
22165
22193
  #
22166
22194
  class DescribeKeyPairsRequest < Struct.new(
22167
22195
  :filters,
22168
22196
  :key_names,
22169
22197
  :key_pair_ids,
22170
- :dry_run)
22198
+ :dry_run,
22199
+ :include_public_key)
22171
22200
  SENSITIVE = []
22172
22201
  include Aws::Structure
22173
22202
  end
@@ -22804,9 +22833,6 @@ module Aws::EC2
22804
22833
  # * `local-gateway-virtual-interface-id` - The ID of the virtual
22805
22834
  # interface.
22806
22835
  #
22807
- # * `local-gateway-virtual-interface-group-id` - The ID of the virtual
22808
- # interface group.
22809
- #
22810
22836
  # * `owner-id` - The ID of the Amazon Web Services account that owns
22811
22837
  # the local gateway virtual interface.
22812
22838
  #
@@ -26268,7 +26294,7 @@ module Aws::EC2
26268
26294
  #
26269
26295
  #
26270
26296
  #
26271
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html
26297
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
26272
26298
  # @return [Array<Types::Filter>]
26273
26299
  #
26274
26300
  # @!attribute [rw] dry_run
@@ -31164,6 +31190,13 @@ module Aws::EC2
31164
31190
  #
31165
31191
  # @!attribute [rw] outpost_arn
31166
31192
  # The ARN of the Outpost on which the snapshot is stored.
31193
+ #
31194
+ # This parameter is only supported on `BlockDeviceMapping` objects
31195
+ # called by [ CreateImage][1].
31196
+ #
31197
+ #
31198
+ #
31199
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html
31167
31200
  # @return [String]
31168
31201
  #
31169
31202
  # @!attribute [rw] encrypted
@@ -38860,8 +38893,16 @@ module Aws::EC2
38860
38893
  end
38861
38894
 
38862
38895
  # @!attribute [rw] key_fingerprint
38863
- # The MD5 public key fingerprint as specified in section 4 of RFC
38864
- # 4716.
38896
+ # * For RSA key pairs, the key fingerprint is the MD5 public key
38897
+ # fingerprint as specified in section 4 of RFC 4716.
38898
+ #
38899
+ # * For ED25519 key pairs, the key fingerprint is the base64-encoded
38900
+ # SHA-256 digest, which is the default for OpenSSH, starting with
38901
+ # [OpenSSH 6.8][1].
38902
+ #
38903
+ #
38904
+ #
38905
+ # [1]: http://www.openssh.com/txt/release-6.8
38865
38906
  # @return [String]
38866
38907
  #
38867
38908
  # @!attribute [rw] key_name
@@ -43327,7 +43368,12 @@ module Aws::EC2
43327
43368
  # Describes a key pair.
43328
43369
  #
43329
43370
  # @!attribute [rw] key_fingerprint
43330
- # The SHA-1 digest of the DER encoded private key.
43371
+ # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
43372
+ # DER encoded private key.
43373
+ #
43374
+ # * For ED25519 key pairs, the key fingerprint is the base64-encoded
43375
+ # SHA-256 digest, which is the default for OpenSSH, starting with
43376
+ # OpenSSH 6.8.
43331
43377
  # @return [String]
43332
43378
  #
43333
43379
  # @!attribute [rw] key_material
@@ -43401,6 +43447,24 @@ module Aws::EC2
43401
43447
  # Any tags applied to the key pair.
43402
43448
  # @return [Array<Types::Tag>]
43403
43449
  #
43450
+ # @!attribute [rw] public_key
43451
+ # The public key material.
43452
+ # @return [String]
43453
+ #
43454
+ # @!attribute [rw] create_time
43455
+ # If you used Amazon EC2 to create the key pair, this is the date and
43456
+ # time when the key was created, in [ISO 8601 date-time format][1], in
43457
+ # the UTC time zone.
43458
+ #
43459
+ # If you imported an existing key pair to Amazon EC2, this is the date
43460
+ # and time the key was imported, in [ISO 8601 date-time format][1], in
43461
+ # the UTC time zone.
43462
+ #
43463
+ #
43464
+ #
43465
+ # [1]: https://www.iso.org/iso-8601-date-and-time-format.html
43466
+ # @return [Time]
43467
+ #
43404
43468
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPairInfo AWS API Documentation
43405
43469
  #
43406
43470
  class KeyPairInfo < Struct.new(
@@ -43408,7 +43472,9 @@ module Aws::EC2
43408
43472
  :key_fingerprint,
43409
43473
  :key_name,
43410
43474
  :key_type,
43411
- :tags)
43475
+ :tags,
43476
+ :public_key,
43477
+ :create_time)
43412
43478
  SENSITIVE = []
43413
43479
  include Aws::Structure
43414
43480
  end
@@ -43558,7 +43624,7 @@ module Aws::EC2
43558
43624
  # @return [String]
43559
43625
  #
43560
43626
  # @!attribute [rw] instance_type
43561
- # The instance type.
43627
+ # The instance type. Only one instance type can be specified.
43562
43628
  # @return [String]
43563
43629
  #
43564
43630
  # @!attribute [rw] kernel_id
@@ -49163,12 +49229,11 @@ module Aws::EC2
49163
49229
  # @return [Types::AttributeBooleanValue]
49164
49230
  #
49165
49231
  # @!attribute [rw] private_dns_hostname_type_on_launch
49166
- # The type of hostnames to assign to instances in the subnet at
49167
- # launch. For IPv4 only subnets, an instance DNS name must be based on
49168
- # the instance IPv4 address. For IPv6 only subnets, an instance DNS
49169
- # name must be based on the instance ID. For dual-stack subnets, you
49170
- # can specify whether DNS names use the instance IPv4 address or the
49171
- # instance ID.
49232
+ # The type of hostname to assign to instances in the subnet at launch.
49233
+ # For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance
49234
+ # DNS name can be based on the instance IPv4 address (ip-name) or the
49235
+ # instance ID (resource-name). For IPv6 only subnets, an instance DNS
49236
+ # name must be based on the instance ID (resource-name).
49172
49237
  # @return [String]
49173
49238
  #
49174
49239
  # @!attribute [rw] enable_resource_name_dns_a_record_on_launch
@@ -53439,14 +53504,7 @@ module Aws::EC2
53439
53504
  include Aws::Structure
53440
53505
  end
53441
53506
 
53442
- # Information about the private DNS name for the service endpoint. For
53443
- # more information about these parameters, see [VPC Endpoint Service
53444
- # Private DNS Name Verification][1] in the *Amazon Virtual Private Cloud
53445
- # User Guide*.
53446
- #
53447
- #
53448
- #
53449
- # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/ndpoint-services-dns-validation.html
53507
+ # Information about the private DNS name for the service endpoint.
53450
53508
  #
53451
53509
  # @!attribute [rw] state
53452
53510
  # The verification state of the VPC endpoint service.
@@ -55834,6 +55892,10 @@ module Aws::EC2
55834
55892
 
55835
55893
  # The information to include in the launch template.
55836
55894
  #
55895
+ # <note markdown="1"> You must specify at least one parameter for the launch template data.
55896
+ #
55897
+ # </note>
55898
+ #
55837
55899
  # @note When making an API call, you may pass RequestLaunchTemplateData
55838
55900
  # data as a hash:
55839
55901
  #
@@ -57039,7 +57101,7 @@ module Aws::EC2
57039
57101
  # @return [String]
57040
57102
  #
57041
57103
  # @!attribute [rw] instance_type
57042
- # The instance type.
57104
+ # The instance type. Only one instance type can be specified.
57043
57105
  # @return [String]
57044
57106
  #
57045
57107
  # @!attribute [rw] kernel_id
@@ -59182,7 +59244,7 @@ module Aws::EC2
59182
59244
  # security_group_ids: ["SecurityGroupId"],
59183
59245
  # security_groups: ["SecurityGroupName"],
59184
59246
  # subnet_id: "SubnetId",
59185
- # user_data: "String",
59247
+ # user_data: "RunInstancesUserData",
59186
59248
  # additional_info: "String",
59187
59249
  # client_token: "String",
59188
59250
  # disable_api_termination: false,
@@ -59474,7 +59536,7 @@ module Aws::EC2
59474
59536
  # @return [String]
59475
59537
  #
59476
59538
  # @!attribute [rw] user_data
59477
- # The user data to make available to the instance. For more
59539
+ # The user data script to make available to the instance. For more
59478
59540
  # information, see [Run commands on your Linux instance at launch][1]
59479
59541
  # and [Run commands on your Windows instance at launch][2]. If you are
59480
59542
  # using a command line tool, base64-encoding is performed for you, and
@@ -59748,7 +59810,7 @@ module Aws::EC2
59748
59810
  :enclave_options,
59749
59811
  :private_dns_name_options,
59750
59812
  :maintenance_options)
59751
- SENSITIVE = []
59813
+ SENSITIVE = [:user_data]
59752
59814
  include Aws::Structure
59753
59815
  end
59754
59816
 
@@ -63233,13 +63295,14 @@ module Aws::EC2
63233
63295
  # @return [String]
63234
63296
  #
63235
63297
  # @!attribute [rw] state
63236
- # The state of the Spot Instance request. Spot status information
63237
- # helps track your Spot Instance requests. For more information, see
63238
- # [Spot status][1] in the *Amazon EC2 User Guide for Linux Instances*.
63298
+ # The state of the Spot Instance request. Spot request status
63299
+ # information helps track your Spot Instance requests. For more
63300
+ # information, see [Spot request status][1] in the *Amazon EC2 User
63301
+ # Guide for Linux Instances*.
63239
63302
  #
63240
63303
  #
63241
63304
  #
63242
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html
63305
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
63243
63306
  # @return [String]
63244
63307
  #
63245
63308
  # @!attribute [rw] status
@@ -63327,12 +63390,12 @@ module Aws::EC2
63327
63390
  # Describes the status of a Spot Instance request.
63328
63391
  #
63329
63392
  # @!attribute [rw] code
63330
- # The status code. For a list of status codes, see [Spot status
63331
- # codes][1] in the *Amazon EC2 User Guide for Linux Instances*.
63393
+ # The status code. For a list of status codes, see [Spot request
63394
+ # status codes][1] in the *Amazon EC2 User Guide for Linux Instances*.
63332
63395
  #
63333
63396
  #
63334
63397
  #
63335
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html#spot-instance-bid-status-understand
63398
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html#spot-instance-request-status-understand
63336
63399
  # @return [String]
63337
63400
  #
63338
63401
  # @!attribute [rw] message
@@ -966,6 +966,9 @@ module Aws::EC2
966
966
  #
967
967
  # * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
968
968
  #
969
+ # * `capacity-reservation-id` - The ID of the Capacity Reservation into
970
+ # which the instance was launched.
971
+ #
969
972
  # * `client-token` - The idempotency token you provided when you
970
973
  # launched the instance.
971
974
  #
@@ -86,6 +86,7 @@ module Aws::EC2
86
86
  # | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
87
87
  # | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
88
88
  # | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
89
+ # | nat_gateway_deleted | {Client#describe_nat_gateways} | 15 | 40 |
89
90
  # | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
90
91
  # | password_data_available | {Client#get_password_data} | 15 | 40 |
91
92
  # | security_group_exists | {Client#describe_security_groups} | 5 | 6 |
@@ -874,6 +875,49 @@ module Aws::EC2
874
875
 
875
876
  end
876
877
 
878
+ class NatGatewayDeleted
879
+
880
+ # @param [Hash] options
881
+ # @option options [required, Client] :client
882
+ # @option options [Integer] :max_attempts (40)
883
+ # @option options [Integer] :delay (15)
884
+ # @option options [Proc] :before_attempt
885
+ # @option options [Proc] :before_wait
886
+ def initialize(options)
887
+ @client = options.fetch(:client)
888
+ @waiter = Aws::Waiters::Waiter.new({
889
+ max_attempts: 40,
890
+ delay: 15,
891
+ poller: Aws::Waiters::Poller.new(
892
+ operation_name: :describe_nat_gateways,
893
+ acceptors: [
894
+ {
895
+ "state" => "success",
896
+ "matcher" => "pathAll",
897
+ "argument" => "nat_gateways[].state",
898
+ "expected" => "deleted"
899
+ },
900
+ {
901
+ "state" => "success",
902
+ "matcher" => "error",
903
+ "expected" => "NatGatewayNotFound"
904
+ }
905
+ ]
906
+ )
907
+ }.merge(options))
908
+ end
909
+
910
+ # @option (see Client#describe_nat_gateways)
911
+ # @return (see Client#describe_nat_gateways)
912
+ def wait(params = {})
913
+ @waiter.wait(client: @client, params: params)
914
+ end
915
+
916
+ # @api private
917
+ attr_reader :waiter
918
+
919
+ end
920
+
877
921
  class NetworkInterfaceAvailable
878
922
 
879
923
  # @param [Hash] options
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.306.0'
75
+ GEM_VERSION = '1.309.0'
76
76
 
77
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.306.0
4
+ version: 1.309.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-12 00:00:00.000000000 Z
11
+ date: 2022-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4