@aws-sdk/client-ec2 3.301.0 → 3.303.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 +387 -197
- package/dist-types/models/models_5.d.ts +212 -191
- package/dist-types/models/models_6.d.ts +290 -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
|
@@ -1,85 +1,71 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { SpotFleetRequestConfigDataFilterSensitiveLog, SpotInstanceRequestFilterSensitiveLog, } from "./models_4";
|
|
3
3
|
import { DiskImageDetailFilterSensitiveLog, } from "./models_5";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
})(ReportStatusType || (ReportStatusType = {}));
|
|
70
|
-
export var ResetFpgaImageAttributeName;
|
|
71
|
-
(function (ResetFpgaImageAttributeName) {
|
|
72
|
-
ResetFpgaImageAttributeName["loadPermission"] = "loadPermission";
|
|
73
|
-
})(ResetFpgaImageAttributeName || (ResetFpgaImageAttributeName = {}));
|
|
74
|
-
export var ResetImageAttributeName;
|
|
75
|
-
(function (ResetImageAttributeName) {
|
|
76
|
-
ResetImageAttributeName["launchPermission"] = "launchPermission";
|
|
77
|
-
})(ResetImageAttributeName || (ResetImageAttributeName = {}));
|
|
78
|
-
export var MembershipType;
|
|
79
|
-
(function (MembershipType) {
|
|
80
|
-
MembershipType["igmp"] = "igmp";
|
|
81
|
-
MembershipType["static"] = "static";
|
|
82
|
-
})(MembershipType || (MembershipType = {}));
|
|
4
|
+
export const ModifyAvailabilityZoneOptInStatus = {
|
|
5
|
+
not_opted_in: "not-opted-in",
|
|
6
|
+
opted_in: "opted-in",
|
|
7
|
+
};
|
|
8
|
+
export const OperationType = {
|
|
9
|
+
add: "add",
|
|
10
|
+
remove: "remove",
|
|
11
|
+
};
|
|
12
|
+
export const UnsuccessfulInstanceCreditSpecificationErrorCode = {
|
|
13
|
+
INCORRECT_INSTANCE_STATE: "IncorrectInstanceState",
|
|
14
|
+
INSTANCE_CREDIT_SPECIFICATION_NOT_SUPPORTED: "InstanceCreditSpecification.NotSupported",
|
|
15
|
+
INSTANCE_NOT_FOUND: "InvalidInstanceID.NotFound",
|
|
16
|
+
INVALID_INSTANCE_ID: "InvalidInstanceID.Malformed",
|
|
17
|
+
};
|
|
18
|
+
export const HostTenancy = {
|
|
19
|
+
dedicated: "dedicated",
|
|
20
|
+
host: "host",
|
|
21
|
+
};
|
|
22
|
+
export const TargetStorageTier = {
|
|
23
|
+
archive: "archive",
|
|
24
|
+
};
|
|
25
|
+
export const TrafficMirrorFilterRuleField = {
|
|
26
|
+
description: "description",
|
|
27
|
+
destination_port_range: "destination-port-range",
|
|
28
|
+
protocol: "protocol",
|
|
29
|
+
source_port_range: "source-port-range",
|
|
30
|
+
};
|
|
31
|
+
export const TrafficMirrorSessionField = {
|
|
32
|
+
description: "description",
|
|
33
|
+
packet_length: "packet-length",
|
|
34
|
+
virtual_network_id: "virtual-network-id",
|
|
35
|
+
};
|
|
36
|
+
export const VpcTenancy = {
|
|
37
|
+
default: "default",
|
|
38
|
+
};
|
|
39
|
+
export const Status = {
|
|
40
|
+
inClassic: "InClassic",
|
|
41
|
+
inVpc: "InVpc",
|
|
42
|
+
moveInProgress: "MoveInProgress",
|
|
43
|
+
};
|
|
44
|
+
export const ReportInstanceReasonCodes = {
|
|
45
|
+
instance_stuck_in_state: "instance-stuck-in-state",
|
|
46
|
+
not_accepting_credentials: "not-accepting-credentials",
|
|
47
|
+
other: "other",
|
|
48
|
+
password_not_available: "password-not-available",
|
|
49
|
+
performance_ebs_volume: "performance-ebs-volume",
|
|
50
|
+
performance_instance_store: "performance-instance-store",
|
|
51
|
+
performance_network: "performance-network",
|
|
52
|
+
performance_other: "performance-other",
|
|
53
|
+
unresponsive: "unresponsive",
|
|
54
|
+
};
|
|
55
|
+
export const ReportStatusType = {
|
|
56
|
+
impaired: "impaired",
|
|
57
|
+
ok: "ok",
|
|
58
|
+
};
|
|
59
|
+
export const ResetFpgaImageAttributeName = {
|
|
60
|
+
loadPermission: "loadPermission",
|
|
61
|
+
};
|
|
62
|
+
export const ResetImageAttributeName = {
|
|
63
|
+
launchPermission: "launchPermission",
|
|
64
|
+
};
|
|
65
|
+
export const MembershipType = {
|
|
66
|
+
igmp: "igmp",
|
|
67
|
+
static: "static",
|
|
68
|
+
};
|
|
83
69
|
export const ImportVolumeRequestFilterSensitiveLog = (obj) => ({
|
|
84
70
|
...obj,
|
|
85
71
|
...(obj.Image && { Image: DiskImageDetailFilterSensitiveLog(obj.Image) }),
|
|
@@ -5415,6 +5415,18 @@ export const serializeAws_ec2GetVpnConnectionDeviceTypesCommand = async (input,
|
|
|
5415
5415
|
});
|
|
5416
5416
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
5417
5417
|
};
|
|
5418
|
+
export const serializeAws_ec2GetVpnTunnelReplacementStatusCommand = async (input, context) => {
|
|
5419
|
+
const headers = {
|
|
5420
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
5421
|
+
};
|
|
5422
|
+
let body;
|
|
5423
|
+
body = buildFormUrlencodedString({
|
|
5424
|
+
...serializeAws_ec2GetVpnTunnelReplacementStatusRequest(input, context),
|
|
5425
|
+
Action: "GetVpnTunnelReplacementStatus",
|
|
5426
|
+
Version: "2016-11-15",
|
|
5427
|
+
});
|
|
5428
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
5429
|
+
};
|
|
5418
5430
|
export const serializeAws_ec2ImportClientVpnClientCertificateRevocationListCommand = async (input, context) => {
|
|
5419
5431
|
const headers = {
|
|
5420
5432
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -6615,6 +6627,18 @@ export const serializeAws_ec2ReplaceTransitGatewayRouteCommand = async (input, c
|
|
|
6615
6627
|
});
|
|
6616
6628
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
6617
6629
|
};
|
|
6630
|
+
export const serializeAws_ec2ReplaceVpnTunnelCommand = async (input, context) => {
|
|
6631
|
+
const headers = {
|
|
6632
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
6633
|
+
};
|
|
6634
|
+
let body;
|
|
6635
|
+
body = buildFormUrlencodedString({
|
|
6636
|
+
...serializeAws_ec2ReplaceVpnTunnelRequest(input, context),
|
|
6637
|
+
Action: "ReplaceVpnTunnel",
|
|
6638
|
+
Version: "2016-11-15",
|
|
6639
|
+
});
|
|
6640
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
6641
|
+
};
|
|
6618
6642
|
export const serializeAws_ec2ReportInstanceStatusCommand = async (input, context) => {
|
|
6619
6643
|
const headers = {
|
|
6620
6644
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -19140,6 +19164,33 @@ const deserializeAws_ec2GetVpnConnectionDeviceTypesCommandError = async (output,
|
|
|
19140
19164
|
errorCode,
|
|
19141
19165
|
});
|
|
19142
19166
|
};
|
|
19167
|
+
export const deserializeAws_ec2GetVpnTunnelReplacementStatusCommand = async (output, context) => {
|
|
19168
|
+
if (output.statusCode >= 300) {
|
|
19169
|
+
return deserializeAws_ec2GetVpnTunnelReplacementStatusCommandError(output, context);
|
|
19170
|
+
}
|
|
19171
|
+
const data = await parseBody(output.body, context);
|
|
19172
|
+
let contents = {};
|
|
19173
|
+
contents = deserializeAws_ec2GetVpnTunnelReplacementStatusResult(data, context);
|
|
19174
|
+
const response = {
|
|
19175
|
+
$metadata: deserializeMetadata(output),
|
|
19176
|
+
...contents,
|
|
19177
|
+
};
|
|
19178
|
+
return Promise.resolve(response);
|
|
19179
|
+
};
|
|
19180
|
+
const deserializeAws_ec2GetVpnTunnelReplacementStatusCommandError = async (output, context) => {
|
|
19181
|
+
const parsedOutput = {
|
|
19182
|
+
...output,
|
|
19183
|
+
body: await parseErrorBody(output.body, context),
|
|
19184
|
+
};
|
|
19185
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
19186
|
+
const parsedBody = parsedOutput.body;
|
|
19187
|
+
throwDefaultError({
|
|
19188
|
+
output,
|
|
19189
|
+
parsedBody: parsedBody.Errors.Error,
|
|
19190
|
+
exceptionCtor: __BaseException,
|
|
19191
|
+
errorCode,
|
|
19192
|
+
});
|
|
19193
|
+
};
|
|
19143
19194
|
export const deserializeAws_ec2ImportClientVpnClientCertificateRevocationListCommand = async (output, context) => {
|
|
19144
19195
|
if (output.statusCode >= 300) {
|
|
19145
19196
|
return deserializeAws_ec2ImportClientVpnClientCertificateRevocationListCommandError(output, context);
|
|
@@ -21801,6 +21852,33 @@ const deserializeAws_ec2ReplaceTransitGatewayRouteCommandError = async (output,
|
|
|
21801
21852
|
errorCode,
|
|
21802
21853
|
});
|
|
21803
21854
|
};
|
|
21855
|
+
export const deserializeAws_ec2ReplaceVpnTunnelCommand = async (output, context) => {
|
|
21856
|
+
if (output.statusCode >= 300) {
|
|
21857
|
+
return deserializeAws_ec2ReplaceVpnTunnelCommandError(output, context);
|
|
21858
|
+
}
|
|
21859
|
+
const data = await parseBody(output.body, context);
|
|
21860
|
+
let contents = {};
|
|
21861
|
+
contents = deserializeAws_ec2ReplaceVpnTunnelResult(data, context);
|
|
21862
|
+
const response = {
|
|
21863
|
+
$metadata: deserializeMetadata(output),
|
|
21864
|
+
...contents,
|
|
21865
|
+
};
|
|
21866
|
+
return Promise.resolve(response);
|
|
21867
|
+
};
|
|
21868
|
+
const deserializeAws_ec2ReplaceVpnTunnelCommandError = async (output, context) => {
|
|
21869
|
+
const parsedOutput = {
|
|
21870
|
+
...output,
|
|
21871
|
+
body: await parseErrorBody(output.body, context),
|
|
21872
|
+
};
|
|
21873
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
21874
|
+
const parsedBody = parsedOutput.body;
|
|
21875
|
+
throwDefaultError({
|
|
21876
|
+
output,
|
|
21877
|
+
parsedBody: parsedBody.Errors.Error,
|
|
21878
|
+
exceptionCtor: __BaseException,
|
|
21879
|
+
errorCode,
|
|
21880
|
+
});
|
|
21881
|
+
};
|
|
21804
21882
|
export const deserializeAws_ec2ReportInstanceStatusCommand = async (output, context) => {
|
|
21805
21883
|
if (output.statusCode >= 300) {
|
|
21806
21884
|
return deserializeAws_ec2ReportInstanceStatusCommandError(output, context);
|
|
@@ -35252,6 +35330,19 @@ const serializeAws_ec2GetVpnConnectionDeviceTypesRequest = (input, context) => {
|
|
|
35252
35330
|
}
|
|
35253
35331
|
return entries;
|
|
35254
35332
|
};
|
|
35333
|
+
const serializeAws_ec2GetVpnTunnelReplacementStatusRequest = (input, context) => {
|
|
35334
|
+
const entries = {};
|
|
35335
|
+
if (input.VpnConnectionId != null) {
|
|
35336
|
+
entries["VpnConnectionId"] = input.VpnConnectionId;
|
|
35337
|
+
}
|
|
35338
|
+
if (input.VpnTunnelOutsideIpAddress != null) {
|
|
35339
|
+
entries["VpnTunnelOutsideIpAddress"] = input.VpnTunnelOutsideIpAddress;
|
|
35340
|
+
}
|
|
35341
|
+
if (input.DryRun != null) {
|
|
35342
|
+
entries["DryRun"] = input.DryRun;
|
|
35343
|
+
}
|
|
35344
|
+
return entries;
|
|
35345
|
+
};
|
|
35255
35346
|
const serializeAws_ec2GroupIdentifier = (input, context) => {
|
|
35256
35347
|
const entries = {};
|
|
35257
35348
|
if (input.GroupName != null) {
|
|
@@ -39772,6 +39863,9 @@ const serializeAws_ec2ModifyVpnTunnelOptionsRequest = (input, context) => {
|
|
|
39772
39863
|
if (input.DryRun != null) {
|
|
39773
39864
|
entries["DryRun"] = input.DryRun;
|
|
39774
39865
|
}
|
|
39866
|
+
if (input.SkipTunnelReplacement != null) {
|
|
39867
|
+
entries["SkipTunnelReplacement"] = input.SkipTunnelReplacement;
|
|
39868
|
+
}
|
|
39775
39869
|
return entries;
|
|
39776
39870
|
};
|
|
39777
39871
|
const serializeAws_ec2ModifyVpnTunnelOptionsSpecification = (input, context) => {
|
|
@@ -39886,6 +39980,9 @@ const serializeAws_ec2ModifyVpnTunnelOptionsSpecification = (input, context) =>
|
|
|
39886
39980
|
entries[loc] = value;
|
|
39887
39981
|
});
|
|
39888
39982
|
}
|
|
39983
|
+
if (input.EnableTunnelLifecycleControl != null) {
|
|
39984
|
+
entries["EnableTunnelLifecycleControl"] = input.EnableTunnelLifecycleControl;
|
|
39985
|
+
}
|
|
39889
39986
|
return entries;
|
|
39890
39987
|
};
|
|
39891
39988
|
const serializeAws_ec2MonitorInstancesRequest = (input, context) => {
|
|
@@ -41417,6 +41514,22 @@ const serializeAws_ec2ReplaceTransitGatewayRouteRequest = (input, context) => {
|
|
|
41417
41514
|
}
|
|
41418
41515
|
return entries;
|
|
41419
41516
|
};
|
|
41517
|
+
const serializeAws_ec2ReplaceVpnTunnelRequest = (input, context) => {
|
|
41518
|
+
const entries = {};
|
|
41519
|
+
if (input.VpnConnectionId != null) {
|
|
41520
|
+
entries["VpnConnectionId"] = input.VpnConnectionId;
|
|
41521
|
+
}
|
|
41522
|
+
if (input.VpnTunnelOutsideIpAddress != null) {
|
|
41523
|
+
entries["VpnTunnelOutsideIpAddress"] = input.VpnTunnelOutsideIpAddress;
|
|
41524
|
+
}
|
|
41525
|
+
if (input.ApplyPendingMaintenance != null) {
|
|
41526
|
+
entries["ApplyPendingMaintenance"] = input.ApplyPendingMaintenance;
|
|
41527
|
+
}
|
|
41528
|
+
if (input.DryRun != null) {
|
|
41529
|
+
entries["DryRun"] = input.DryRun;
|
|
41530
|
+
}
|
|
41531
|
+
return entries;
|
|
41532
|
+
};
|
|
41420
41533
|
const serializeAws_ec2ReportInstanceStatusRequest = (input, context) => {
|
|
41421
41534
|
const entries = {};
|
|
41422
41535
|
if (input.Description != null) {
|
|
@@ -44995,6 +45108,9 @@ const serializeAws_ec2VpnTunnelOptionsSpecification = (input, context) => {
|
|
|
44995
45108
|
entries[loc] = value;
|
|
44996
45109
|
});
|
|
44997
45110
|
}
|
|
45111
|
+
if (input.EnableTunnelLifecycleControl != null) {
|
|
45112
|
+
entries["EnableTunnelLifecycleControl"] = input.EnableTunnelLifecycleControl;
|
|
45113
|
+
}
|
|
44998
45114
|
return entries;
|
|
44999
45115
|
};
|
|
45000
45116
|
const serializeAws_ec2VpnTunnelOptionsSpecificationsList = (input, context) => {
|
|
@@ -53137,6 +53253,28 @@ const deserializeAws_ec2GetVpnConnectionDeviceTypesResult = (output, context) =>
|
|
|
53137
53253
|
}
|
|
53138
53254
|
return contents;
|
|
53139
53255
|
};
|
|
53256
|
+
const deserializeAws_ec2GetVpnTunnelReplacementStatusResult = (output, context) => {
|
|
53257
|
+
const contents = {};
|
|
53258
|
+
if (output["vpnConnectionId"] !== undefined) {
|
|
53259
|
+
contents.VpnConnectionId = __expectString(output["vpnConnectionId"]);
|
|
53260
|
+
}
|
|
53261
|
+
if (output["transitGatewayId"] !== undefined) {
|
|
53262
|
+
contents.TransitGatewayId = __expectString(output["transitGatewayId"]);
|
|
53263
|
+
}
|
|
53264
|
+
if (output["customerGatewayId"] !== undefined) {
|
|
53265
|
+
contents.CustomerGatewayId = __expectString(output["customerGatewayId"]);
|
|
53266
|
+
}
|
|
53267
|
+
if (output["vpnGatewayId"] !== undefined) {
|
|
53268
|
+
contents.VpnGatewayId = __expectString(output["vpnGatewayId"]);
|
|
53269
|
+
}
|
|
53270
|
+
if (output["vpnTunnelOutsideIpAddress"] !== undefined) {
|
|
53271
|
+
contents.VpnTunnelOutsideIpAddress = __expectString(output["vpnTunnelOutsideIpAddress"]);
|
|
53272
|
+
}
|
|
53273
|
+
if (output["maintenanceDetails"] !== undefined) {
|
|
53274
|
+
contents.MaintenanceDetails = deserializeAws_ec2MaintenanceDetails(output["maintenanceDetails"], context);
|
|
53275
|
+
}
|
|
53276
|
+
return contents;
|
|
53277
|
+
};
|
|
53140
53278
|
const deserializeAws_ec2GpuDeviceInfo = (output, context) => {
|
|
53141
53279
|
const contents = {};
|
|
53142
53280
|
if (output["name"] !== undefined) {
|
|
@@ -57122,6 +57260,19 @@ const deserializeAws_ec2LocalStorageTypeSet = (output, context) => {
|
|
|
57122
57260
|
return __expectString(entry);
|
|
57123
57261
|
});
|
|
57124
57262
|
};
|
|
57263
|
+
const deserializeAws_ec2MaintenanceDetails = (output, context) => {
|
|
57264
|
+
const contents = {};
|
|
57265
|
+
if (output["pendingMaintenance"] !== undefined) {
|
|
57266
|
+
contents.PendingMaintenance = __expectString(output["pendingMaintenance"]);
|
|
57267
|
+
}
|
|
57268
|
+
if (output["maintenanceAutoAppliedAfter"] !== undefined) {
|
|
57269
|
+
contents.MaintenanceAutoAppliedAfter = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["maintenanceAutoAppliedAfter"]));
|
|
57270
|
+
}
|
|
57271
|
+
if (output["lastMaintenanceApplied"] !== undefined) {
|
|
57272
|
+
contents.LastMaintenanceApplied = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lastMaintenanceApplied"]));
|
|
57273
|
+
}
|
|
57274
|
+
return contents;
|
|
57275
|
+
};
|
|
57125
57276
|
const deserializeAws_ec2ManagedPrefixList = (output, context) => {
|
|
57126
57277
|
const contents = {};
|
|
57127
57278
|
if (output["prefixListId"] !== undefined) {
|
|
@@ -59597,6 +59748,13 @@ const deserializeAws_ec2ReplaceTransitGatewayRouteResult = (output, context) =>
|
|
|
59597
59748
|
}
|
|
59598
59749
|
return contents;
|
|
59599
59750
|
};
|
|
59751
|
+
const deserializeAws_ec2ReplaceVpnTunnelResult = (output, context) => {
|
|
59752
|
+
const contents = {};
|
|
59753
|
+
if (output["return"] !== undefined) {
|
|
59754
|
+
contents.Return = __parseBoolean(output["return"]);
|
|
59755
|
+
}
|
|
59756
|
+
return contents;
|
|
59757
|
+
};
|
|
59600
59758
|
const deserializeAws_ec2RequestSpotFleetResponse = (output, context) => {
|
|
59601
59759
|
const contents = {};
|
|
59602
59760
|
if (output["spotFleetRequestId"] !== undefined) {
|
|
@@ -63600,6 +63758,9 @@ const deserializeAws_ec2TunnelOption = (output, context) => {
|
|
|
63600
63758
|
if (output["logOptions"] !== undefined) {
|
|
63601
63759
|
contents.LogOptions = deserializeAws_ec2VpnTunnelLogOptions(output["logOptions"], context);
|
|
63602
63760
|
}
|
|
63761
|
+
if (output["enableTunnelLifecycleControl"] !== undefined) {
|
|
63762
|
+
contents.EnableTunnelLifecycleControl = __parseBoolean(output["enableTunnelLifecycleControl"]);
|
|
63763
|
+
}
|
|
63603
63764
|
return contents;
|
|
63604
63765
|
};
|
|
63605
63766
|
const deserializeAws_ec2TunnelOptionsList = (output, context) => {
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -450,6 +450,7 @@ import { GetVerifiedAccessEndpointPolicyCommandInput, GetVerifiedAccessEndpointP
|
|
|
450
450
|
import { GetVerifiedAccessGroupPolicyCommandInput, GetVerifiedAccessGroupPolicyCommandOutput } from "./commands/GetVerifiedAccessGroupPolicyCommand";
|
|
451
451
|
import { GetVpnConnectionDeviceSampleConfigurationCommandInput, GetVpnConnectionDeviceSampleConfigurationCommandOutput } from "./commands/GetVpnConnectionDeviceSampleConfigurationCommand";
|
|
452
452
|
import { GetVpnConnectionDeviceTypesCommandInput, GetVpnConnectionDeviceTypesCommandOutput } from "./commands/GetVpnConnectionDeviceTypesCommand";
|
|
453
|
+
import { GetVpnTunnelReplacementStatusCommandInput, GetVpnTunnelReplacementStatusCommandOutput } from "./commands/GetVpnTunnelReplacementStatusCommand";
|
|
453
454
|
import { ImportClientVpnClientCertificateRevocationListCommandInput, ImportClientVpnClientCertificateRevocationListCommandOutput } from "./commands/ImportClientVpnClientCertificateRevocationListCommand";
|
|
454
455
|
import { ImportImageCommandInput, ImportImageCommandOutput } from "./commands/ImportImageCommand";
|
|
455
456
|
import { ImportInstanceCommandInput, ImportInstanceCommandOutput } from "./commands/ImportInstanceCommand";
|
|
@@ -550,6 +551,7 @@ import { ReplaceNetworkAclEntryCommandInput, ReplaceNetworkAclEntryCommandOutput
|
|
|
550
551
|
import { ReplaceRouteCommandInput, ReplaceRouteCommandOutput } from "./commands/ReplaceRouteCommand";
|
|
551
552
|
import { ReplaceRouteTableAssociationCommandInput, ReplaceRouteTableAssociationCommandOutput } from "./commands/ReplaceRouteTableAssociationCommand";
|
|
552
553
|
import { ReplaceTransitGatewayRouteCommandInput, ReplaceTransitGatewayRouteCommandOutput } from "./commands/ReplaceTransitGatewayRouteCommand";
|
|
554
|
+
import { ReplaceVpnTunnelCommandInput, ReplaceVpnTunnelCommandOutput } from "./commands/ReplaceVpnTunnelCommand";
|
|
553
555
|
import { ReportInstanceStatusCommandInput, ReportInstanceStatusCommandOutput } from "./commands/ReportInstanceStatusCommand";
|
|
554
556
|
import { RequestSpotFleetCommandInput, RequestSpotFleetCommandOutput } from "./commands/RequestSpotFleetCommand";
|
|
555
557
|
import { RequestSpotInstancesCommandInput, RequestSpotInstancesCommandOutput } from "./commands/RequestSpotInstancesCommand";
|
|
@@ -5431,6 +5433,13 @@ export declare class EC2 extends EC2Client {
|
|
|
5431
5433
|
getVpnConnectionDeviceTypes(args: GetVpnConnectionDeviceTypesCommandInput, options?: __HttpHandlerOptions): Promise<GetVpnConnectionDeviceTypesCommandOutput>;
|
|
5432
5434
|
getVpnConnectionDeviceTypes(args: GetVpnConnectionDeviceTypesCommandInput, cb: (err: any, data?: GetVpnConnectionDeviceTypesCommandOutput) => void): void;
|
|
5433
5435
|
getVpnConnectionDeviceTypes(args: GetVpnConnectionDeviceTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetVpnConnectionDeviceTypesCommandOutput) => void): void;
|
|
5436
|
+
/**
|
|
5437
|
+
* @public
|
|
5438
|
+
* <p>Get details of available tunnel endpoint maintenance.</p>
|
|
5439
|
+
*/
|
|
5440
|
+
getVpnTunnelReplacementStatus(args: GetVpnTunnelReplacementStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetVpnTunnelReplacementStatusCommandOutput>;
|
|
5441
|
+
getVpnTunnelReplacementStatus(args: GetVpnTunnelReplacementStatusCommandInput, cb: (err: any, data?: GetVpnTunnelReplacementStatusCommandOutput) => void): void;
|
|
5442
|
+
getVpnTunnelReplacementStatus(args: GetVpnTunnelReplacementStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetVpnTunnelReplacementStatusCommandOutput) => void): void;
|
|
5434
5443
|
/**
|
|
5435
5444
|
* @public
|
|
5436
5445
|
* <p>Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.</p>
|
|
@@ -6700,6 +6709,13 @@ export declare class EC2 extends EC2Client {
|
|
|
6700
6709
|
replaceTransitGatewayRoute(args: ReplaceTransitGatewayRouteCommandInput, options?: __HttpHandlerOptions): Promise<ReplaceTransitGatewayRouteCommandOutput>;
|
|
6701
6710
|
replaceTransitGatewayRoute(args: ReplaceTransitGatewayRouteCommandInput, cb: (err: any, data?: ReplaceTransitGatewayRouteCommandOutput) => void): void;
|
|
6702
6711
|
replaceTransitGatewayRoute(args: ReplaceTransitGatewayRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ReplaceTransitGatewayRouteCommandOutput) => void): void;
|
|
6712
|
+
/**
|
|
6713
|
+
* @public
|
|
6714
|
+
* <p>Trigger replacement of specified VPN tunnel.</p>
|
|
6715
|
+
*/
|
|
6716
|
+
replaceVpnTunnel(args: ReplaceVpnTunnelCommandInput, options?: __HttpHandlerOptions): Promise<ReplaceVpnTunnelCommandOutput>;
|
|
6717
|
+
replaceVpnTunnel(args: ReplaceVpnTunnelCommandInput, cb: (err: any, data?: ReplaceVpnTunnelCommandOutput) => void): void;
|
|
6718
|
+
replaceVpnTunnel(args: ReplaceVpnTunnelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ReplaceVpnTunnelCommandOutput) => void): void;
|
|
6703
6719
|
/**
|
|
6704
6720
|
* @public
|
|
6705
6721
|
* <p>Submits feedback about the status of an instance. The instance must be in the
|