@aws-sdk/client-ec2 3.261.0 → 3.264.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 (134) hide show
  1. package/dist-cjs/EC2.js +60 -0
  2. package/dist-cjs/commands/AssignPrivateNatGatewayAddressCommand.js +46 -0
  3. package/dist-cjs/commands/AssociateNatGatewayAddressCommand.js +46 -0
  4. package/dist-cjs/commands/CreateClientVpnEndpointCommand.js +3 -3
  5. package/dist-cjs/commands/CreateClientVpnRouteCommand.js +1 -2
  6. package/dist-cjs/commands/DeleteTrafficMirrorTargetCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteTransitGatewayCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteTransitGatewayConnectCommand.js +1 -2
  9. package/dist-cjs/commands/DescribeInstanceStatusCommand.js +1 -2
  10. package/dist-cjs/commands/DescribeInstancesCommand.js +2 -1
  11. package/dist-cjs/commands/DescribeVolumeStatusCommand.js +2 -1
  12. package/dist-cjs/commands/DisassociateNatGatewayAddressCommand.js +46 -0
  13. package/dist-cjs/commands/ModifyAvailabilityZoneGroupCommand.js +3 -3
  14. package/dist-cjs/commands/ModifyCapacityReservationCommand.js +3 -3
  15. package/dist-cjs/commands/ModifyCapacityReservationFleetCommand.js +3 -3
  16. package/dist-cjs/commands/RunInstancesCommand.js +2 -2
  17. package/dist-cjs/commands/UnassignIpv6AddressesCommand.js +2 -1
  18. package/dist-cjs/commands/UnassignPrivateIpAddressesCommand.js +2 -2
  19. package/dist-cjs/commands/UnassignPrivateNatGatewayAddressCommand.js +46 -0
  20. package/dist-cjs/commands/UnmonitorInstancesCommand.js +3 -3
  21. package/dist-cjs/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.js +3 -3
  22. package/dist-cjs/commands/index.js +4 -0
  23. package/dist-cjs/models/models_0.js +37 -34
  24. package/dist-cjs/models/models_1.js +34 -33
  25. package/dist-cjs/models/models_2.js +29 -26
  26. package/dist-cjs/models/models_3.js +26 -30
  27. package/dist-cjs/models/models_4.js +30 -30
  28. package/dist-cjs/models/models_5.js +38 -34
  29. package/dist-cjs/models/models_6.js +34 -34
  30. package/dist-cjs/models/models_7.js +37 -1
  31. package/dist-cjs/protocols/Aws_ec2.js +551 -161
  32. package/dist-es/EC2.js +60 -0
  33. package/dist-es/commands/AssignPrivateNatGatewayAddressCommand.js +42 -0
  34. package/dist-es/commands/AssociateNatGatewayAddressCommand.js +42 -0
  35. package/dist-es/commands/CreateClientVpnEndpointCommand.js +1 -1
  36. package/dist-es/commands/CreateClientVpnRouteCommand.js +1 -2
  37. package/dist-es/commands/DeleteTrafficMirrorTargetCommand.js +1 -1
  38. package/dist-es/commands/DeleteTransitGatewayCommand.js +1 -1
  39. package/dist-es/commands/DeleteTransitGatewayConnectCommand.js +1 -2
  40. package/dist-es/commands/DescribeInstanceStatusCommand.js +1 -2
  41. package/dist-es/commands/DescribeInstancesCommand.js +2 -1
  42. package/dist-es/commands/DescribeVolumeStatusCommand.js +2 -1
  43. package/dist-es/commands/DisassociateNatGatewayAddressCommand.js +42 -0
  44. package/dist-es/commands/ModifyAvailabilityZoneGroupCommand.js +1 -1
  45. package/dist-es/commands/ModifyCapacityReservationCommand.js +1 -1
  46. package/dist-es/commands/ModifyCapacityReservationFleetCommand.js +1 -1
  47. package/dist-es/commands/RunInstancesCommand.js +1 -1
  48. package/dist-es/commands/UnassignIpv6AddressesCommand.js +2 -1
  49. package/dist-es/commands/UnassignPrivateIpAddressesCommand.js +1 -1
  50. package/dist-es/commands/UnassignPrivateNatGatewayAddressCommand.js +42 -0
  51. package/dist-es/commands/UnmonitorInstancesCommand.js +1 -1
  52. package/dist-es/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.js +1 -1
  53. package/dist-es/commands/index.js +4 -0
  54. package/dist-es/models/models_0.js +26 -24
  55. package/dist-es/models/models_1.js +24 -23
  56. package/dist-es/models/models_2.js +20 -15
  57. package/dist-es/models/models_3.js +15 -20
  58. package/dist-es/models/models_4.js +20 -21
  59. package/dist-es/models/models_5.js +27 -21
  60. package/dist-es/models/models_6.js +21 -21
  61. package/dist-es/models/models_7.js +27 -0
  62. package/dist-es/protocols/Aws_ec2.js +520 -138
  63. package/dist-types/EC2.d.ts +50 -7
  64. package/dist-types/EC2Client.d.ts +6 -2
  65. package/dist-types/commands/AssignPrivateNatGatewayAddressCommand.d.ts +37 -0
  66. package/dist-types/commands/AssociateIpamResourceDiscoveryCommand.d.ts +1 -1
  67. package/dist-types/commands/AssociateNatGatewayAddressCommand.d.ts +38 -0
  68. package/dist-types/commands/CreateClientVpnEndpointCommand.d.ts +1 -1
  69. package/dist-types/commands/CreateClientVpnRouteCommand.d.ts +1 -2
  70. package/dist-types/commands/CreateIpamResourceDiscoveryCommand.d.ts +1 -1
  71. package/dist-types/commands/DeleteIpamResourceDiscoveryCommand.d.ts +1 -1
  72. package/dist-types/commands/DeleteTrafficMirrorTargetCommand.d.ts +1 -1
  73. package/dist-types/commands/DeleteTransitGatewayCommand.d.ts +1 -1
  74. package/dist-types/commands/DeleteTransitGatewayConnectCommand.d.ts +1 -2
  75. package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +1 -2
  76. package/dist-types/commands/DescribeInstancesCommand.d.ts +2 -1
  77. package/dist-types/commands/DescribeIpamResourceDiscoveriesCommand.d.ts +1 -1
  78. package/dist-types/commands/DescribeVolumeStatusCommand.d.ts +2 -1
  79. package/dist-types/commands/DisassociateIpamResourceDiscoveryCommand.d.ts +1 -1
  80. package/dist-types/commands/DisassociateNatGatewayAddressCommand.d.ts +43 -0
  81. package/dist-types/commands/GetIpamResourceCidrsCommand.d.ts +1 -1
  82. package/dist-types/commands/ModifyAvailabilityZoneGroupCommand.d.ts +1 -1
  83. package/dist-types/commands/ModifyCapacityReservationCommand.d.ts +1 -1
  84. package/dist-types/commands/ModifyCapacityReservationFleetCommand.d.ts +1 -1
  85. package/dist-types/commands/ModifyIpamResourceDiscoveryCommand.d.ts +1 -1
  86. package/dist-types/commands/RunInstancesCommand.d.ts +1 -1
  87. package/dist-types/commands/UnassignIpv6AddressesCommand.d.ts +2 -1
  88. package/dist-types/commands/UnassignPrivateIpAddressesCommand.d.ts +1 -1
  89. package/dist-types/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +45 -0
  90. package/dist-types/commands/UnmonitorInstancesCommand.d.ts +1 -1
  91. package/dist-types/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.d.ts +1 -1
  92. package/dist-types/commands/index.d.ts +4 -0
  93. package/dist-types/models/models_0.d.ts +134 -234
  94. package/dist-types/models/models_1.d.ts +236 -166
  95. package/dist-types/models/models_2.d.ts +154 -71
  96. package/dist-types/models/models_3.d.ts +68 -205
  97. package/dist-types/models/models_4.d.ts +208 -81
  98. package/dist-types/models/models_5.d.ts +124 -177
  99. package/dist-types/models/models_6.d.ts +181 -136
  100. package/dist-types/models/models_7.d.ts +167 -2
  101. package/dist-types/protocols/Aws_ec2.d.ts +12 -0
  102. package/dist-types/ts3.4/EC2.d.ts +68 -0
  103. package/dist-types/ts3.4/EC2Client.d.ts +24 -0
  104. package/dist-types/ts3.4/commands/AssignPrivateNatGatewayAddressCommand.d.ts +41 -0
  105. package/dist-types/ts3.4/commands/AssociateNatGatewayAddressCommand.d.ts +41 -0
  106. package/dist-types/ts3.4/commands/CreateClientVpnEndpointCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/CreateClientVpnRouteCommand.d.ts +4 -2
  108. package/dist-types/ts3.4/commands/DeleteTrafficMirrorTargetCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/DeleteTransitGatewayCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/DeleteTransitGatewayConnectCommand.d.ts +4 -2
  111. package/dist-types/ts3.4/commands/DescribeInstanceStatusCommand.d.ts +4 -2
  112. package/dist-types/ts3.4/commands/DescribeInstancesCommand.d.ts +2 -4
  113. package/dist-types/ts3.4/commands/DescribeVolumeStatusCommand.d.ts +2 -4
  114. package/dist-types/ts3.4/commands/DisassociateNatGatewayAddressCommand.d.ts +41 -0
  115. package/dist-types/ts3.4/commands/ModifyAvailabilityZoneGroupCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/ModifyCapacityReservationCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/ModifyCapacityReservationFleetCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/RunInstancesCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/UnassignIpv6AddressesCommand.d.ts +2 -4
  120. package/dist-types/ts3.4/commands/UnassignPrivateIpAddressesCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +41 -0
  122. package/dist-types/ts3.4/commands/UnmonitorInstancesCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  125. package/dist-types/ts3.4/models/models_0.d.ts +59 -65
  126. package/dist-types/ts3.4/models/models_1.d.ts +68 -53
  127. package/dist-types/ts3.4/models/models_2.d.ts +47 -36
  128. package/dist-types/ts3.4/models/models_3.d.ts +36 -46
  129. package/dist-types/ts3.4/models/models_4.d.ts +46 -38
  130. package/dist-types/ts3.4/models/models_5.d.ts +68 -64
  131. package/dist-types/ts3.4/models/models_6.d.ts +66 -62
  132. package/dist-types/ts3.4/models/models_7.d.ts +70 -2
  133. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +48 -0
  134. package/package.json +5 -5
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { DescribeInstanceStatusRequest } from "../models/models_3";
6
- import { DescribeInstanceStatusResult } from "../models/models_4";
5
+ import { DescribeInstanceStatusRequest, DescribeInstanceStatusResult } from "../models/models_4";
7
6
  export interface DescribeInstanceStatusCommandInput extends DescribeInstanceStatusRequest {
8
7
  }
9
8
  export interface DescribeInstanceStatusCommandOutput extends DescribeInstanceStatusResult, __MetadataBearer {
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { DescribeInstancesRequest, DescribeInstancesResult } from "../models/models_3";
5
+ import { DescribeInstancesRequest } from "../models/models_3";
6
+ import { DescribeInstancesResult } from "../models/models_4";
6
7
  export interface DescribeInstancesCommandInput extends DescribeInstancesRequest {
7
8
  }
8
9
  export interface DescribeInstancesCommandOutput extends DescribeInstancesResult, __MetadataBearer {
@@ -8,7 +8,7 @@ export interface DescribeIpamResourceDiscoveriesCommandInput extends DescribeIpa
8
8
  export interface DescribeIpamResourceDiscoveriesCommandOutput extends DescribeIpamResourceDiscoveriesResult, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Describes IPAM resource discoveries. A resource discovery is an IPAM component that enables IPAM Service to manage and monitor resources that belong to the owning account.</p>
11
+ * <p>Describes IPAM resource discoveries. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { DescribeVolumeStatusRequest, DescribeVolumeStatusResult } from "../models/models_4";
5
+ import { DescribeVolumeStatusRequest } from "../models/models_4";
6
+ import { DescribeVolumeStatusResult } from "../models/models_5";
6
7
  export interface DescribeVolumeStatusCommandInput extends DescribeVolumeStatusRequest {
7
8
  }
8
9
  export interface DescribeVolumeStatusCommandOutput extends DescribeVolumeStatusResult, __MetadataBearer {
@@ -8,7 +8,7 @@ export interface DisassociateIpamResourceDiscoveryCommandInput extends Disassoci
8
8
  export interface DisassociateIpamResourceDiscoveryCommandOutput extends DisassociateIpamResourceDiscoveryResult, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Disassociates a resource discovery from an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM Service to manage and monitor resources that belong to the owning account.</p>
11
+ * <p>Disassociates a resource discovery from an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -0,0 +1,43 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
+ import { DisassociateNatGatewayAddressRequest, DisassociateNatGatewayAddressResult } from "../models/models_5";
6
+ export interface DisassociateNatGatewayAddressCommandInput extends DisassociateNatGatewayAddressRequest {
7
+ }
8
+ export interface DisassociateNatGatewayAddressCommandOutput extends DisassociateNatGatewayAddressResult, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. You cannot disassociate your primary EIP. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary">Edit secondary IP address associations</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
12
+ * <p>While disassociating is in progress, you cannot associate/disassociate additional EIPs while the connections are being drained. You are, however, allowed to delete the NAT gateway.</p>
13
+ * <p>An EIP will only be released at the end of MaxDrainDurationSeconds. The EIPs stay
14
+ * associated and support the existing connections but do not support any new connections
15
+ * (new connections are distributed across the remaining associated EIPs). As the existing
16
+ * connections drain out, the EIPs (and the corresponding private IPs mapped to them) get
17
+ * released.</p>
18
+ * @example
19
+ * Use a bare-bones client and the command you need to make an API call.
20
+ * ```javascript
21
+ * import { EC2Client, DisassociateNatGatewayAddressCommand } from "@aws-sdk/client-ec2"; // ES Modules import
22
+ * // const { EC2Client, DisassociateNatGatewayAddressCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
23
+ * const client = new EC2Client(config);
24
+ * const command = new DisassociateNatGatewayAddressCommand(input);
25
+ * const response = await client.send(command);
26
+ * ```
27
+ *
28
+ * @see {@link DisassociateNatGatewayAddressCommandInput} for command's `input` shape.
29
+ * @see {@link DisassociateNatGatewayAddressCommandOutput} for command's `response` shape.
30
+ * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
31
+ *
32
+ */
33
+ export declare class DisassociateNatGatewayAddressCommand extends $Command<DisassociateNatGatewayAddressCommandInput, DisassociateNatGatewayAddressCommandOutput, EC2ClientResolvedConfig> {
34
+ readonly input: DisassociateNatGatewayAddressCommandInput;
35
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
36
+ constructor(input: DisassociateNatGatewayAddressCommandInput);
37
+ /**
38
+ * @internal
39
+ */
40
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DisassociateNatGatewayAddressCommandInput, DisassociateNatGatewayAddressCommandOutput>;
41
+ private serialize;
42
+ private deserialize;
43
+ }
@@ -8,7 +8,7 @@ export interface GetIpamResourceCidrsCommandInput extends GetIpamResourceCidrsRe
8
8
  export interface GetIpamResourceCidrsCommandOutput extends GetIpamResourceCidrsResult, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is associated with more than one resource discovery, the resource CIDRs across all of the resource discoveries is returned. A resource discovery is an IPAM component that enables IPAM Service to manage and monitor resources that belong to the owning account.</p>
11
+ * <p>Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is associated with more than one resource discovery, the resource CIDRs across all of the resource discoveries is returned. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { ModifyAvailabilityZoneGroupRequest, ModifyAvailabilityZoneGroupResult } from "../models/models_5";
5
+ import { ModifyAvailabilityZoneGroupRequest, ModifyAvailabilityZoneGroupResult } from "../models/models_6";
6
6
  export interface ModifyAvailabilityZoneGroupCommandInput extends ModifyAvailabilityZoneGroupRequest {
7
7
  }
8
8
  export interface ModifyAvailabilityZoneGroupCommandOutput extends ModifyAvailabilityZoneGroupResult, __MetadataBearer {
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { ModifyCapacityReservationRequest, ModifyCapacityReservationResult } from "../models/models_5";
5
+ import { ModifyCapacityReservationRequest, ModifyCapacityReservationResult } from "../models/models_6";
6
6
  export interface ModifyCapacityReservationCommandInput extends ModifyCapacityReservationRequest {
7
7
  }
8
8
  export interface ModifyCapacityReservationCommandOutput extends ModifyCapacityReservationResult, __MetadataBearer {
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { ModifyCapacityReservationFleetRequest, ModifyCapacityReservationFleetResult } from "../models/models_5";
5
+ import { ModifyCapacityReservationFleetRequest, ModifyCapacityReservationFleetResult } from "../models/models_6";
6
6
  export interface ModifyCapacityReservationFleetCommandInput extends ModifyCapacityReservationFleetRequest {
7
7
  }
8
8
  export interface ModifyCapacityReservationFleetCommandOutput extends ModifyCapacityReservationFleetResult, __MetadataBearer {
@@ -8,7 +8,7 @@ export interface ModifyIpamResourceDiscoveryCommandInput extends ModifyIpamResou
8
8
  export interface ModifyIpamResourceDiscoveryCommandOutput extends ModifyIpamResourceDiscoveryResult, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Modifies a resource discovery. A resource discovery is an IPAM component that enables IPAM Service to manage and monitor resources that belong to the owning account.</p>
11
+ * <p>Modifies a resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { Reservation } from "../models/models_3";
5
+ import { Reservation } from "../models/models_4";
6
6
  import { RunInstancesRequest } from "../models/models_6";
7
7
  export interface RunInstancesCommandInput extends RunInstancesRequest {
8
8
  }
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { UnassignIpv6AddressesRequest, UnassignIpv6AddressesResult } from "../models/models_6";
5
+ import { UnassignIpv6AddressesRequest } from "../models/models_6";
6
+ import { UnassignIpv6AddressesResult } from "../models/models_7";
6
7
  export interface UnassignIpv6AddressesCommandInput extends UnassignIpv6AddressesRequest {
7
8
  }
8
9
  export interface UnassignIpv6AddressesCommandOutput extends UnassignIpv6AddressesResult, __MetadataBearer {
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { UnassignPrivateIpAddressesRequest } from "../models/models_6";
5
+ import { UnassignPrivateIpAddressesRequest } from "../models/models_7";
6
6
  export interface UnassignPrivateIpAddressesCommandInput extends UnassignPrivateIpAddressesRequest {
7
7
  }
8
8
  export interface UnassignPrivateIpAddressesCommandOutput extends __MetadataBearer {
@@ -0,0 +1,45 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
+ import { UnassignPrivateNatGatewayAddressRequest, UnassignPrivateNatGatewayAddressResult } from "../models/models_7";
6
+ export interface UnassignPrivateNatGatewayAddressCommandInput extends UnassignPrivateNatGatewayAddressRequest {
7
+ }
8
+ export interface UnassignPrivateNatGatewayAddressCommandOutput extends UnassignPrivateNatGatewayAddressResult, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Unassigns secondary private NAT gateway IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary">Edit secondary IP address associations</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
12
+ * <p>While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.</p>
13
+ * <p>A private IP address will only be released at the end of MaxDrainDurationSeconds. The
14
+ * private IP addresses stay associated and support the existing connections but do not
15
+ * support any new connections (new connections are distributed across the remaining
16
+ * assigned private IP address). After the existing connections drain out, the private IP
17
+ * addresses get released. </p>
18
+ * <p></p>
19
+ * <p></p>
20
+ * @example
21
+ * Use a bare-bones client and the command you need to make an API call.
22
+ * ```javascript
23
+ * import { EC2Client, UnassignPrivateNatGatewayAddressCommand } from "@aws-sdk/client-ec2"; // ES Modules import
24
+ * // const { EC2Client, UnassignPrivateNatGatewayAddressCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
25
+ * const client = new EC2Client(config);
26
+ * const command = new UnassignPrivateNatGatewayAddressCommand(input);
27
+ * const response = await client.send(command);
28
+ * ```
29
+ *
30
+ * @see {@link UnassignPrivateNatGatewayAddressCommandInput} for command's `input` shape.
31
+ * @see {@link UnassignPrivateNatGatewayAddressCommandOutput} for command's `response` shape.
32
+ * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
33
+ *
34
+ */
35
+ export declare class UnassignPrivateNatGatewayAddressCommand extends $Command<UnassignPrivateNatGatewayAddressCommandInput, UnassignPrivateNatGatewayAddressCommandOutput, EC2ClientResolvedConfig> {
36
+ readonly input: UnassignPrivateNatGatewayAddressCommandInput;
37
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
38
+ constructor(input: UnassignPrivateNatGatewayAddressCommandInput);
39
+ /**
40
+ * @internal
41
+ */
42
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EC2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UnassignPrivateNatGatewayAddressCommandInput, UnassignPrivateNatGatewayAddressCommandOutput>;
43
+ private serialize;
44
+ private deserialize;
45
+ }
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { UnmonitorInstancesRequest, UnmonitorInstancesResult } from "../models/models_6";
5
+ import { UnmonitorInstancesRequest, UnmonitorInstancesResult } from "../models/models_7";
6
6
  export interface UnmonitorInstancesCommandInput extends UnmonitorInstancesRequest {
7
7
  }
8
8
  export interface UnmonitorInstancesCommandOutput extends UnmonitorInstancesResult, __MetadataBearer {
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
5
- import { UpdateSecurityGroupRuleDescriptionsEgressRequest, UpdateSecurityGroupRuleDescriptionsEgressResult } from "../models/models_6";
5
+ import { UpdateSecurityGroupRuleDescriptionsEgressRequest, UpdateSecurityGroupRuleDescriptionsEgressResult } from "../models/models_7";
6
6
  export interface UpdateSecurityGroupRuleDescriptionsEgressCommandInput extends UpdateSecurityGroupRuleDescriptionsEgressRequest {
7
7
  }
8
8
  export interface UpdateSecurityGroupRuleDescriptionsEgressCommandOutput extends UpdateSecurityGroupRuleDescriptionsEgressResult, __MetadataBearer {
@@ -12,6 +12,7 @@ export * from "./AllocateIpamPoolCidrCommand";
12
12
  export * from "./ApplySecurityGroupsToClientVpnTargetNetworkCommand";
13
13
  export * from "./AssignIpv6AddressesCommand";
14
14
  export * from "./AssignPrivateIpAddressesCommand";
15
+ export * from "./AssignPrivateNatGatewayAddressCommand";
15
16
  export * from "./AssociateAddressCommand";
16
17
  export * from "./AssociateClientVpnTargetNetworkCommand";
17
18
  export * from "./AssociateDhcpOptionsCommand";
@@ -19,6 +20,7 @@ export * from "./AssociateEnclaveCertificateIamRoleCommand";
19
20
  export * from "./AssociateIamInstanceProfileCommand";
20
21
  export * from "./AssociateInstanceEventWindowCommand";
21
22
  export * from "./AssociateIpamResourceDiscoveryCommand";
23
+ export * from "./AssociateNatGatewayAddressCommand";
22
24
  export * from "./AssociateRouteTableCommand";
23
25
  export * from "./AssociateSubnetCidrBlockCommand";
24
26
  export * from "./AssociateTransitGatewayMulticastDomainCommand";
@@ -379,6 +381,7 @@ export * from "./DisassociateEnclaveCertificateIamRoleCommand";
379
381
  export * from "./DisassociateIamInstanceProfileCommand";
380
382
  export * from "./DisassociateInstanceEventWindowCommand";
381
383
  export * from "./DisassociateIpamResourceDiscoveryCommand";
384
+ export * from "./DisassociateNatGatewayAddressCommand";
382
385
  export * from "./DisassociateRouteTableCommand";
383
386
  export * from "./DisassociateSubnetCidrBlockCommand";
384
387
  export * from "./DisassociateTransitGatewayMulticastDomainCommand";
@@ -579,6 +582,7 @@ export * from "./TerminateClientVpnConnectionsCommand";
579
582
  export * from "./TerminateInstancesCommand";
580
583
  export * from "./UnassignIpv6AddressesCommand";
581
584
  export * from "./UnassignPrivateIpAddressesCommand";
585
+ export * from "./UnassignPrivateNatGatewayAddressCommand";
582
586
  export * from "./UnmonitorInstancesCommand";
583
587
  export * from "./UpdateSecurityGroupRuleDescriptionsEgressCommand";
584
588
  export * from "./UpdateSecurityGroupRuleDescriptionsIngressCommand";