@aws-sdk/client-ec2 3.817.0 → 3.819.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.
Files changed (95) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +309 -135
  3. package/dist-es/EC2.js +2 -0
  4. package/dist-es/commands/DescribeVpnConnectionsCommand.js +1 -1
  5. package/dist-es/commands/GetActiveVpnTunnelStatusCommand.js +22 -0
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/models_0.js +5 -0
  8. package/dist-es/models/models_3.js +7 -0
  9. package/dist-es/models/models_5.js +0 -7
  10. package/dist-es/models/models_6.js +7 -0
  11. package/dist-es/protocols/Aws_ec2.js +196 -53
  12. package/dist-types/EC2.d.ts +7 -0
  13. package/dist-types/EC2Client.d.ts +3 -2
  14. package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +1 -1
  15. package/dist-types/commands/CopyFpgaImageCommand.d.ts +1 -1
  16. package/dist-types/commands/CopyImageCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateImageCommand.d.ts +2 -2
  18. package/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +3 -3
  20. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +2 -1
  21. package/dist-types/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +1 -2
  22. package/dist-types/commands/CreateVpnConnectionCommand.d.ts +2 -0
  23. package/dist-types/commands/DeregisterImageCommand.d.ts +19 -6
  24. package/dist-types/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -1
  25. package/dist-types/commands/DescribeClientVpnEndpointsCommand.d.ts +1 -2
  26. package/dist-types/commands/DescribeKeyPairsCommand.d.ts +1 -1
  27. package/dist-types/commands/DescribeLaunchTemplatesCommand.d.ts +1 -2
  28. package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +3 -3
  29. package/dist-types/commands/DescribeVpcsCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeVpnConnectionsCommand.d.ts +2 -1
  31. package/dist-types/commands/DisableImageBlockPublicAccessCommand.d.ts +1 -1
  32. package/dist-types/commands/DisableImageDeprecationCommand.d.ts +1 -1
  33. package/dist-types/commands/DisableImageDeregistrationProtectionCommand.d.ts +2 -2
  34. package/dist-types/commands/EnableImageBlockPublicAccessCommand.d.ts +1 -1
  35. package/dist-types/commands/EnableImageCommand.d.ts +2 -2
  36. package/dist-types/commands/EnableImageDeregistrationProtectionCommand.d.ts +2 -2
  37. package/dist-types/commands/GetActiveVpnTunnelStatusCommand.d.ts +84 -0
  38. package/dist-types/commands/GetImageBlockPublicAccessStateCommand.d.ts +1 -1
  39. package/dist-types/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -1
  40. package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
  41. package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +1 -2
  42. package/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -0
  43. package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +1 -0
  44. package/dist-types/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -0
  45. package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +1 -0
  46. package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +2 -0
  47. package/dist-types/commands/RegisterImageCommand.d.ts +2 -2
  48. package/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -1
  49. package/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
  50. package/dist-types/commands/ReleaseHostsCommand.d.ts +1 -1
  51. package/dist-types/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  52. package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +3 -2
  53. package/dist-types/commands/index.d.ts +1 -0
  54. package/dist-types/models/models_0.d.ts +64 -48
  55. package/dist-types/models/models_1.d.ts +53 -32
  56. package/dist-types/models/models_2.d.ts +29 -58
  57. package/dist-types/models/models_3.d.ts +150 -151
  58. package/dist-types/models/models_4.d.ts +161 -203
  59. package/dist-types/models/models_5.d.ts +195 -226
  60. package/dist-types/models/models_6.d.ts +254 -149
  61. package/dist-types/models/models_7.d.ts +168 -114
  62. package/dist-types/models/models_8.d.ts +107 -5
  63. package/dist-types/protocols/Aws_ec2.d.ts +9 -0
  64. package/dist-types/ts3.4/EC2.d.ts +17 -0
  65. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  66. package/dist-types/ts3.4/commands/CopyFpgaImageCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +2 -4
  68. package/dist-types/ts3.4/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +4 -2
  69. package/dist-types/ts3.4/commands/DeregisterImageCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/DescribeClientVpnEndpointsCommand.d.ts +4 -2
  72. package/dist-types/ts3.4/commands/DescribeKeyPairsCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/DescribeLaunchTemplatesCommand.d.ts +4 -2
  74. package/dist-types/ts3.4/commands/DescribeVpcsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/DescribeVpnConnectionsCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/GetActiveVpnTunnelStatusCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +4 -2
  80. package/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -4
  81. package/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/ReleaseHostsCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +18 -11
  86. package/dist-types/ts3.4/models/models_1.d.ts +11 -7
  87. package/dist-types/ts3.4/models/models_2.d.ts +7 -14
  88. package/dist-types/ts3.4/models/models_3.d.ts +33 -32
  89. package/dist-types/ts3.4/models/models_4.d.ts +33 -29
  90. package/dist-types/ts3.4/models/models_5.d.ts +29 -25
  91. package/dist-types/ts3.4/models/models_6.d.ts +33 -36
  92. package/dist-types/ts3.4/models/models_7.d.ts +40 -26
  93. package/dist-types/ts3.4/models/models_8.d.ts +29 -2
  94. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
  95. package/package.json +1 -1
@@ -1,6 +1,63 @@
1
1
  import { AccountAttribute, AccountAttributeName, Address, AddressAttribute, AddressAttributeName, AddressTransfer, BundleTask, ByoipCidr, CapacityReservationFleetState, ClientVpnAuthorizationRuleStatus, InstanceEventWindowState, Tag, TagSpecification, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem, VerifiedAccessInstance, VerifiedAccessTrustProvider, VpcAttachment, VpcPeeringConnection } from "./models_0";
2
2
  import { CapacityReservation, CapacityReservationTenancy, CarrierGateway, ClientVpnEndpointStatus, ClientVpnRouteStatus, CoipCidr, CoipPool, Ec2InstanceConnectEndpoint, FleetCapacityReservation, FleetCapacityReservationTenancy, FleetInstanceMatchCriteria, GatewayType, Ipam, IpamExternalResourceVerificationToken, IpamPool, IpamResourceDiscovery, IpamScope, LaunchTemplate } from "./models_1";
3
- import { GroupIdentifier, LocalGatewayRoute, LocalGatewayRouteTable, LocalGatewayRouteTableVirtualInterfaceGroupAssociation, LocalGatewayRouteTableVpcAssociation, LocalGatewayVirtualInterface, LocalGatewayVirtualInterfaceGroup, ManagedPrefixList, RouteServer, RouteServerEndpoint, RouteServerPeer, SubnetCidrReservation, TransitGateway, TransitGatewayConnect, TransitGatewayConnectPeer, TransitGatewayMulticastDomain, TransitGatewayPolicyTable, TransitGatewayPrefixListReference, TransitGatewayRoute, TransitGatewayRouteTable, TransitGatewayRouteTableAnnouncement, VerifiedAccessEndpoint, VerifiedAccessGroup, VpcBlockPublicAccessExclusion } from "./models_2";
3
+ import { GroupIdentifier, LocalGatewayRoute, LocalGatewayRouteTable, LocalGatewayRouteTableVirtualInterfaceGroupAssociation, LocalGatewayRouteTableVpcAssociation, LocalGatewayVirtualInterface, LocalGatewayVirtualInterfaceGroup, ManagedPrefixList, RouteServer, RouteServerEndpoint, RouteServerPeer, SubnetCidrReservation, TransitGateway, TransitGatewayConnect, TransitGatewayConnectPeer, TransitGatewayMulticastDomain, TransitGatewayPolicyTable, TransitGatewayPrefixListReference, TransitGatewayRoute, TransitGatewayRouteTable, TransitGatewayRouteTableAnnouncement, VerifiedAccessEndpoint, VerifiedAccessGroup, VpcBlockPublicAccessExclusion, VpcEndpoint } from "./models_2";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface CreateVpcEndpointResult {
8
+ /**
9
+ * <p>Information about the endpoint.</p>
10
+ * @public
11
+ */
12
+ VpcEndpoint?: VpcEndpoint | undefined;
13
+ /**
14
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
15
+ * request.</p>
16
+ * @public
17
+ */
18
+ ClientToken?: string | undefined;
19
+ }
20
+ /**
21
+ * @public
22
+ */
23
+ export interface CreateVpcEndpointConnectionNotificationRequest {
24
+ /**
25
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
26
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
27
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
28
+ * @public
29
+ */
30
+ DryRun?: boolean | undefined;
31
+ /**
32
+ * <p>The ID of the endpoint service.</p>
33
+ * @public
34
+ */
35
+ ServiceId?: string | undefined;
36
+ /**
37
+ * <p>The ID of the endpoint.</p>
38
+ * @public
39
+ */
40
+ VpcEndpointId?: string | undefined;
41
+ /**
42
+ * <p>The ARN of the SNS topic for the notifications.</p>
43
+ * @public
44
+ */
45
+ ConnectionNotificationArn: string | undefined;
46
+ /**
47
+ * <p>The endpoint events for which to receive notifications. Valid values are
48
+ * <code>Accept</code>, <code>Connect</code>, <code>Delete</code>, and
49
+ * <code>Reject</code>.</p>
50
+ * @public
51
+ */
52
+ ConnectionEvents: string[] | undefined;
53
+ /**
54
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
55
+ * request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">How to ensure
56
+ * idempotency</a>.</p>
57
+ * @public
58
+ */
59
+ ClientToken?: string | undefined;
60
+ }
4
61
  /**
5
62
  * @public
6
63
  * @enum
@@ -881,6 +938,11 @@ export interface CreateVpnConnectionRequest {
881
938
  * @public
882
939
  */
883
940
  TagSpecifications?: TagSpecification[] | undefined;
941
+ /**
942
+ * <p>Specifies the storage mode for the pre-shared key (PSK). Valid values are <code>Standard</code>" (stored in the Site-to-Site VPN service) or <code>SecretsManager</code> (stored in Amazon Web Services Secrets Manager).</p>
943
+ * @public
944
+ */
945
+ PreSharedKeyStorage?: string | undefined;
884
946
  /**
885
947
  * <p>Checks whether you have the required permissions for the action, without actually
886
948
  * making the request, and provides an error response. If you have the required
@@ -1348,6 +1410,11 @@ export interface VpnConnection {
1348
1410
  * @public
1349
1411
  */
1350
1412
  VgwTelemetry?: VgwTelemetry[] | undefined;
1413
+ /**
1414
+ * <p>The Amazon Resource Name (ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection.</p>
1415
+ * @public
1416
+ */
1417
+ PreSharedKeyArn?: string | undefined;
1351
1418
  /**
1352
1419
  * <p>The ID of the VPN connection.</p>
1353
1420
  * @public
@@ -4248,6 +4315,16 @@ export interface DeregisterImageRequest {
4248
4315
  * @public
4249
4316
  */
4250
4317
  ImageId: string | undefined;
4318
+ /**
4319
+ * <p>Specifies whether to delete the snapshots associated with the AMI during
4320
+ * deregistration.</p>
4321
+ * <note>
4322
+ * <p>If a snapshot is associated with multiple AMIs, it is not deleted, regardless of this setting.</p>
4323
+ * </note>
4324
+ * <p>Default: The snapshots are not deleted.</p>
4325
+ * @public
4326
+ */
4327
+ DeleteAssociatedSnapshots?: boolean | undefined;
4251
4328
  /**
4252
4329
  * <p>Checks whether you have the required permissions for the action, without actually making the request,
4253
4330
  * and provides an error response. If you have the required permissions, the error response is
@@ -4256,10 +4333,82 @@ export interface DeregisterImageRequest {
4256
4333
  */
4257
4334
  DryRun?: boolean | undefined;
4258
4335
  }
4336
+ /**
4337
+ * @public
4338
+ * @enum
4339
+ */
4340
+ export declare const SnapshotReturnCodes: {
4341
+ readonly ERROR_CODE_CLIENT_ERROR: "client-error";
4342
+ readonly ERROR_CODE_INTERNAL_ERROR: "internal-error";
4343
+ readonly ERROR_MISSING_PERMISSIONS: "missing-permissions";
4344
+ readonly SUCCESS: "success";
4345
+ readonly WARN_SKIPPED: "skipped";
4346
+ };
4347
+ /**
4348
+ * @public
4349
+ */
4350
+ export type SnapshotReturnCodes = (typeof SnapshotReturnCodes)[keyof typeof SnapshotReturnCodes];
4351
+ /**
4352
+ * <p>The snapshot ID and its deletion result code.</p>
4353
+ * @public
4354
+ */
4355
+ export interface DeleteSnapshotReturnCode {
4356
+ /**
4357
+ * <p>The ID of the snapshot.</p>
4358
+ * @public
4359
+ */
4360
+ SnapshotId?: string | undefined;
4361
+ /**
4362
+ * <p>The result code from the snapshot deletion attempt. Possible values:</p>
4363
+ * <ul>
4364
+ * <li>
4365
+ * <p>
4366
+ * <code>success</code> - The snapshot was successfully deleted.</p>
4367
+ * </li>
4368
+ * <li>
4369
+ * <p>
4370
+ * <code>skipped</code> - The snapshot was not deleted because it's associated with other
4371
+ * AMIs.</p>
4372
+ * </li>
4373
+ * <li>
4374
+ * <p>
4375
+ * <code>missing-permissions</code> - The snapshot was not deleted because the role lacks
4376
+ * <code>DeleteSnapshot</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/security_iam_service-with-iam.html">How
4377
+ * Amazon EBS works with IAM</a>.</p>
4378
+ * </li>
4379
+ * <li>
4380
+ * <p>
4381
+ * <code>internal-error</code> - The snapshot was not deleted due to a server
4382
+ * error.</p>
4383
+ * </li>
4384
+ * <li>
4385
+ * <p>
4386
+ * <code>client-error</code> - The snapshot was not deleted due to a client configuration
4387
+ * error.</p>
4388
+ * </li>
4389
+ * </ul>
4390
+ * <p>For details about an error, check the <code>DeleteSnapshot</code> event in the CloudTrail
4391
+ * event history. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/tutorial-event-history.html">View event history</a>
4392
+ * in the <i>Amazon Web Services CloudTrail User Guide</i>.</p>
4393
+ * @public
4394
+ */
4395
+ ReturnCode?: SnapshotReturnCodes | undefined;
4396
+ }
4259
4397
  /**
4260
4398
  * @public
4261
4399
  */
4262
4400
  export interface DeregisterImageResult {
4401
+ /**
4402
+ * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
4403
+ * @public
4404
+ */
4405
+ Return?: boolean | undefined;
4406
+ /**
4407
+ * <p>The deletion result for each snapshot associated with the AMI, including the snapshot ID
4408
+ * and its success or error code.</p>
4409
+ * @public
4410
+ */
4411
+ DeleteSnapshotResults?: DeleteSnapshotReturnCode[] | undefined;
4263
4412
  }
4264
4413
  /**
4265
4414
  * <p>Information about the tag keys to deregister for the current Region. You can either
@@ -6532,156 +6681,6 @@ export declare const ClientVpnConnectionStatusCode: {
6532
6681
  * @public
6533
6682
  */
6534
6683
  export type ClientVpnConnectionStatusCode = (typeof ClientVpnConnectionStatusCode)[keyof typeof ClientVpnConnectionStatusCode];
6535
- /**
6536
- * <p>Describes the status of a client connection.</p>
6537
- * @public
6538
- */
6539
- export interface ClientVpnConnectionStatus {
6540
- /**
6541
- * <p>The state of the client connection.</p>
6542
- * @public
6543
- */
6544
- Code?: ClientVpnConnectionStatusCode | undefined;
6545
- /**
6546
- * <p>A message about the status of the client connection, if applicable.</p>
6547
- * @public
6548
- */
6549
- Message?: string | undefined;
6550
- }
6551
- /**
6552
- * <p>Describes a client connection.</p>
6553
- * @public
6554
- */
6555
- export interface ClientVpnConnection {
6556
- /**
6557
- * <p>The ID of the Client VPN endpoint to which the client is connected.</p>
6558
- * @public
6559
- */
6560
- ClientVpnEndpointId?: string | undefined;
6561
- /**
6562
- * <p>The current date and time.</p>
6563
- * @public
6564
- */
6565
- Timestamp?: string | undefined;
6566
- /**
6567
- * <p>The ID of the client connection.</p>
6568
- * @public
6569
- */
6570
- ConnectionId?: string | undefined;
6571
- /**
6572
- * <p>The username of the client who established the client connection. This information is only provided
6573
- * if Active Directory client authentication is used.</p>
6574
- * @public
6575
- */
6576
- Username?: string | undefined;
6577
- /**
6578
- * <p>The date and time the client connection was established.</p>
6579
- * @public
6580
- */
6581
- ConnectionEstablishedTime?: string | undefined;
6582
- /**
6583
- * <p>The number of bytes sent by the client.</p>
6584
- * @public
6585
- */
6586
- IngressBytes?: string | undefined;
6587
- /**
6588
- * <p>The number of bytes received by the client.</p>
6589
- * @public
6590
- */
6591
- EgressBytes?: string | undefined;
6592
- /**
6593
- * <p>The number of packets sent by the client.</p>
6594
- * @public
6595
- */
6596
- IngressPackets?: string | undefined;
6597
- /**
6598
- * <p>The number of packets received by the client.</p>
6599
- * @public
6600
- */
6601
- EgressPackets?: string | undefined;
6602
- /**
6603
- * <p>The IP address of the client.</p>
6604
- * @public
6605
- */
6606
- ClientIp?: string | undefined;
6607
- /**
6608
- * <p>The common name associated with the client. This is either the name of the client certificate,
6609
- * or the Active Directory user name.</p>
6610
- * @public
6611
- */
6612
- CommonName?: string | undefined;
6613
- /**
6614
- * <p>The current state of the client connection.</p>
6615
- * @public
6616
- */
6617
- Status?: ClientVpnConnectionStatus | undefined;
6618
- /**
6619
- * <p>The date and time the client connection was terminated.</p>
6620
- * @public
6621
- */
6622
- ConnectionEndTime?: string | undefined;
6623
- /**
6624
- * <p>The statuses returned by the client connect handler for posture compliance, if applicable.</p>
6625
- * @public
6626
- */
6627
- PostureComplianceStatuses?: string[] | undefined;
6628
- }
6629
- /**
6630
- * @public
6631
- */
6632
- export interface DescribeClientVpnConnectionsResult {
6633
- /**
6634
- * <p>Information about the active and terminated client connections.</p>
6635
- * @public
6636
- */
6637
- Connections?: ClientVpnConnection[] | undefined;
6638
- /**
6639
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
6640
- * @public
6641
- */
6642
- NextToken?: string | undefined;
6643
- }
6644
- /**
6645
- * @public
6646
- */
6647
- export interface DescribeClientVpnEndpointsRequest {
6648
- /**
6649
- * <p>The ID of the Client VPN endpoint.</p>
6650
- * @public
6651
- */
6652
- ClientVpnEndpointIds?: string[] | undefined;
6653
- /**
6654
- * <p>The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the nextToken value.</p>
6655
- * @public
6656
- */
6657
- MaxResults?: number | undefined;
6658
- /**
6659
- * <p>The token to retrieve the next page of results.</p>
6660
- * @public
6661
- */
6662
- NextToken?: string | undefined;
6663
- /**
6664
- * <p>One or more filters. Filter names and values are case-sensitive.</p>
6665
- * <ul>
6666
- * <li>
6667
- * <p>
6668
- * <code>endpoint-id</code> - The ID of the Client VPN endpoint.</p>
6669
- * </li>
6670
- * <li>
6671
- * <p>
6672
- * <code>transport-protocol</code> - The transport protocol (<code>tcp</code> |
6673
- * <code>udp</code>).</p>
6674
- * </li>
6675
- * </ul>
6676
- * @public
6677
- */
6678
- Filters?: Filter[] | undefined;
6679
- /**
6680
- * <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
6681
- * @public
6682
- */
6683
- DryRun?: boolean | undefined;
6684
- }
6685
6684
  /**
6686
6685
  * @internal
6687
6686
  */