@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.
- package/README.md +8 -0
- package/dist-cjs/index.js +309 -135
- package/dist-es/EC2.js +2 -0
- package/dist-es/commands/DescribeVpnConnectionsCommand.js +1 -1
- package/dist-es/commands/GetActiveVpnTunnelStatusCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/models/models_3.js +7 -0
- package/dist-es/models/models_5.js +0 -7
- package/dist-es/models/models_6.js +7 -0
- package/dist-es/protocols/Aws_ec2.js +196 -53
- package/dist-types/EC2.d.ts +7 -0
- package/dist-types/EC2Client.d.ts +3 -2
- package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +1 -1
- package/dist-types/commands/CopyFpgaImageCommand.d.ts +1 -1
- package/dist-types/commands/CopyImageCommand.d.ts +1 -1
- package/dist-types/commands/CreateImageCommand.d.ts +2 -2
- package/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +2 -2
- package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +3 -3
- package/dist-types/commands/CreateVpcEndpointCommand.d.ts +2 -1
- package/dist-types/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +1 -2
- package/dist-types/commands/CreateVpnConnectionCommand.d.ts +2 -0
- package/dist-types/commands/DeregisterImageCommand.d.ts +19 -6
- package/dist-types/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeClientVpnEndpointsCommand.d.ts +1 -2
- package/dist-types/commands/DescribeKeyPairsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLaunchTemplatesCommand.d.ts +1 -2
- package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +3 -3
- package/dist-types/commands/DescribeVpcsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpnConnectionsCommand.d.ts +2 -1
- package/dist-types/commands/DisableImageBlockPublicAccessCommand.d.ts +1 -1
- package/dist-types/commands/DisableImageDeprecationCommand.d.ts +1 -1
- package/dist-types/commands/DisableImageDeregistrationProtectionCommand.d.ts +2 -2
- package/dist-types/commands/EnableImageBlockPublicAccessCommand.d.ts +1 -1
- package/dist-types/commands/EnableImageCommand.d.ts +2 -2
- package/dist-types/commands/EnableImageDeregistrationProtectionCommand.d.ts +2 -2
- package/dist-types/commands/GetActiveVpnTunnelStatusCommand.d.ts +84 -0
- package/dist-types/commands/GetImageBlockPublicAccessStateCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -1
- package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +1 -2
- package/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +1 -0
- package/dist-types/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -0
- package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +1 -0
- package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +2 -0
- package/dist-types/commands/RegisterImageCommand.d.ts +2 -2
- package/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -1
- package/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
- package/dist-types/commands/ReleaseHostsCommand.d.ts +1 -1
- package/dist-types/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
- package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +3 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +64 -48
- package/dist-types/models/models_1.d.ts +53 -32
- package/dist-types/models/models_2.d.ts +29 -58
- package/dist-types/models/models_3.d.ts +150 -151
- package/dist-types/models/models_4.d.ts +161 -203
- package/dist-types/models/models_5.d.ts +195 -226
- package/dist-types/models/models_6.d.ts +254 -149
- package/dist-types/models/models_7.d.ts +168 -114
- package/dist-types/models/models_8.d.ts +107 -5
- package/dist-types/protocols/Aws_ec2.d.ts +9 -0
- package/dist-types/ts3.4/EC2.d.ts +17 -0
- package/dist-types/ts3.4/EC2Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/CopyFpgaImageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeregisterImageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeClientVpnEndpointsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeKeyPairsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeLaunchTemplatesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeVpcsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeVpnConnectionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetActiveVpnTunnelStatusCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ReleaseHostsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +18 -11
- package/dist-types/ts3.4/models/models_1.d.ts +11 -7
- package/dist-types/ts3.4/models/models_2.d.ts +7 -14
- package/dist-types/ts3.4/models/models_3.d.ts +33 -32
- package/dist-types/ts3.4/models/models_4.d.ts +33 -29
- package/dist-types/ts3.4/models/models_5.d.ts +29 -25
- package/dist-types/ts3.4/models/models_6.d.ts +33 -36
- package/dist-types/ts3.4/models/models_7.d.ts +40 -26
- package/dist-types/ts3.4/models/models_8.d.ts +29 -2
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
- package/package.json +1 -1
package/dist-es/EC2.js
CHANGED
|
@@ -474,6 +474,7 @@ import { ExportClientVpnClientConfigurationCommand, } from "./commands/ExportCli
|
|
|
474
474
|
import { ExportImageCommand } from "./commands/ExportImageCommand";
|
|
475
475
|
import { ExportTransitGatewayRoutesCommand, } from "./commands/ExportTransitGatewayRoutesCommand";
|
|
476
476
|
import { ExportVerifiedAccessInstanceClientConfigurationCommand, } from "./commands/ExportVerifiedAccessInstanceClientConfigurationCommand";
|
|
477
|
+
import { GetActiveVpnTunnelStatusCommand, } from "./commands/GetActiveVpnTunnelStatusCommand";
|
|
477
478
|
import { GetAllowedImagesSettingsCommand, } from "./commands/GetAllowedImagesSettingsCommand";
|
|
478
479
|
import { GetAssociatedEnclaveCertificateIamRolesCommand, } from "./commands/GetAssociatedEnclaveCertificateIamRolesCommand";
|
|
479
480
|
import { GetAssociatedIpv6PoolCidrsCommand, } from "./commands/GetAssociatedIpv6PoolCidrsCommand";
|
|
@@ -1161,6 +1162,7 @@ const commands = {
|
|
|
1161
1162
|
ExportImageCommand,
|
|
1162
1163
|
ExportTransitGatewayRoutesCommand,
|
|
1163
1164
|
ExportVerifiedAccessInstanceClientConfigurationCommand,
|
|
1165
|
+
GetActiveVpnTunnelStatusCommand,
|
|
1164
1166
|
GetAllowedImagesSettingsCommand,
|
|
1165
1167
|
GetAssociatedEnclaveCertificateIamRolesCommand,
|
|
1166
1168
|
GetAssociatedIpv6PoolCidrsCommand,
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { DescribeVpnConnectionsResultFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { DescribeVpnConnectionsResultFilterSensitiveLog, } from "../models/models_6";
|
|
6
6
|
import { de_DescribeVpnConnectionsCommand, se_DescribeVpnConnectionsCommand } from "../protocols/Aws_ec2";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class DescribeVpnConnectionsCommand extends $Command
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetActiveVpnTunnelStatusCommand, se_GetActiveVpnTunnelStatusCommand } from "../protocols/Aws_ec2";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetActiveVpnTunnelStatusCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonEC2", "GetActiveVpnTunnelStatus", {})
|
|
17
|
+
.n("EC2Client", "GetActiveVpnTunnelStatusCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetActiveVpnTunnelStatusCommand)
|
|
20
|
+
.de(de_GetActiveVpnTunnelStatusCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -473,6 +473,7 @@ export * from "./ExportClientVpnClientConfigurationCommand";
|
|
|
473
473
|
export * from "./ExportImageCommand";
|
|
474
474
|
export * from "./ExportTransitGatewayRoutesCommand";
|
|
475
475
|
export * from "./ExportVerifiedAccessInstanceClientConfigurationCommand";
|
|
476
|
+
export * from "./GetActiveVpnTunnelStatusCommand";
|
|
476
477
|
export * from "./GetAllowedImagesSettingsCommand";
|
|
477
478
|
export * from "./GetAssociatedEnclaveCertificateIamRolesCommand";
|
|
478
479
|
export * from "./GetAssociatedIpv6PoolCidrsCommand";
|
|
@@ -202,6 +202,11 @@ export const InstanceHealthStatus = {
|
|
|
202
202
|
HEALTHY_STATUS: "healthy",
|
|
203
203
|
UNHEALTHY_STATUS: "unhealthy",
|
|
204
204
|
};
|
|
205
|
+
export const VpnTunnelProvisioningStatus = {
|
|
206
|
+
available: "available",
|
|
207
|
+
failed: "failed",
|
|
208
|
+
pending: "pending",
|
|
209
|
+
};
|
|
205
210
|
export const ActivityStatus = {
|
|
206
211
|
ERROR: "error",
|
|
207
212
|
FULFILLED: "fulfilled",
|
|
@@ -104,6 +104,13 @@ export const IpamPoolCidrState = {
|
|
|
104
104
|
pending_provision: "pending-provision",
|
|
105
105
|
provisioned: "provisioned",
|
|
106
106
|
};
|
|
107
|
+
export const SnapshotReturnCodes = {
|
|
108
|
+
ERROR_CODE_CLIENT_ERROR: "client-error",
|
|
109
|
+
ERROR_CODE_INTERNAL_ERROR: "internal-error",
|
|
110
|
+
ERROR_MISSING_PERMISSIONS: "missing-permissions",
|
|
111
|
+
SUCCESS: "success",
|
|
112
|
+
WARN_SKIPPED: "skipped",
|
|
113
|
+
};
|
|
107
114
|
export const AvailabilityZoneOptInStatus = {
|
|
108
115
|
not_opted_in: "not-opted-in",
|
|
109
116
|
opt_in_not_required: "opt-in-not-required",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { LaunchTemplateVersionFilterSensitiveLog, } from "./models_2";
|
|
4
|
-
import { VpnConnectionFilterSensitiveLog, } from "./models_3";
|
|
5
4
|
export const LockState = {
|
|
6
5
|
compliance: "compliance",
|
|
7
6
|
compliance_cooloff: "compliance-cooloff",
|
|
@@ -202,9 +201,3 @@ export const DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog = (obj
|
|
|
202
201
|
VerifiedAccessTrustProviders: obj.VerifiedAccessTrustProviders.map((item) => VerifiedAccessTrustProviderFilterSensitiveLog(item)),
|
|
203
202
|
}),
|
|
204
203
|
});
|
|
205
|
-
export const DescribeVpnConnectionsResultFilterSensitiveLog = (obj) => ({
|
|
206
|
-
...obj,
|
|
207
|
-
...(obj.VpnConnections && {
|
|
208
|
-
VpnConnections: obj.VpnConnections.map((item) => VpnConnectionFilterSensitiveLog(item)),
|
|
209
|
-
}),
|
|
210
|
-
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { ResponseLaunchTemplateDataFilterSensitiveLog, } from "./models_2";
|
|
4
|
+
import { VpnConnectionFilterSensitiveLog, } from "./models_3";
|
|
4
5
|
export const ImageBlockPublicAccessDisabledState = {
|
|
5
6
|
unblocked: "unblocked",
|
|
6
7
|
};
|
|
@@ -123,6 +124,12 @@ export const RouteServerRouteStatus = {
|
|
|
123
124
|
IN_FIB: "in-fib",
|
|
124
125
|
IN_RIB: "in-rib",
|
|
125
126
|
};
|
|
127
|
+
export const DescribeVpnConnectionsResultFilterSensitiveLog = (obj) => ({
|
|
128
|
+
...obj,
|
|
129
|
+
...(obj.VpnConnections && {
|
|
130
|
+
VpnConnections: obj.VpnConnections.map((item) => VpnConnectionFilterSensitiveLog(item)),
|
|
131
|
+
}),
|
|
132
|
+
});
|
|
126
133
|
export const DetachVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) => ({
|
|
127
134
|
...obj,
|
|
128
135
|
...(obj.VerifiedAccessTrustProvider && {
|