aws-sdk-ec2 1.527.0 → 1.531.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.
@@ -3305,15 +3305,19 @@ module Aws::EC2
3305
3305
  req.send_request(options)
3306
3306
  end
3307
3307
 
3308
- # Attaches an EBS volume to a running or stopped instance and exposes it
3309
- # to the instance with the specified device name.
3308
+ # Attaches an Amazon EBS volume to a `running` or `stopped` instance,
3309
+ # and exposes it to the instance with the specified device name.
3310
3310
  #
3311
- # Encrypted EBS volumes must be attached to instances that support
3312
- # Amazon EBS encryption. For more information, see [Amazon EBS
3313
- # encryption][1] in the *Amazon EBS User Guide*.
3311
+ # <note markdown="1"> The maximum number of Amazon EBS volumes that you can attach to an
3312
+ # instance depends on the instance type. If you exceed the volume
3313
+ # attachment limit for an instance type, the attachment request fails
3314
+ # with the `AttachmentLimitExceeded` error. For more information, see
3315
+ # [Instance volume limits][1].
3314
3316
  #
3315
- # After you attach an EBS volume, you must make it available. For more
3316
- # information, see [Make an EBS volume available for use][2].
3317
+ # </note>
3318
+ #
3319
+ # After you attach an EBS volume, you must make it available for use.
3320
+ # For more information, see [Make an EBS volume available for use][2].
3317
3321
  #
3318
3322
  # If a volume has an Amazon Web Services Marketplace product code:
3319
3323
  #
@@ -3333,7 +3337,7 @@ module Aws::EC2
3333
3337
  #
3334
3338
  #
3335
3339
  #
3336
- # [1]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
3340
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_limits.html
3337
3341
  # [2]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-using-volumes.html
3338
3342
  # [3]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-attaching-volume.html
3339
3343
  #
@@ -4397,9 +4401,9 @@ module Aws::EC2
4397
4401
  end
4398
4402
 
4399
4403
  # Removes your Amazon Web Services account from the launch permissions
4400
- # for the specified AMI. For more information, see [ Cancel having an
4401
- # AMI shared with your Amazon Web Services account][1] in the *Amazon
4402
- # EC2 User Guide*.
4404
+ # for the specified AMI. For more information, see [Cancel having an AMI
4405
+ # shared with your Amazon Web Services account][1] in the *Amazon EC2
4406
+ # User Guide*.
4403
4407
  #
4404
4408
  #
4405
4409
  #
@@ -4844,7 +4848,7 @@ module Aws::EC2
4844
4848
  # unencrypted snapshots.
4845
4849
  #
4846
4850
  # For information about the prerequisites when copying an AMI, see [Copy
4847
- # an AMI][2] in the *Amazon EC2 User Guide*.
4851
+ # an Amazon EC2 AMI][2] in the *Amazon EC2 User Guide*.
4848
4852
  #
4849
4853
  #
4850
4854
  #
@@ -4853,8 +4857,8 @@ module Aws::EC2
4853
4857
  #
4854
4858
  # @option params [String] :client_token
4855
4859
  # Unique, case-sensitive identifier you provide to ensure idempotency of
4856
- # the request. For more information, see [Ensuring idempotency][1] in
4857
- # the *Amazon EC2 API Reference*.
4860
+ # the request. For more information, see [Ensuring idempotency in Amazon
4861
+ # EC2 API requests][1] in the *Amazon EC2 API Reference*.
4858
4862
  #
4859
4863
  # **A suitable default value is auto-generated.** You should normally
4860
4864
  # not need to pass this option.**
@@ -4971,7 +4975,8 @@ module Aws::EC2
4971
4975
  # If you do not specify a value, the AMI copy operation is completed on
4972
4976
  # a best-effort basis.
4973
4977
  #
4974
- # For more information, see [ Time-based copies][1].
4978
+ # For more information, see [Time-based copies for Amazon EBS snapshots
4979
+ # and EBS-backed AMIs][1].
4975
4980
  #
4976
4981
  #
4977
4982
  #
@@ -6585,8 +6590,9 @@ module Aws::EC2
6585
6590
  # resp.subnet.private_dns_name_options_on_launch.enable_resource_name_dns_a_record #=> Boolean
6586
6591
  # resp.subnet.private_dns_name_options_on_launch.enable_resource_name_dns_aaaa_record #=> Boolean
6587
6592
  # resp.subnet.block_public_access_states.internet_gateway_block_mode #=> String, one of "off", "block-bidirectional", "block-ingress"
6593
+ # resp.subnet.type #=> String
6588
6594
  # resp.subnet.subnet_id #=> String
6589
- # resp.subnet.state #=> String, one of "pending", "available", "unavailable"
6595
+ # resp.subnet.state #=> String, one of "pending", "available", "unavailable", "failed", "failed-insufficient-capacity"
6590
6596
  # resp.subnet.vpc_id #=> String
6591
6597
  # resp.subnet.cidr_block #=> String
6592
6598
  # resp.subnet.available_ip_address_count #=> Integer
@@ -7764,8 +7770,8 @@ module Aws::EC2
7764
7770
  # launch an instance from this new AMI, the instance automatically
7765
7771
  # launches with those additional volumes.
7766
7772
  #
7767
- # For more information, see [Create an Amazon EBS-backed Linux AMI][1]
7768
- # in the *Amazon Elastic Compute Cloud User Guide*.
7773
+ # For more information, see [Create an Amazon EBS-backed AMI][1] in the
7774
+ # *Amazon Elastic Compute Cloud User Guide*.
7769
7775
  #
7770
7776
  #
7771
7777
  #
@@ -11933,6 +11939,8 @@ module Aws::EC2
11933
11939
  # resp.network_interface.ipv_6_address #=> String
11934
11940
  # resp.network_interface.operator.managed #=> Boolean
11935
11941
  # resp.network_interface.operator.principal #=> String
11942
+ # resp.network_interface.associated_subnets #=> Array
11943
+ # resp.network_interface.associated_subnets[0] #=> String
11936
11944
  # resp.client_token #=> String
11937
11945
  #
11938
11946
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface AWS API Documentation
@@ -12432,15 +12440,15 @@ module Aws::EC2
12432
12440
  #
12433
12441
  # To use this API, you must have the required permissions. For more
12434
12442
  # information, see [Permissions for storing and restoring AMIs using
12435
- # Amazon S3][2] in the *Amazon EC2 User Guide*.
12443
+ # S3][2] in the *Amazon EC2 User Guide*.
12436
12444
  #
12437
- # For more information, see [Store and restore an AMI using Amazon
12438
- # S3][3] in the *Amazon EC2 User Guide*.
12445
+ # For more information, see [Store and restore an AMI using S3][3] in
12446
+ # the *Amazon EC2 User Guide*.
12439
12447
  #
12440
12448
  #
12441
12449
  #
12442
12450
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html
12443
- # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions
12451
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions
12444
12452
  # [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html
12445
12453
  #
12446
12454
  # @option params [required, String] :bucket
@@ -13616,14 +13624,14 @@ module Aws::EC2
13616
13624
  #
13617
13625
  # To use this API, you must have the required permissions. For more
13618
13626
  # information, see [Permissions for storing and restoring AMIs using
13619
- # Amazon S3][1] in the *Amazon EC2 User Guide*.
13627
+ # S3][1] in the *Amazon EC2 User Guide*.
13620
13628
  #
13621
- # For more information, see [Store and restore an AMI using Amazon
13622
- # S3][2] in the *Amazon EC2 User Guide*.
13629
+ # For more information, see [Store and restore an AMI using S3][2] in
13630
+ # the *Amazon EC2 User Guide*.
13623
13631
  #
13624
13632
  #
13625
13633
  #
13626
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions
13634
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions
13627
13635
  # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html
13628
13636
  #
13629
13637
  # @option params [required, String] :image_id
@@ -13854,8 +13862,9 @@ module Aws::EC2
13854
13862
  # resp.subnet.private_dns_name_options_on_launch.enable_resource_name_dns_a_record #=> Boolean
13855
13863
  # resp.subnet.private_dns_name_options_on_launch.enable_resource_name_dns_aaaa_record #=> Boolean
13856
13864
  # resp.subnet.block_public_access_states.internet_gateway_block_mode #=> String, one of "off", "block-bidirectional", "block-ingress"
13865
+ # resp.subnet.type #=> String
13857
13866
  # resp.subnet.subnet_id #=> String
13858
- # resp.subnet.state #=> String, one of "pending", "available", "unavailable"
13867
+ # resp.subnet.state #=> String, one of "pending", "available", "unavailable", "failed", "failed-insufficient-capacity"
13859
13868
  # resp.subnet.vpc_id #=> String
13860
13869
  # resp.subnet.cidr_block #=> String
13861
13870
  # resp.subnet.available_ip_address_count #=> Integer
@@ -17159,6 +17168,11 @@ module Aws::EC2
17159
17168
  # @option params [Array<Types::TagSpecification>] :tag_specifications
17160
17169
  # The tags to apply to the VPN connection.
17161
17170
  #
17171
+ # @option params [String] :pre_shared_key_storage
17172
+ # Specifies the storage mode for the pre-shared key (PSK). Valid values
17173
+ # are `Standard`" (stored in the Site-to-Site VPN service) or
17174
+ # `SecretsManager` (stored in Amazon Web Services Secrets Manager).
17175
+ #
17162
17176
  # @option params [Boolean] :dry_run
17163
17177
  # Checks whether you have the required permissions for the action,
17164
17178
  # without actually making the request, and provides an error response.
@@ -17190,6 +17204,7 @@ module Aws::EC2
17190
17204
  # ],
17191
17205
  # },
17192
17206
  # ],
17207
+ # pre_shared_key_storage: "String",
17193
17208
  # dry_run: false,
17194
17209
  # options: {
17195
17210
  # enable_acceleration: false,
@@ -17323,6 +17338,7 @@ module Aws::EC2
17323
17338
  # resp.vpn_connection.vgw_telemetry[0].status #=> String, one of "UP", "DOWN"
17324
17339
  # resp.vpn_connection.vgw_telemetry[0].status_message #=> String
17325
17340
  # resp.vpn_connection.vgw_telemetry[0].certificate_arn #=> String
17341
+ # resp.vpn_connection.pre_shared_key_arn #=> String
17326
17342
  # resp.vpn_connection.vpn_connection_id #=> String
17327
17343
  # resp.vpn_connection.state #=> String, one of "pending", "available", "deleting", "deleted"
17328
17344
  # resp.vpn_connection.customer_gateway_configuration #=> String
@@ -21709,16 +21725,21 @@ module Aws::EC2
21709
21725
  # be restored before its retention period expires, after which it is
21710
21726
  # permanently deleted. If the deregistered AMI doesn't match a
21711
21727
  # retention rule, it is permanently deleted immediately. For more
21712
- # information, see [Recycle Bin][1] in the *Amazon EBS User Guide*.
21728
+ # information, see [Recover deleted Amazon EBS snapshots and EBS-backed
21729
+ # AMIs with Recycle Bin][1] in the *Amazon EBS User Guide*.
21730
+ #
21731
+ # When deregistering an EBS-backed AMI, you can optionally delete its
21732
+ # associated snapshots at the same time. However, if a snapshot is
21733
+ # associated with multiple AMIs, it won't be deleted even if specified
21734
+ # for deletion, although the AMI will still be deregistered.
21713
21735
  #
21714
21736
  # Deregistering an AMI does not delete the following:
21715
21737
  #
21716
21738
  # * Instances already launched from the AMI. You'll continue to incur
21717
21739
  # usage costs for the instances until you terminate them.
21718
21740
  #
21719
- # * For EBS-backed AMIs: The snapshots that were created of the root and
21720
- # data volumes of the instance during AMI creation. You'll continue
21721
- # to incur snapshot storage costs.
21741
+ # * For EBS-backed AMIs: Snapshots that are associated with multiple
21742
+ # AMIs. You'll continue to incur snapshot storage costs.
21722
21743
  #
21723
21744
  # * For instance store-backed AMIs: The files uploaded to Amazon S3
21724
21745
  # during AMI creation. You'll continue to incur S3 storage costs.
@@ -21734,21 +21755,43 @@ module Aws::EC2
21734
21755
  # @option params [required, String] :image_id
21735
21756
  # The ID of the AMI.
21736
21757
  #
21758
+ # @option params [Boolean] :delete_associated_snapshots
21759
+ # Specifies whether to delete the snapshots associated with the AMI
21760
+ # during deregistration.
21761
+ #
21762
+ # <note markdown="1"> If a snapshot is associated with multiple AMIs, it is not deleted,
21763
+ # regardless of this setting.
21764
+ #
21765
+ # </note>
21766
+ #
21767
+ # Default: The snapshots are not deleted.
21768
+ #
21737
21769
  # @option params [Boolean] :dry_run
21738
21770
  # Checks whether you have the required permissions for the action,
21739
21771
  # without actually making the request, and provides an error response.
21740
21772
  # If you have the required permissions, the error response is
21741
21773
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
21742
21774
  #
21743
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
21775
+ # @return [Types::DeregisterImageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
21776
+ #
21777
+ # * {Types::DeregisterImageResult#return #return} => Boolean
21778
+ # * {Types::DeregisterImageResult#delete_snapshot_results #delete_snapshot_results} => Array&lt;Types::DeleteSnapshotReturnCode&gt;
21744
21779
  #
21745
21780
  # @example Request syntax with placeholder values
21746
21781
  #
21747
21782
  # resp = client.deregister_image({
21748
21783
  # image_id: "ImageId", # required
21784
+ # delete_associated_snapshots: false,
21749
21785
  # dry_run: false,
21750
21786
  # })
21751
21787
  #
21788
+ # @example Response structure
21789
+ #
21790
+ # resp.return #=> Boolean
21791
+ # resp.delete_snapshot_results #=> Array
21792
+ # resp.delete_snapshot_results[0].snapshot_id #=> String
21793
+ # resp.delete_snapshot_results[0].return_code #=> String, one of "success", "skipped", "missing-permissions", "internal-error", "client-error"
21794
+ #
21752
21795
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage AWS API Documentation
21753
21796
  #
21754
21797
  # @overload deregister_image(params = {})
@@ -22240,6 +22283,7 @@ module Aws::EC2
22240
22283
  # resp.addresses[0].customer_owned_ip #=> String
22241
22284
  # resp.addresses[0].customer_owned_ipv_4_pool #=> String
22242
22285
  # resp.addresses[0].carrier_ip #=> String
22286
+ # resp.addresses[0].subnet_id #=> String
22243
22287
  # resp.addresses[0].service_managed #=> String, one of "alb", "nlb", "rnat"
22244
22288
  # resp.addresses[0].instance_id #=> String
22245
22289
  # resp.addresses[0].public_ip #=> String
@@ -33349,7 +33393,7 @@ module Aws::EC2
33349
33393
  # * `interface-type` - The type of network interface
33350
33394
  # (`api_gateway_managed` \| `aws_codestar_connections_managed` \|
33351
33395
  # `branch` \| `ec2_instance_connect_endpoint` \| `efa` \| `efa-only`
33352
- # \| `efs` \| `gateway_load_balancer` \|
33396
+ # \| `efs` \| `evs` \| `gateway_load_balancer` \|
33353
33397
  # `gateway_load_balancer_endpoint` \| `global_accelerator_managed` \|
33354
33398
  # `interface` \| `iot_rules_managed` \| `lambda` \| `load_balancer` \|
33355
33399
  # `nat_gateway` \| `network_load_balancer` \| `quicksight` \|
@@ -33568,6 +33612,8 @@ module Aws::EC2
33568
33612
  # resp.network_interfaces[0].ipv_6_address #=> String
33569
33613
  # resp.network_interfaces[0].operator.managed #=> Boolean
33570
33614
  # resp.network_interfaces[0].operator.principal #=> String
33615
+ # resp.network_interfaces[0].associated_subnets #=> Array
33616
+ # resp.network_interfaces[0].associated_subnets[0] #=> String
33571
33617
  # resp.next_token #=> String
33572
33618
  #
33573
33619
  #
@@ -37734,14 +37780,14 @@ module Aws::EC2
37734
37780
  #
37735
37781
  # To use this API, you must have the required permissions. For more
37736
37782
  # information, see [Permissions for storing and restoring AMIs using
37737
- # Amazon S3][1] in the *Amazon EC2 User Guide*.
37783
+ # S3][1] in the *Amazon EC2 User Guide*.
37738
37784
  #
37739
- # For more information, see [Store and restore an AMI using Amazon
37740
- # S3][2] in the *Amazon EC2 User Guide*.
37785
+ # For more information, see [Store and restore an AMI using S3][2] in
37786
+ # the *Amazon EC2 User Guide*.
37741
37787
  #
37742
37788
  #
37743
37789
  #
37744
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions
37790
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions
37745
37791
  # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html
37746
37792
  #
37747
37793
  # @option params [Array<String>] :image_ids
@@ -38039,8 +38085,9 @@ module Aws::EC2
38039
38085
  # resp.subnets[0].private_dns_name_options_on_launch.enable_resource_name_dns_a_record #=> Boolean
38040
38086
  # resp.subnets[0].private_dns_name_options_on_launch.enable_resource_name_dns_aaaa_record #=> Boolean
38041
38087
  # resp.subnets[0].block_public_access_states.internet_gateway_block_mode #=> String, one of "off", "block-bidirectional", "block-ingress"
38088
+ # resp.subnets[0].type #=> String
38042
38089
  # resp.subnets[0].subnet_id #=> String
38043
- # resp.subnets[0].state #=> String, one of "pending", "available", "unavailable"
38090
+ # resp.subnets[0].state #=> String, one of "pending", "available", "unavailable", "failed", "failed-insufficient-capacity"
38044
38091
  # resp.subnets[0].vpc_id #=> String
38045
38092
  # resp.subnets[0].cidr_block #=> String
38046
38093
  # resp.subnets[0].available_ip_address_count #=> Integer
@@ -42160,6 +42207,7 @@ module Aws::EC2
42160
42207
  # resp.vpn_connections[0].vgw_telemetry[0].status #=> String, one of "UP", "DOWN"
42161
42208
  # resp.vpn_connections[0].vgw_telemetry[0].status_message #=> String
42162
42209
  # resp.vpn_connections[0].vgw_telemetry[0].certificate_arn #=> String
42210
+ # resp.vpn_connections[0].pre_shared_key_arn #=> String
42163
42211
  # resp.vpn_connections[0].vpn_connection_id #=> String
42164
42212
  # resp.vpn_connections[0].state #=> String, one of "pending", "available", "deleting", "deleted"
42165
42213
  # resp.vpn_connections[0].customer_gateway_configuration #=> String
@@ -43069,7 +43117,7 @@ module Aws::EC2
43069
43117
  #
43070
43118
  #
43071
43119
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html
43072
- # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis
43120
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html
43073
43121
  #
43074
43122
  # @option params [Boolean] :dry_run
43075
43123
  # Checks whether you have the required permissions for the action,
@@ -43102,8 +43150,8 @@ module Aws::EC2
43102
43150
 
43103
43151
  # Cancels the deprecation of the specified AMI.
43104
43152
  #
43105
- # For more information, see [Deprecate an AMI][1] in the *Amazon EC2
43106
- # User Guide*.
43153
+ # For more information, see [Deprecate an Amazon EC2 AMI][1] in the
43154
+ # *Amazon EC2 User Guide*.
43107
43155
  #
43108
43156
  #
43109
43157
  #
@@ -43150,12 +43198,12 @@ module Aws::EC2
43150
43198
  # deregistration protection, you won’t immediately be able to deregister
43151
43199
  # the AMI.
43152
43200
  #
43153
- # For more information, see [Protect an AMI from deregistration][1] in
43154
- # the *Amazon EC2 User Guide*.
43201
+ # For more information, see [Protect an Amazon EC2 AMI from
43202
+ # deregistration][1] in the *Amazon EC2 User Guide*.
43155
43203
  #
43156
43204
  #
43157
43205
  #
43158
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection
43206
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deregistration-protection.html
43159
43207
  #
43160
43208
  # @option params [required, String] :image_id
43161
43209
  # The ID of the AMI.
@@ -44892,8 +44940,8 @@ module Aws::EC2
44892
44940
  #
44893
44941
  # Only the AMI owner can re-enable a disabled AMI.
44894
44942
  #
44895
- # For more information, see [Disable an AMI][1] in the *Amazon EC2 User
44896
- # Guide*.
44943
+ # For more information, see [Disable an Amazon EC2 AMI][1] in the
44944
+ # *Amazon EC2 User Guide*.
44897
44945
  #
44898
44946
  #
44899
44947
  #
@@ -44948,7 +44996,7 @@ module Aws::EC2
44948
44996
  #
44949
44997
  #
44950
44998
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html
44951
- # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis
44999
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html
44952
45000
  #
44953
45001
  # @option params [required, String] :image_block_public_access_state
44954
45002
  # Specify `block-new-sharing` to enable block public access for AMIs at
@@ -45044,12 +45092,12 @@ module Aws::EC2
45044
45092
  # To allow the AMI to be deregistered, you must first disable
45045
45093
  # deregistration protection using DisableImageDeregistrationProtection.
45046
45094
  #
45047
- # For more information, see [Protect an AMI from deregistration][1] in
45048
- # the *Amazon EC2 User Guide*.
45095
+ # For more information, see [Protect an Amazon EC2 AMI from
45096
+ # deregistration][1] in the *Amazon EC2 User Guide*.
45049
45097
  #
45050
45098
  #
45051
45099
  #
45052
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection
45100
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deregistration-protection.html
45053
45101
  #
45054
45102
  # @option params [required, String] :image_id
45055
45103
  # The ID of the AMI.
@@ -45876,6 +45924,55 @@ module Aws::EC2
45876
45924
  req.send_request(options)
45877
45925
  end
45878
45926
 
45927
+ # Returns the currently negotiated security parameters for an active VPN
45928
+ # tunnel, including IKE version, DH groups, encryption algorithms, and
45929
+ # integrity algorithms.
45930
+ #
45931
+ # @option params [required, String] :vpn_connection_id
45932
+ # The ID of the VPN connection for which to retrieve the active tunnel
45933
+ # status.
45934
+ #
45935
+ # @option params [required, String] :vpn_tunnel_outside_ip_address
45936
+ # The external IP address of the VPN tunnel for which to retrieve the
45937
+ # active status.
45938
+ #
45939
+ # @option params [Boolean] :dry_run
45940
+ # Checks whether you have the required permissions for the action,
45941
+ # without actually making the request.
45942
+ #
45943
+ # @return [Types::GetActiveVpnTunnelStatusResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
45944
+ #
45945
+ # * {Types::GetActiveVpnTunnelStatusResult#active_vpn_tunnel_status #active_vpn_tunnel_status} => Types::ActiveVpnTunnelStatus
45946
+ #
45947
+ # @example Request syntax with placeholder values
45948
+ #
45949
+ # resp = client.get_active_vpn_tunnel_status({
45950
+ # vpn_connection_id: "VpnConnectionId", # required
45951
+ # vpn_tunnel_outside_ip_address: "String", # required
45952
+ # dry_run: false,
45953
+ # })
45954
+ #
45955
+ # @example Response structure
45956
+ #
45957
+ # resp.active_vpn_tunnel_status.phase_1_encryption_algorithm #=> String
45958
+ # resp.active_vpn_tunnel_status.phase_2_encryption_algorithm #=> String
45959
+ # resp.active_vpn_tunnel_status.phase_1_integrity_algorithm #=> String
45960
+ # resp.active_vpn_tunnel_status.phase_2_integrity_algorithm #=> String
45961
+ # resp.active_vpn_tunnel_status.phase_1_dh_group #=> Integer
45962
+ # resp.active_vpn_tunnel_status.phase_2_dh_group #=> Integer
45963
+ # resp.active_vpn_tunnel_status.ike_version #=> String
45964
+ # resp.active_vpn_tunnel_status.provisioning_status #=> String, one of "available", "pending", "failed"
45965
+ # resp.active_vpn_tunnel_status.provisioning_status_reason #=> String
45966
+ #
45967
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetActiveVpnTunnelStatus AWS API Documentation
45968
+ #
45969
+ # @overload get_active_vpn_tunnel_status(params = {})
45970
+ # @param [Hash] params ({})
45971
+ def get_active_vpn_tunnel_status(params = {}, options = {})
45972
+ req = build_request(:get_active_vpn_tunnel_status, params)
45973
+ req.send_request(options)
45974
+ end
45975
+
45879
45976
  # Gets the current state of the Allowed AMIs setting and the list of
45880
45977
  # Allowed AMIs criteria at the account level in the specified Region.
45881
45978
  #
@@ -46765,7 +46862,7 @@ module Aws::EC2
46765
46862
  #
46766
46863
  #
46767
46864
  #
46768
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis
46865
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html
46769
46866
  #
46770
46867
  # @option params [Boolean] :dry_run
46771
46868
  # Checks whether you have the required permissions for the action,
@@ -49990,6 +50087,11 @@ module Aws::EC2
49990
50087
  # customer gateway device. You can specify one of the following
49991
50088
  # versions: `ikev1` or `ikev2`.
49992
50089
  #
50090
+ # @option params [String] :sample_type
50091
+ # The type of sample configuration to generate. Valid values are
50092
+ # "compatibility" (includes IKEv1) or "recommended" (throws
50093
+ # UnsupportedOperationException for IKEv1).
50094
+ #
49993
50095
  # @option params [Boolean] :dry_run
49994
50096
  # Checks whether you have the required permissions for the action,
49995
50097
  # without actually making the request, and provides an error response.
@@ -50006,6 +50108,7 @@ module Aws::EC2
50006
50108
  # vpn_connection_id: "VpnConnectionId", # required
50007
50109
  # vpn_connection_device_type_id: "VpnConnectionDeviceTypeId", # required
50008
50110
  # internet_key_exchange_version: "String",
50111
+ # sample_type: "String",
50009
50112
  # dry_run: false,
50010
50113
  # })
50011
50114
  #
@@ -54294,6 +54397,9 @@ module Aws::EC2
54294
54397
  # interface. This option can be enabled for any network interface but
54295
54398
  # will only apply to the primary network interface (eth0).
54296
54399
  #
54400
+ # @option params [Array<String>] :associated_subnet_ids
54401
+ # A list of subnet IDs to associate with the network interface.
54402
+ #
54297
54403
  # @option params [Boolean] :dry_run
54298
54404
  # Checks whether you have the required permissions for the action,
54299
54405
  # without actually making the request, and provides an error response.
@@ -54390,6 +54496,7 @@ module Aws::EC2
54390
54496
  # udp_timeout: 1,
54391
54497
  # },
54392
54498
  # associate_public_ip_address: false,
54499
+ # associated_subnet_ids: ["SubnetId"],
54393
54500
  # dry_run: false,
54394
54501
  # network_interface_id: "NetworkInterfaceId", # required
54395
54502
  # description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
@@ -57453,6 +57560,7 @@ module Aws::EC2
57453
57560
  # resp.vpn_connection.vgw_telemetry[0].status #=> String, one of "UP", "DOWN"
57454
57561
  # resp.vpn_connection.vgw_telemetry[0].status_message #=> String
57455
57562
  # resp.vpn_connection.vgw_telemetry[0].certificate_arn #=> String
57563
+ # resp.vpn_connection.pre_shared_key_arn #=> String
57456
57564
  # resp.vpn_connection.vpn_connection_id #=> String
57457
57565
  # resp.vpn_connection.state #=> String, one of "pending", "available", "deleting", "deleted"
57458
57566
  # resp.vpn_connection.customer_gateway_configuration #=> String
@@ -57583,6 +57691,7 @@ module Aws::EC2
57583
57691
  # resp.vpn_connection.vgw_telemetry[0].status #=> String, one of "UP", "DOWN"
57584
57692
  # resp.vpn_connection.vgw_telemetry[0].status_message #=> String
57585
57693
  # resp.vpn_connection.vgw_telemetry[0].certificate_arn #=> String
57694
+ # resp.vpn_connection.pre_shared_key_arn #=> String
57586
57695
  # resp.vpn_connection.vpn_connection_id #=> String
57587
57696
  # resp.vpn_connection.state #=> String, one of "pending", "available", "deleting", "deleted"
57588
57697
  # resp.vpn_connection.customer_gateway_configuration #=> String
@@ -57686,6 +57795,7 @@ module Aws::EC2
57686
57795
  # resp.vpn_connection.vgw_telemetry[0].status #=> String, one of "UP", "DOWN"
57687
57796
  # resp.vpn_connection.vgw_telemetry[0].status_message #=> String
57688
57797
  # resp.vpn_connection.vgw_telemetry[0].certificate_arn #=> String
57798
+ # resp.vpn_connection.pre_shared_key_arn #=> String
57689
57799
  # resp.vpn_connection.vpn_connection_id #=> String
57690
57800
  # resp.vpn_connection.state #=> String, one of "pending", "available", "deleting", "deleted"
57691
57801
  # resp.vpn_connection.customer_gateway_configuration #=> String
@@ -57734,6 +57844,11 @@ module Aws::EC2
57734
57844
  #
57735
57845
  # Valid values: `True` \| `False`
57736
57846
  #
57847
+ # @option params [String] :pre_shared_key_storage
57848
+ # Specifies the storage mode for the pre-shared key (PSK). Valid values
57849
+ # are `Standard` (stored in Site-to-Site VPN service) or
57850
+ # `SecretsManager` (stored in Amazon Web Services Secrets Manager).
57851
+ #
57737
57852
  # @return [Types::ModifyVpnTunnelOptionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
57738
57853
  #
57739
57854
  # * {Types::ModifyVpnTunnelOptionsResult#vpn_connection #vpn_connection} => Types::VpnConnection
@@ -57801,6 +57916,7 @@ module Aws::EC2
57801
57916
  # },
57802
57917
  # dry_run: false,
57803
57918
  # skip_tunnel_replacement: false,
57919
+ # pre_shared_key_storage: "String",
57804
57920
  # })
57805
57921
  #
57806
57922
  # @example Response structure
@@ -57864,6 +57980,7 @@ module Aws::EC2
57864
57980
  # resp.vpn_connection.vgw_telemetry[0].status #=> String, one of "UP", "DOWN"
57865
57981
  # resp.vpn_connection.vgw_telemetry[0].status_message #=> String
57866
57982
  # resp.vpn_connection.vgw_telemetry[0].certificate_arn #=> String
57983
+ # resp.vpn_connection.pre_shared_key_arn #=> String
57867
57984
  # resp.vpn_connection.vpn_connection_id #=> String
57868
57985
  # resp.vpn_connection.state #=> String, one of "pending", "available", "deleting", "deleted"
57869
57986
  # resp.vpn_connection.customer_gateway_configuration #=> String
@@ -59024,8 +59141,7 @@ module Aws::EC2
59024
59141
  # instance launched from the AMI is encrypted.
59025
59142
  #
59026
59143
  # For more information, see [Create an AMI from a snapshot][1] and [Use
59027
- # encryption with Amazon EBS-backed AMIs][3] in the *Amazon EC2 User
59028
- # Guide*.
59144
+ # encryption with EBS-backed AMIs][3] in the *Amazon EC2 User Guide*.
59029
59145
  #
59030
59146
  # **Amazon Web Services Marketplace product codes**
59031
59147
  #
@@ -59067,7 +59183,7 @@ module Aws::EC2
59067
59183
  # The full path to your AMI manifest in Amazon S3 storage. The specified
59068
59184
  # bucket must have the `aws-exec-read` canned access control list (ACL)
59069
59185
  # to ensure that it can be accessed by Amazon EC2. For more information,
59070
- # see [Canned ACLs][1] in the *Amazon S3 Service Developer Guide*.
59186
+ # see [Canned ACL][1] in the *Amazon S3 Service Developer Guide*.
59071
59187
  #
59072
59188
  #
59073
59189
  #
@@ -59081,8 +59197,9 @@ module Aws::EC2
59081
59197
  # you can publish AMIs that include billable software and list them on
59082
59198
  # the Amazon Web Services Marketplace. You must first register as a
59083
59199
  # seller on the Amazon Web Services Marketplace. For more information,
59084
- # see [Getting started as a seller][1] and [AMI-based products][2] in
59085
- # the *Amazon Web Services Marketplace Seller Guide*.
59200
+ # see [Getting started as an Amazon Web Services Marketplace seller][1]
59201
+ # and [AMI-based products in Amazon Web Services Marketplace][2] in the
59202
+ # *Amazon Web Services Marketplace Seller Guide*.
59086
59203
  #
59087
59204
  #
59088
59205
  #
@@ -59098,8 +59215,8 @@ module Aws::EC2
59098
59215
  #
59099
59216
  # </note>
59100
59217
  #
59101
- # For more information, see [Boot modes][1] in the *Amazon EC2 User
59102
- # Guide*.
59218
+ # For more information, see [Instance launch behavior with Amazon EC2
59219
+ # boot modes][1] in the *Amazon EC2 User Guide*.
59103
59220
  #
59104
59221
  #
59105
59222
  #
@@ -59117,8 +59234,8 @@ module Aws::EC2
59117
59234
  # Base64 representation of the non-volatile UEFI variable store. To
59118
59235
  # retrieve the UEFI data, use the [GetInstanceUefiData][1] command. You
59119
59236
  # can inspect and modify the UEFI data by using the [python-uefivars
59120
- # tool][2] on GitHub. For more information, see [UEFI Secure Boot][3] in
59121
- # the *Amazon EC2 User Guide*.
59237
+ # tool][2] on GitHub. For more information, see [UEFI Secure Boot for
59238
+ # Amazon EC2 instances][3] in the *Amazon EC2 User Guide*.
59122
59239
  #
59123
59240
  #
59124
59241
  #
@@ -59195,8 +59312,8 @@ module Aws::EC2
59195
59312
  # If you create an AMI on an Outpost, then all backing snapshots must be
59196
59313
  # on the same Outpost or in the Region of that Outpost. AMIs on an
59197
59314
  # Outpost that include local snapshots can be used to launch instances
59198
- # on the same Outpost only. For more information, [Amazon EBS local
59199
- # snapshots on Outposts][1] in the *Amazon EBS User Guide*.
59315
+ # on the same Outpost only. For more information, [Create AMIs from
59316
+ # local snapshots][1] in the *Amazon EBS User Guide*.
59200
59317
  #
59201
59318
  #
59202
59319
  #
@@ -61875,7 +61992,8 @@ module Aws::EC2
61875
61992
  end
61876
61993
 
61877
61994
  # Restores an AMI from the Recycle Bin. For more information, see
61878
- # [Recycle Bin][1] in the *Amazon EC2 User Guide*.
61995
+ # [Recover deleted Amazon EBS snapshots and EBS-back AMIs with Recycle
61996
+ # Bin][1] in the *Amazon EC2 User Guide*.
61879
61997
  #
61880
61998
  #
61881
61999
  #
@@ -65975,7 +66093,7 @@ module Aws::EC2
65975
66093
  tracer: tracer
65976
66094
  )
65977
66095
  context[:gem_name] = 'aws-sdk-ec2'
65978
- context[:gem_version] = '1.527.0'
66096
+ context[:gem_version] = '1.531.0'
65979
66097
  Seahorse::Client::Request.new(handlers, context)
65980
66098
  end
65981
66099