@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.
Files changed (66) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/EC2.js +30 -0
  3. package/dist-cjs/commands/GetVpnTunnelReplacementStatusCommand.js +45 -0
  4. package/dist-cjs/commands/ReplaceVpnTunnelCommand.js +45 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/models/models_0.js +1126 -1192
  8. package/dist-cjs/models/models_1.js +397 -469
  9. package/dist-cjs/models/models_2.js +280 -336
  10. package/dist-cjs/models/models_3.js +241 -286
  11. package/dist-cjs/models/models_4.js +197 -235
  12. package/dist-cjs/models/models_5.js +77 -91
  13. package/dist-cjs/models/models_6.js +65 -79
  14. package/dist-cjs/protocols/Aws_ec2.js +180 -15
  15. package/dist-es/EC2.js +30 -0
  16. package/dist-es/commands/GetVpnTunnelReplacementStatusCommand.js +41 -0
  17. package/dist-es/commands/ReplaceVpnTunnelCommand.js +41 -0
  18. package/dist-es/commands/index.js +2 -0
  19. package/dist-es/endpoint/ruleset.js +3 -3
  20. package/dist-es/models/models_0.js +1126 -1192
  21. package/dist-es/models/models_1.js +397 -469
  22. package/dist-es/models/models_2.js +280 -336
  23. package/dist-es/models/models_3.js +241 -286
  24. package/dist-es/models/models_4.js +197 -235
  25. package/dist-es/models/models_5.js +77 -91
  26. package/dist-es/models/models_6.js +65 -79
  27. package/dist-es/protocols/Aws_ec2.js +161 -0
  28. package/dist-types/EC2.d.ts +16 -0
  29. package/dist-types/EC2Client.d.ts +4 -2
  30. package/dist-types/commands/CreateVpnConnectionCommand.d.ts +1 -0
  31. package/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +65 -0
  32. package/dist-types/commands/ImportSnapshotCommand.d.ts +1 -1
  33. package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +2 -0
  34. package/dist-types/commands/ReplaceVpnTunnelCommand.d.ts +66 -0
  35. package/dist-types/commands/StartInstancesCommand.d.ts +2 -1
  36. package/dist-types/commands/StartNetworkInsightsAccessScopeAnalysisCommand.d.ts +1 -1
  37. package/dist-types/commands/StartNetworkInsightsAnalysisCommand.d.ts +1 -2
  38. package/dist-types/commands/index.d.ts +2 -0
  39. package/dist-types/models/models_0.d.ts +1464 -1134
  40. package/dist-types/models/models_1.d.ts +757 -397
  41. package/dist-types/models/models_2.d.ts +568 -280
  42. package/dist-types/models/models_3.d.ts +466 -241
  43. package/dist-types/models/models_4.d.ts +388 -198
  44. package/dist-types/models/models_5.d.ts +214 -192
  45. package/dist-types/models/models_6.d.ts +299 -159
  46. package/dist-types/models/models_7.d.ts +95 -3
  47. package/dist-types/protocols/Aws_ec2.d.ts +6 -0
  48. package/dist-types/ts3.4/EC2.d.ts +34 -0
  49. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  50. package/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/ImportSnapshotCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/ReplaceVpnTunnelCommand.d.ts +37 -0
  53. package/dist-types/ts3.4/commands/StartInstancesCommand.d.ts +2 -4
  54. package/dist-types/ts3.4/commands/StartNetworkInsightsAccessScopeAnalysisCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/StartNetworkInsightsAnalysisCommand.d.ts +4 -2
  56. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +1244 -1126
  58. package/dist-types/ts3.4/models/models_1.d.ts +523 -397
  59. package/dist-types/ts3.4/models/models_2.d.ts +381 -280
  60. package/dist-types/ts3.4/models/models_3.d.ts +324 -241
  61. package/dist-types/ts3.4/models/models_4.d.ts +261 -197
  62. package/dist-types/ts3.4/models/models_5.d.ts +123 -101
  63. package/dist-types/ts3.4/models/models_6.d.ts +126 -91
  64. package/dist-types/ts3.4/models/models_7.d.ts +37 -3
  65. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  66. 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 u = "required", v = "fn", w = "argv", x = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = "stringEquals", h = { [u]: false, "type": "String" }, i = { [u]: true, "default": false, "type": "Boolean" }, j = { [x]: "Endpoint" }, k = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, l = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, m = {}, n = { [x]: "Region" }, o = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [{ [x]: e }, "supportsFIPS"] }] }, p = { [x]: e }, q = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [p, "supportsDualStack"] }] }, r = [k], s = [l], t = [n];
3
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [v]: a, [w]: [j] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ conditions: [o, q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ conditions: [{ [v]: g, [w]: ["aws-us-gov", { [v]: f, [w]: [p, "name"] }] }], endpoint: { url: "https://ec2.{Region}.amazonaws.com", properties: m, headers: m }, type: d }, { endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [v]: g, [w]: [n, "us-gov-east-1"] }], endpoint: { url: "https://ec2.us-gov-east-1.amazonaws.com", properties: m, headers: m }, type: d }, { conditions: [{ [v]: g, [w]: [n, "us-gov-west-1"] }], endpoint: { url: "https://ec2.us-gov-west-1.amazonaws.com", properties: m, headers: m }, type: d }, { endpoint: { url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
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;