@aws-sdk/client-ec2 3.301.0 → 3.304.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 +16 -0
- package/dist-cjs/EC2.js +30 -0
- package/dist-cjs/commands/GetVpnTunnelReplacementStatusCommand.js +45 -0
- package/dist-cjs/commands/ReplaceVpnTunnelCommand.js +45 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +1126 -1192
- package/dist-cjs/models/models_1.js +397 -469
- package/dist-cjs/models/models_2.js +280 -336
- package/dist-cjs/models/models_3.js +241 -286
- package/dist-cjs/models/models_4.js +197 -235
- package/dist-cjs/models/models_5.js +77 -91
- package/dist-cjs/models/models_6.js +65 -79
- package/dist-cjs/protocols/Aws_ec2.js +180 -15
- package/dist-es/EC2.js +30 -0
- package/dist-es/commands/GetVpnTunnelReplacementStatusCommand.js +41 -0
- package/dist-es/commands/ReplaceVpnTunnelCommand.js +41 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +1126 -1192
- package/dist-es/models/models_1.js +397 -469
- package/dist-es/models/models_2.js +280 -336
- package/dist-es/models/models_3.js +241 -286
- package/dist-es/models/models_4.js +197 -235
- package/dist-es/models/models_5.js +77 -91
- package/dist-es/models/models_6.js +65 -79
- package/dist-es/protocols/Aws_ec2.js +161 -0
- package/dist-types/EC2.d.ts +16 -0
- package/dist-types/EC2Client.d.ts +4 -2
- package/dist-types/commands/CreateVpnConnectionCommand.d.ts +1 -0
- package/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +65 -0
- package/dist-types/commands/ImportSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +2 -0
- package/dist-types/commands/ReplaceVpnTunnelCommand.d.ts +66 -0
- package/dist-types/commands/StartInstancesCommand.d.ts +2 -1
- package/dist-types/commands/StartNetworkInsightsAccessScopeAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/StartNetworkInsightsAnalysisCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1464 -1134
- package/dist-types/models/models_1.d.ts +757 -397
- package/dist-types/models/models_2.d.ts +568 -280
- package/dist-types/models/models_3.d.ts +466 -241
- package/dist-types/models/models_4.d.ts +388 -198
- package/dist-types/models/models_5.d.ts +214 -192
- package/dist-types/models/models_6.d.ts +299 -159
- package/dist-types/models/models_7.d.ts +95 -3
- package/dist-types/protocols/Aws_ec2.d.ts +6 -0
- package/dist-types/ts3.4/EC2.d.ts +34 -0
- package/dist-types/ts3.4/EC2Client.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ImportSnapshotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ReplaceVpnTunnelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StartInstancesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartNetworkInsightsAccessScopeAnalysisCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartNetworkInsightsAnalysisCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1244 -1126
- package/dist-types/ts3.4/models/models_1.d.ts +523 -397
- package/dist-types/ts3.4/models/models_2.d.ts +381 -280
- package/dist-types/ts3.4/models/models_3.d.ts +324 -241
- package/dist-types/ts3.4/models/models_4.d.ts +261 -197
- package/dist-types/ts3.4/models/models_5.d.ts +123 -101
- package/dist-types/ts3.4/models/models_6.d.ts +126 -91
- package/dist-types/ts3.4/models/models_7.d.ts +37 -3
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
- package/package.json +36 -36
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_ec2ReplaceVpnTunnelCommand, serializeAws_ec2ReplaceVpnTunnelCommand, } from "../protocols/Aws_ec2";
|
|
5
|
+
export class ReplaceVpnTunnelCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ReplaceVpnTunnelCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "EC2Client";
|
|
24
|
+
const commandName = "ReplaceVpnTunnelCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_ec2ReplaceVpnTunnelCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_ec2ReplaceVpnTunnelCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -449,6 +449,7 @@ export * from "./GetVerifiedAccessEndpointPolicyCommand";
|
|
|
449
449
|
export * from "./GetVerifiedAccessGroupPolicyCommand";
|
|
450
450
|
export * from "./GetVpnConnectionDeviceSampleConfigurationCommand";
|
|
451
451
|
export * from "./GetVpnConnectionDeviceTypesCommand";
|
|
452
|
+
export * from "./GetVpnTunnelReplacementStatusCommand";
|
|
452
453
|
export * from "./ImportClientVpnClientCertificateRevocationListCommand";
|
|
453
454
|
export * from "./ImportImageCommand";
|
|
454
455
|
export * from "./ImportInstanceCommand";
|
|
@@ -549,6 +550,7 @@ export * from "./ReplaceNetworkAclEntryCommand";
|
|
|
549
550
|
export * from "./ReplaceRouteCommand";
|
|
550
551
|
export * from "./ReplaceRouteTableAssociationCommand";
|
|
551
552
|
export * from "./ReplaceTransitGatewayRouteCommand";
|
|
553
|
+
export * from "./ReplaceVpnTunnelCommand";
|
|
552
554
|
export * from "./ReportInstanceStatusCommand";
|
|
553
555
|
export * from "./RequestSpotFleetCommand";
|
|
554
556
|
export * from "./RequestSpotInstancesCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://ec2.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|