@aws-sdk/client-ec2 3.56.0 → 3.60.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/CHANGELOG.md +30 -0
- package/dist-cjs/EC2.js +15 -0
- package/dist-cjs/commands/CreateTransitGatewayConnectCommand.js +2 -1
- package/dist-cjs/commands/CreateTransitGatewayConnectPeerCommand.js +1 -2
- package/dist-cjs/commands/DescribeCoipPoolsCommand.js +2 -1
- package/dist-cjs/commands/DescribeConversionTasksCommand.js +1 -2
- package/dist-cjs/commands/DescribeReplaceRootVolumeTasksCommand.js +3 -3
- package/dist-cjs/commands/DescribeReservedInstancesCommand.js +1 -2
- package/dist-cjs/commands/GetGroupsForCapacityReservationCommand.js +3 -3
- package/dist-cjs/commands/GetHostReservationPurchasePreviewCommand.js +3 -3
- package/dist-cjs/commands/GetInstanceTypesFromInstanceRequirementsCommand.js +1 -2
- package/dist-cjs/commands/ModifyInstanceMaintenanceOptionsCommand.js +36 -0
- package/dist-cjs/commands/ResetAddressAttributeCommand.js +3 -3
- package/dist-cjs/commands/ResetEbsDefaultKmsKeyIdCommand.js +3 -3
- package/dist-cjs/commands/ResetFpgaImageAttributeCommand.js +3 -3
- package/dist-cjs/commands/ResetImageAttributeCommand.js +2 -2
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +18 -17
- package/dist-cjs/models/models_1.js +34 -36
- package/dist-cjs/models/models_2.js +36 -36
- package/dist-cjs/models/models_3.js +47 -29
- package/dist-cjs/models/models_4.js +29 -48
- package/dist-cjs/models/models_5.js +60 -48
- package/dist-cjs/models/models_6.js +50 -2
- package/dist-cjs/protocols/Aws_ec2.js +226 -13
- package/dist-es/EC2.js +15 -0
- package/dist-es/commands/CreateTransitGatewayConnectCommand.js +2 -1
- package/dist-es/commands/CreateTransitGatewayConnectPeerCommand.js +1 -2
- package/dist-es/commands/DescribeCoipPoolsCommand.js +2 -1
- package/dist-es/commands/DescribeConversionTasksCommand.js +1 -2
- package/dist-es/commands/DescribeReplaceRootVolumeTasksCommand.js +1 -1
- package/dist-es/commands/DescribeReservedInstancesCommand.js +1 -2
- package/dist-es/commands/GetGroupsForCapacityReservationCommand.js +1 -1
- package/dist-es/commands/GetHostReservationPurchasePreviewCommand.js +1 -1
- package/dist-es/commands/GetInstanceTypesFromInstanceRequirementsCommand.js +1 -2
- package/dist-es/commands/ModifyInstanceMaintenanceOptionsCommand.js +39 -0
- package/dist-es/commands/ResetAddressAttributeCommand.js +1 -1
- package/dist-es/commands/ResetEbsDefaultKmsKeyIdCommand.js +1 -1
- package/dist-es/commands/ResetFpgaImageAttributeCommand.js +1 -1
- package/dist-es/commands/ResetImageAttributeCommand.js +1 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +8 -11
- package/dist-es/models/models_1.js +24 -20
- package/dist-es/models/models_2.js +20 -20
- package/dist-es/models/models_3.js +29 -17
- package/dist-es/models/models_4.js +17 -28
- package/dist-es/models/models_5.js +36 -28
- package/dist-es/models/models_6.js +32 -0
- package/dist-es/protocols/Aws_ec2.js +224 -0
- package/dist-types/EC2.d.ts +91 -65
- package/dist-types/EC2Client.d.ts +3 -2
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
- package/dist-types/commands/CreateTransitGatewayConnectCommand.d.ts +2 -1
- package/dist-types/commands/CreateTransitGatewayConnectPeerCommand.d.ts +1 -2
- package/dist-types/commands/DeleteLaunchTemplateCommand.d.ts +2 -1
- package/dist-types/commands/DescribeCoipPoolsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeConversionTasksCommand.d.ts +1 -2
- package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +2 -1
- package/dist-types/commands/DescribeInstancesCommand.d.ts +8 -7
- package/dist-types/commands/DescribeReplaceRootVolumeTasksCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -2
- package/dist-types/commands/GetDefaultCreditSpecificationCommand.d.ts +3 -2
- package/dist-types/commands/GetGroupsForCapacityReservationCommand.d.ts +1 -1
- package/dist-types/commands/GetHostReservationPurchasePreviewCommand.d.ts +1 -1
- package/dist-types/commands/GetInstanceTypesFromInstanceRequirementsCommand.d.ts +1 -2
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +7 -5
- package/dist-types/commands/GetPasswordDataCommand.d.ts +1 -1
- package/dist-types/commands/ModifyDefaultCreditSpecificationCommand.d.ts +11 -10
- package/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +2 -1
- package/dist-types/commands/ModifyInstanceMaintenanceOptionsCommand.d.ts +38 -0
- package/dist-types/commands/ModifyInstanceMetadataOptionsCommand.d.ts +2 -2
- package/dist-types/commands/RebootInstancesCommand.d.ts +1 -1
- package/dist-types/commands/ResetAddressAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
- package/dist-types/commands/ResetFpgaImageAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ResetImageAttributeCommand.d.ts +1 -1
- package/dist-types/commands/SendDiagnosticInterruptCommand.d.ts +14 -12
- package/dist-types/commands/StartInstancesCommand.d.ts +5 -4
- package/dist-types/commands/StopInstancesCommand.d.ts +2 -1
- package/dist-types/commands/TerminateInstancesCommand.d.ts +17 -14
- package/dist-types/commands/UnmonitorInstancesCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +93 -25
- package/dist-types/models/models_1.d.ts +353 -372
- package/dist-types/models/models_2.d.ts +128 -118
- package/dist-types/models/models_3.d.ts +230 -225
- package/dist-types/models/models_4.d.ts +169 -189
- package/dist-types/models/models_5.d.ts +277 -166
- package/dist-types/models/models_6.d.ts +217 -66
- package/dist-types/protocols/Aws_ec2.d.ts +3 -0
- package/dist-types/ts3.4/EC2.d.ts +5 -0
- package/dist-types/ts3.4/EC2Client.d.ts +3 -2
- package/dist-types/ts3.4/commands/CreateTransitGatewayConnectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CreateTransitGatewayConnectPeerCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DescribeCoipPoolsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DescribeConversionTasksCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DescribeReplaceRootVolumeTasksCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeReservedInstancesCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/GetGroupsForCapacityReservationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetHostReservationPurchasePreviewCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInstanceTypesFromInstanceRequirementsCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ModifyInstanceMaintenanceOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResetAddressAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetFpgaImageAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetImageAttributeCommand.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 +38 -9
- package/dist-types/ts3.4/models/models_1.d.ts +36 -68
- package/dist-types/ts3.4/models/models_2.d.ts +69 -65
- package/dist-types/ts3.4/models/models_3.d.ts +89 -53
- package/dist-types/ts3.4/models/models_4.d.ts +53 -103
- package/dist-types/ts3.4/models/models_5.d.ts +125 -74
- package/dist-types/ts3.4/models/models_6.d.ts +84 -2
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +3 -0
- package/package.json +19 -19
|
@@ -4205,6 +4205,16 @@ export var serializeAws_ec2ModifyInstanceEventWindowCommand = function (input, c
|
|
|
4205
4205
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
4206
4206
|
});
|
|
4207
4207
|
}); };
|
|
4208
|
+
export var serializeAws_ec2ModifyInstanceMaintenanceOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4209
|
+
var headers, body;
|
|
4210
|
+
return __generator(this, function (_a) {
|
|
4211
|
+
headers = {
|
|
4212
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4213
|
+
};
|
|
4214
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2ModifyInstanceMaintenanceOptionsRequest(input, context)), { Action: "ModifyInstanceMaintenanceOptions", Version: "2016-11-15" }));
|
|
4215
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
4216
|
+
});
|
|
4217
|
+
}); };
|
|
4208
4218
|
export var serializeAws_ec2ModifyInstanceMetadataOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4209
4219
|
var headers, body;
|
|
4210
4220
|
return __generator(this, function (_a) {
|
|
@@ -24115,6 +24125,51 @@ var deserializeAws_ec2ModifyInstanceEventWindowCommandError = function (output,
|
|
|
24115
24125
|
}
|
|
24116
24126
|
});
|
|
24117
24127
|
}); };
|
|
24128
|
+
export var deserializeAws_ec2ModifyInstanceMaintenanceOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24129
|
+
var data, contents, response;
|
|
24130
|
+
return __generator(this, function (_a) {
|
|
24131
|
+
switch (_a.label) {
|
|
24132
|
+
case 0:
|
|
24133
|
+
if (output.statusCode >= 300) {
|
|
24134
|
+
return [2, deserializeAws_ec2ModifyInstanceMaintenanceOptionsCommandError(output, context)];
|
|
24135
|
+
}
|
|
24136
|
+
return [4, parseBody(output.body, context)];
|
|
24137
|
+
case 1:
|
|
24138
|
+
data = _a.sent();
|
|
24139
|
+
contents = {};
|
|
24140
|
+
contents = deserializeAws_ec2ModifyInstanceMaintenanceOptionsResult(data, context);
|
|
24141
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
24142
|
+
return [2, Promise.resolve(response)];
|
|
24143
|
+
}
|
|
24144
|
+
});
|
|
24145
|
+
}); };
|
|
24146
|
+
var deserializeAws_ec2ModifyInstanceMaintenanceOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24147
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
24148
|
+
var _b;
|
|
24149
|
+
return __generator(this, function (_c) {
|
|
24150
|
+
switch (_c.label) {
|
|
24151
|
+
case 0:
|
|
24152
|
+
_a = [__assign({}, output)];
|
|
24153
|
+
_b = {};
|
|
24154
|
+
return [4, parseBody(output.body, context)];
|
|
24155
|
+
case 1:
|
|
24156
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
24157
|
+
errorCode = "UnknownError";
|
|
24158
|
+
errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
24159
|
+
switch (errorCode) {
|
|
24160
|
+
default:
|
|
24161
|
+
parsedBody = parsedOutput.body;
|
|
24162
|
+
response = new __BaseException({
|
|
24163
|
+
name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode,
|
|
24164
|
+
$fault: "client",
|
|
24165
|
+
$metadata: deserializeMetadata(output),
|
|
24166
|
+
});
|
|
24167
|
+
throw __decorateServiceException(response, parsedBody.Errors.Error);
|
|
24168
|
+
}
|
|
24169
|
+
return [2];
|
|
24170
|
+
}
|
|
24171
|
+
});
|
|
24172
|
+
}); };
|
|
24118
24173
|
export var deserializeAws_ec2ModifyInstanceMetadataOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24119
24174
|
var data, contents, response;
|
|
24120
24175
|
return __generator(this, function (_a) {
|
|
@@ -40402,6 +40457,13 @@ var serializeAws_ec2InstanceIpv6AddressRequest = function (input, context) {
|
|
|
40402
40457
|
}
|
|
40403
40458
|
return entries;
|
|
40404
40459
|
};
|
|
40460
|
+
var serializeAws_ec2InstanceMaintenanceOptionsRequest = function (input, context) {
|
|
40461
|
+
var entries = {};
|
|
40462
|
+
if (input.AutoRecovery !== undefined && input.AutoRecovery !== null) {
|
|
40463
|
+
entries["AutoRecovery"] = input.AutoRecovery;
|
|
40464
|
+
}
|
|
40465
|
+
return entries;
|
|
40466
|
+
};
|
|
40405
40467
|
var serializeAws_ec2InstanceMarketOptionsRequest = function (input, context) {
|
|
40406
40468
|
var entries = {};
|
|
40407
40469
|
if (input.MarketType !== undefined && input.MarketType !== null) {
|
|
@@ -41663,6 +41725,13 @@ var serializeAws_ec2LaunchTemplateIdStringList = function (input, context) {
|
|
|
41663
41725
|
}
|
|
41664
41726
|
return entries;
|
|
41665
41727
|
};
|
|
41728
|
+
var serializeAws_ec2LaunchTemplateInstanceMaintenanceOptionsRequest = function (input, context) {
|
|
41729
|
+
var entries = {};
|
|
41730
|
+
if (input.AutoRecovery !== undefined && input.AutoRecovery !== null) {
|
|
41731
|
+
entries["AutoRecovery"] = input.AutoRecovery;
|
|
41732
|
+
}
|
|
41733
|
+
return entries;
|
|
41734
|
+
};
|
|
41666
41735
|
var serializeAws_ec2LaunchTemplateInstanceMarketOptionsRequest = function (input, context) {
|
|
41667
41736
|
var entries = {};
|
|
41668
41737
|
if (input.MarketType !== undefined && input.MarketType !== null) {
|
|
@@ -42960,6 +43029,19 @@ var serializeAws_ec2ModifyInstanceEventWindowRequest = function (input, context)
|
|
|
42960
43029
|
}
|
|
42961
43030
|
return entries;
|
|
42962
43031
|
};
|
|
43032
|
+
var serializeAws_ec2ModifyInstanceMaintenanceOptionsRequest = function (input, context) {
|
|
43033
|
+
var entries = {};
|
|
43034
|
+
if (input.InstanceId !== undefined && input.InstanceId !== null) {
|
|
43035
|
+
entries["InstanceId"] = input.InstanceId;
|
|
43036
|
+
}
|
|
43037
|
+
if (input.AutoRecovery !== undefined && input.AutoRecovery !== null) {
|
|
43038
|
+
entries["AutoRecovery"] = input.AutoRecovery;
|
|
43039
|
+
}
|
|
43040
|
+
if (input.DryRun !== undefined && input.DryRun !== null) {
|
|
43041
|
+
entries["DryRun"] = input.DryRun;
|
|
43042
|
+
}
|
|
43043
|
+
return entries;
|
|
43044
|
+
};
|
|
42963
43045
|
var serializeAws_ec2ModifyInstanceMetadataOptionsRequest = function (input, context) {
|
|
42964
43046
|
var entries = {};
|
|
42965
43047
|
if (input.InstanceId !== undefined && input.InstanceId !== null) {
|
|
@@ -46331,6 +46413,14 @@ var serializeAws_ec2RequestLaunchTemplateData = function (input, context) {
|
|
|
46331
46413
|
entries[loc] = value;
|
|
46332
46414
|
});
|
|
46333
46415
|
}
|
|
46416
|
+
if (input.MaintenanceOptions !== undefined && input.MaintenanceOptions !== null) {
|
|
46417
|
+
var memberEntries = serializeAws_ec2LaunchTemplateInstanceMaintenanceOptionsRequest(input.MaintenanceOptions, context);
|
|
46418
|
+
Object.entries(memberEntries).forEach(function (_a) {
|
|
46419
|
+
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
46420
|
+
var loc = "MaintenanceOptions.".concat(key);
|
|
46421
|
+
entries[loc] = value;
|
|
46422
|
+
});
|
|
46423
|
+
}
|
|
46334
46424
|
return entries;
|
|
46335
46425
|
};
|
|
46336
46426
|
var serializeAws_ec2RequestSpotFleetRequest = function (input, context) {
|
|
@@ -47334,6 +47424,14 @@ var serializeAws_ec2RunInstancesRequest = function (input, context) {
|
|
|
47334
47424
|
entries[loc] = value;
|
|
47335
47425
|
});
|
|
47336
47426
|
}
|
|
47427
|
+
if (input.MaintenanceOptions !== undefined && input.MaintenanceOptions !== null) {
|
|
47428
|
+
var memberEntries = serializeAws_ec2InstanceMaintenanceOptionsRequest(input.MaintenanceOptions, context);
|
|
47429
|
+
Object.entries(memberEntries).forEach(function (_a) {
|
|
47430
|
+
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
47431
|
+
var loc = "MaintenanceOptions.".concat(key);
|
|
47432
|
+
entries[loc] = value;
|
|
47433
|
+
});
|
|
47434
|
+
}
|
|
47337
47435
|
return entries;
|
|
47338
47436
|
};
|
|
47339
47437
|
var serializeAws_ec2RunScheduledInstancesRequest = function (input, context) {
|
|
@@ -50358,6 +50456,29 @@ var deserializeAws_ec2ActiveInstanceSet = function (output, context) {
|
|
|
50358
50456
|
return deserializeAws_ec2ActiveInstance(entry, context);
|
|
50359
50457
|
});
|
|
50360
50458
|
};
|
|
50459
|
+
var deserializeAws_ec2AdditionalDetail = function (output, context) {
|
|
50460
|
+
var contents = {
|
|
50461
|
+
AdditionalDetailType: undefined,
|
|
50462
|
+
Component: undefined,
|
|
50463
|
+
};
|
|
50464
|
+
if (output["additionalDetailType"] !== undefined) {
|
|
50465
|
+
contents.AdditionalDetailType = __expectString(output["additionalDetailType"]);
|
|
50466
|
+
}
|
|
50467
|
+
if (output["component"] !== undefined) {
|
|
50468
|
+
contents.Component = deserializeAws_ec2AnalysisComponent(output["component"], context);
|
|
50469
|
+
}
|
|
50470
|
+
return contents;
|
|
50471
|
+
};
|
|
50472
|
+
var deserializeAws_ec2AdditionalDetailList = function (output, context) {
|
|
50473
|
+
return (output || [])
|
|
50474
|
+
.filter(function (e) { return e != null; })
|
|
50475
|
+
.map(function (entry) {
|
|
50476
|
+
if (entry === null) {
|
|
50477
|
+
return null;
|
|
50478
|
+
}
|
|
50479
|
+
return deserializeAws_ec2AdditionalDetail(entry, context);
|
|
50480
|
+
});
|
|
50481
|
+
};
|
|
50361
50482
|
var deserializeAws_ec2Address = function (output, context) {
|
|
50362
50483
|
var contents = {
|
|
50363
50484
|
InstanceId: undefined,
|
|
@@ -57686,6 +57807,10 @@ var deserializeAws_ec2Explanation = function (output, context) {
|
|
|
57686
57807
|
VpcEndpoint: undefined,
|
|
57687
57808
|
VpnConnection: undefined,
|
|
57688
57809
|
VpnGateway: undefined,
|
|
57810
|
+
TransitGateway: undefined,
|
|
57811
|
+
TransitGatewayRouteTable: undefined,
|
|
57812
|
+
TransitGatewayRouteTableRoute: undefined,
|
|
57813
|
+
TransitGatewayAttachment: undefined,
|
|
57689
57814
|
};
|
|
57690
57815
|
if (output["acl"] !== undefined) {
|
|
57691
57816
|
contents.Acl = deserializeAws_ec2AnalysisComponent(output["acl"], context);
|
|
@@ -57844,6 +57969,18 @@ var deserializeAws_ec2Explanation = function (output, context) {
|
|
|
57844
57969
|
if (output["vpnGateway"] !== undefined) {
|
|
57845
57970
|
contents.VpnGateway = deserializeAws_ec2AnalysisComponent(output["vpnGateway"], context);
|
|
57846
57971
|
}
|
|
57972
|
+
if (output["transitGateway"] !== undefined) {
|
|
57973
|
+
contents.TransitGateway = deserializeAws_ec2AnalysisComponent(output["transitGateway"], context);
|
|
57974
|
+
}
|
|
57975
|
+
if (output["transitGatewayRouteTable"] !== undefined) {
|
|
57976
|
+
contents.TransitGatewayRouteTable = deserializeAws_ec2AnalysisComponent(output["transitGatewayRouteTable"], context);
|
|
57977
|
+
}
|
|
57978
|
+
if (output["transitGatewayRouteTableRoute"] !== undefined) {
|
|
57979
|
+
contents.TransitGatewayRouteTableRoute = deserializeAws_ec2TransitGatewayRouteTableRoute(output["transitGatewayRouteTableRoute"], context);
|
|
57980
|
+
}
|
|
57981
|
+
if (output["transitGatewayAttachment"] !== undefined) {
|
|
57982
|
+
contents.TransitGatewayAttachment = deserializeAws_ec2AnalysisComponent(output["transitGatewayAttachment"], context);
|
|
57983
|
+
}
|
|
57847
57984
|
return contents;
|
|
57848
57985
|
};
|
|
57849
57986
|
var deserializeAws_ec2ExplanationList = function (output, context) {
|
|
@@ -60524,6 +60661,7 @@ var deserializeAws_ec2Instance = function (output, context) {
|
|
|
60524
60661
|
UsageOperationUpdateTime: undefined,
|
|
60525
60662
|
PrivateDnsNameOptions: undefined,
|
|
60526
60663
|
Ipv6Address: undefined,
|
|
60664
|
+
MaintenanceOptions: undefined,
|
|
60527
60665
|
};
|
|
60528
60666
|
if (output["amiLaunchIndex"] !== undefined) {
|
|
60529
60667
|
contents.AmiLaunchIndex = __strictParseInt32(output["amiLaunchIndex"]);
|
|
@@ -60712,6 +60850,9 @@ var deserializeAws_ec2Instance = function (output, context) {
|
|
|
60712
60850
|
if (output["ipv6Address"] !== undefined) {
|
|
60713
60851
|
contents.Ipv6Address = __expectString(output["ipv6Address"]);
|
|
60714
60852
|
}
|
|
60853
|
+
if (output["maintenanceOptions"] !== undefined) {
|
|
60854
|
+
contents.MaintenanceOptions = deserializeAws_ec2InstanceMaintenanceOptions(output["maintenanceOptions"], context);
|
|
60855
|
+
}
|
|
60715
60856
|
return contents;
|
|
60716
60857
|
};
|
|
60717
60858
|
var deserializeAws_ec2InstanceAttribute = function (output, context) {
|
|
@@ -61130,6 +61271,15 @@ var deserializeAws_ec2InstanceList = function (output, context) {
|
|
|
61130
61271
|
return deserializeAws_ec2Instance(entry, context);
|
|
61131
61272
|
});
|
|
61132
61273
|
};
|
|
61274
|
+
var deserializeAws_ec2InstanceMaintenanceOptions = function (output, context) {
|
|
61275
|
+
var contents = {
|
|
61276
|
+
AutoRecovery: undefined,
|
|
61277
|
+
};
|
|
61278
|
+
if (output["autoRecovery"] !== undefined) {
|
|
61279
|
+
contents.AutoRecovery = __expectString(output["autoRecovery"]);
|
|
61280
|
+
}
|
|
61281
|
+
return contents;
|
|
61282
|
+
};
|
|
61133
61283
|
var deserializeAws_ec2InstanceMetadataOptionsResponse = function (output, context) {
|
|
61134
61284
|
var contents = {
|
|
61135
61285
|
State: undefined,
|
|
@@ -63306,6 +63456,15 @@ var deserializeAws_ec2LaunchTemplateIamInstanceProfileSpecification = function (
|
|
|
63306
63456
|
}
|
|
63307
63457
|
return contents;
|
|
63308
63458
|
};
|
|
63459
|
+
var deserializeAws_ec2LaunchTemplateInstanceMaintenanceOptions = function (output, context) {
|
|
63460
|
+
var contents = {
|
|
63461
|
+
AutoRecovery: undefined,
|
|
63462
|
+
};
|
|
63463
|
+
if (output["autoRecovery"] !== undefined) {
|
|
63464
|
+
contents.AutoRecovery = __expectString(output["autoRecovery"]);
|
|
63465
|
+
}
|
|
63466
|
+
return contents;
|
|
63467
|
+
};
|
|
63309
63468
|
var deserializeAws_ec2LaunchTemplateInstanceMarketOptions = function (output, context) {
|
|
63310
63469
|
var contents = {
|
|
63311
63470
|
MarketType: undefined,
|
|
@@ -64358,6 +64517,19 @@ var deserializeAws_ec2ModifyInstanceEventWindowResult = function (output, contex
|
|
|
64358
64517
|
}
|
|
64359
64518
|
return contents;
|
|
64360
64519
|
};
|
|
64520
|
+
var deserializeAws_ec2ModifyInstanceMaintenanceOptionsResult = function (output, context) {
|
|
64521
|
+
var contents = {
|
|
64522
|
+
InstanceId: undefined,
|
|
64523
|
+
AutoRecovery: undefined,
|
|
64524
|
+
};
|
|
64525
|
+
if (output["instanceId"] !== undefined) {
|
|
64526
|
+
contents.InstanceId = __expectString(output["instanceId"]);
|
|
64527
|
+
}
|
|
64528
|
+
if (output["autoRecovery"] !== undefined) {
|
|
64529
|
+
contents.AutoRecovery = __expectString(output["autoRecovery"]);
|
|
64530
|
+
}
|
|
64531
|
+
return contents;
|
|
64532
|
+
};
|
|
64361
64533
|
var deserializeAws_ec2ModifyInstanceMetadataOptionsResult = function (output, context) {
|
|
64362
64534
|
var contents = {
|
|
64363
64535
|
InstanceId: undefined,
|
|
@@ -65723,6 +65895,9 @@ var deserializeAws_ec2PathComponent = function (output, context) {
|
|
|
65723
65895
|
SourceVpc: undefined,
|
|
65724
65896
|
Subnet: undefined,
|
|
65725
65897
|
Vpc: undefined,
|
|
65898
|
+
AdditionalDetails: undefined,
|
|
65899
|
+
TransitGateway: undefined,
|
|
65900
|
+
TransitGatewayRouteTableRoute: undefined,
|
|
65726
65901
|
};
|
|
65727
65902
|
if (output["sequenceNumber"] !== undefined) {
|
|
65728
65903
|
contents.SequenceNumber = __strictParseInt32(output["sequenceNumber"]);
|
|
@@ -65760,6 +65935,18 @@ var deserializeAws_ec2PathComponent = function (output, context) {
|
|
|
65760
65935
|
if (output["vpc"] !== undefined) {
|
|
65761
65936
|
contents.Vpc = deserializeAws_ec2AnalysisComponent(output["vpc"], context);
|
|
65762
65937
|
}
|
|
65938
|
+
if (output.additionalDetailSet === "") {
|
|
65939
|
+
contents.AdditionalDetails = [];
|
|
65940
|
+
}
|
|
65941
|
+
if (output["additionalDetailSet"] !== undefined && output["additionalDetailSet"]["item"] !== undefined) {
|
|
65942
|
+
contents.AdditionalDetails = deserializeAws_ec2AdditionalDetailList(__getArrayIfSingleItem(output["additionalDetailSet"]["item"]), context);
|
|
65943
|
+
}
|
|
65944
|
+
if (output["transitGateway"] !== undefined) {
|
|
65945
|
+
contents.TransitGateway = deserializeAws_ec2AnalysisComponent(output["transitGateway"], context);
|
|
65946
|
+
}
|
|
65947
|
+
if (output["transitGatewayRouteTableRoute"] !== undefined) {
|
|
65948
|
+
contents.TransitGatewayRouteTableRoute = deserializeAws_ec2TransitGatewayRouteTableRoute(output["transitGatewayRouteTableRoute"], context);
|
|
65949
|
+
}
|
|
65763
65950
|
return contents;
|
|
65764
65951
|
};
|
|
65765
65952
|
var deserializeAws_ec2PathComponentList = function (output, context) {
|
|
@@ -67582,6 +67769,7 @@ var deserializeAws_ec2ResponseLaunchTemplateData = function (output, context) {
|
|
|
67582
67769
|
EnclaveOptions: undefined,
|
|
67583
67770
|
InstanceRequirements: undefined,
|
|
67584
67771
|
PrivateDnsNameOptions: undefined,
|
|
67772
|
+
MaintenanceOptions: undefined,
|
|
67585
67773
|
};
|
|
67586
67774
|
if (output["kernelId"] !== undefined) {
|
|
67587
67775
|
contents.KernelId = __expectString(output["kernelId"]);
|
|
@@ -67697,6 +67885,9 @@ var deserializeAws_ec2ResponseLaunchTemplateData = function (output, context) {
|
|
|
67697
67885
|
if (output["privateDnsNameOptions"] !== undefined) {
|
|
67698
67886
|
contents.PrivateDnsNameOptions = deserializeAws_ec2LaunchTemplatePrivateDnsNameOptions(output["privateDnsNameOptions"], context);
|
|
67699
67887
|
}
|
|
67888
|
+
if (output["maintenanceOptions"] !== undefined) {
|
|
67889
|
+
contents.MaintenanceOptions = deserializeAws_ec2LaunchTemplateInstanceMaintenanceOptions(output["maintenanceOptions"], context);
|
|
67890
|
+
}
|
|
67700
67891
|
return contents;
|
|
67701
67892
|
};
|
|
67702
67893
|
var deserializeAws_ec2RestoreAddressToClassicResult = function (output, context) {
|
|
@@ -71576,6 +71767,39 @@ var deserializeAws_ec2TransitGatewayRouteTablePropagationList = function (output
|
|
|
71576
71767
|
return deserializeAws_ec2TransitGatewayRouteTablePropagation(entry, context);
|
|
71577
71768
|
});
|
|
71578
71769
|
};
|
|
71770
|
+
var deserializeAws_ec2TransitGatewayRouteTableRoute = function (output, context) {
|
|
71771
|
+
var contents = {
|
|
71772
|
+
DestinationCidr: undefined,
|
|
71773
|
+
State: undefined,
|
|
71774
|
+
RouteOrigin: undefined,
|
|
71775
|
+
PrefixListId: undefined,
|
|
71776
|
+
AttachmentId: undefined,
|
|
71777
|
+
ResourceId: undefined,
|
|
71778
|
+
ResourceType: undefined,
|
|
71779
|
+
};
|
|
71780
|
+
if (output["destinationCidr"] !== undefined) {
|
|
71781
|
+
contents.DestinationCidr = __expectString(output["destinationCidr"]);
|
|
71782
|
+
}
|
|
71783
|
+
if (output["state"] !== undefined) {
|
|
71784
|
+
contents.State = __expectString(output["state"]);
|
|
71785
|
+
}
|
|
71786
|
+
if (output["routeOrigin"] !== undefined) {
|
|
71787
|
+
contents.RouteOrigin = __expectString(output["routeOrigin"]);
|
|
71788
|
+
}
|
|
71789
|
+
if (output["prefixListId"] !== undefined) {
|
|
71790
|
+
contents.PrefixListId = __expectString(output["prefixListId"]);
|
|
71791
|
+
}
|
|
71792
|
+
if (output["attachmentId"] !== undefined) {
|
|
71793
|
+
contents.AttachmentId = __expectString(output["attachmentId"]);
|
|
71794
|
+
}
|
|
71795
|
+
if (output["resourceId"] !== undefined) {
|
|
71796
|
+
contents.ResourceId = __expectString(output["resourceId"]);
|
|
71797
|
+
}
|
|
71798
|
+
if (output["resourceType"] !== undefined) {
|
|
71799
|
+
contents.ResourceType = __expectString(output["resourceType"]);
|
|
71800
|
+
}
|
|
71801
|
+
return contents;
|
|
71802
|
+
};
|
|
71579
71803
|
var deserializeAws_ec2TransitGatewayVpcAttachment = function (output, context) {
|
|
71580
71804
|
var contents = {
|
|
71581
71805
|
TransitGatewayAttachmentId: undefined,
|