@aws-sdk/client-direct-connect 3.37.0 → 3.38.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 +13 -0
- package/README.md +2 -2
- package/dist-cjs/DirectConnect.js +60 -0
- package/dist-cjs/commands/ConfirmCustomerAgreementCommand.js +36 -0
- package/dist-cjs/commands/DescribeCustomerMetadataCommand.js +36 -0
- package/dist-cjs/commands/DescribeRouterConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateDirectConnectGatewayCommand.js +36 -0
- package/dist-cjs/commands/index.js +66 -0
- package/dist-cjs/index.js +3 -61
- package/dist-cjs/models/models_0.js +63 -3
- package/dist-cjs/protocols/Aws_json1_1.js +339 -3
- package/dist-es/DirectConnect.js +60 -0
- package/dist-es/commands/ConfirmCustomerAgreementCommand.js +39 -0
- package/dist-es/commands/DescribeCustomerMetadataCommand.js +39 -0
- package/dist-es/commands/DescribeRouterConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateDirectConnectGatewayCommand.js +39 -0
- package/dist-es/commands/index.js +63 -0
- package/dist-es/index.js +3 -61
- package/dist-es/models/models_0.js +42 -0
- package/dist-es/protocols/Aws_json1_1.js +369 -0
- package/dist-types/DirectConnect.d.ts +51 -19
- package/dist-types/DirectConnectClient.d.ts +8 -4
- package/dist-types/commands/AllocatePrivateVirtualInterfaceCommand.d.ts +1 -1
- package/dist-types/commands/AllocatePublicVirtualInterfaceCommand.d.ts +2 -2
- package/dist-types/commands/AllocateTransitVirtualInterfaceCommand.d.ts +2 -2
- package/dist-types/commands/ConfirmCustomerAgreementCommand.d.ts +37 -0
- package/dist-types/commands/ConfirmPrivateVirtualInterfaceCommand.d.ts +1 -1
- package/dist-types/commands/ConfirmPublicVirtualInterfaceCommand.d.ts +1 -1
- package/dist-types/commands/ConfirmTransitVirtualInterfaceCommand.d.ts +1 -1
- package/dist-types/commands/CreateDirectConnectGatewayAssociationProposalCommand.d.ts +1 -1
- package/dist-types/commands/CreateDirectConnectGatewayCommand.d.ts +2 -2
- package/dist-types/commands/CreateLagCommand.d.ts +1 -1
- package/dist-types/commands/CreatePrivateVirtualInterfaceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCustomerMetadataCommand.d.ts +35 -0
- package/dist-types/commands/DescribeInterconnectsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRouterConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/DescribeVirtualGatewaysCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVirtualInterfacesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDirectConnectGatewayCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +63 -0
- package/dist-types/index.d.ts +3 -61
- package/dist-types/models/models_0.d.ts +209 -23
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/DirectConnect.d.ts +20 -0
- package/dist-types/ts3.4/DirectConnectClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/ConfirmCustomerAgreementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCustomerMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRouterConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateDirectConnectGatewayCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +63 -0
- package/dist-types/ts3.4/index.d.ts +3 -61
- package/dist-types/ts3.4/models/models_0.d.ts +104 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +24 -24
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommand = exports.deserializeAws_json1_1UpdateLagCommand = exports.deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand = exports.deserializeAws_json1_1UpdateConnectionCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopBgpFailoverTestCommand = exports.deserializeAws_json1_1StartBgpFailoverTestCommand = exports.deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommand = exports.deserializeAws_json1_1DisassociateMacSecKeyCommand = exports.deserializeAws_json1_1DisassociateConnectionFromLagCommand = exports.deserializeAws_json1_1DescribeVirtualInterfacesCommand = exports.deserializeAws_json1_1DescribeVirtualGatewaysCommand = exports.deserializeAws_json1_1DescribeTagsCommand = exports.deserializeAws_json1_1DescribeLocationsCommand = exports.deserializeAws_json1_1DescribeLoaCommand = exports.deserializeAws_json1_1DescribeLagsCommand = exports.deserializeAws_json1_1DescribeInterconnectsCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1DescribeVirtualGatewaysCommand = exports.serializeAws_json1_1DescribeTagsCommand = exports.serializeAws_json1_1DescribeRouterConfigurationCommand = exports.serializeAws_json1_1DescribeLocationsCommand = exports.serializeAws_json1_1DescribeLoaCommand = exports.serializeAws_json1_1DescribeLagsCommand = exports.serializeAws_json1_1DescribeInterconnectsCommand = exports.serializeAws_json1_1DescribeInterconnectLoaCommand = exports.serializeAws_json1_1DescribeHostedConnectionsCommand = exports.serializeAws_json1_1DescribeDirectConnectGatewaysCommand = exports.serializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommand = exports.serializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommand = exports.serializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommand = exports.serializeAws_json1_1DescribeCustomerMetadataCommand = exports.serializeAws_json1_1DescribeConnectionsOnInterconnectCommand = exports.serializeAws_json1_1DescribeConnectionsCommand = exports.serializeAws_json1_1DescribeConnectionLoaCommand = exports.serializeAws_json1_1DeleteVirtualInterfaceCommand = exports.serializeAws_json1_1DeleteLagCommand = exports.serializeAws_json1_1DeleteInterconnectCommand = exports.serializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand = exports.serializeAws_json1_1DeleteDirectConnectGatewayAssociationCommand = exports.serializeAws_json1_1DeleteDirectConnectGatewayCommand = exports.serializeAws_json1_1DeleteConnectionCommand = exports.serializeAws_json1_1DeleteBGPPeerCommand = exports.serializeAws_json1_1CreateTransitVirtualInterfaceCommand = exports.serializeAws_json1_1CreatePublicVirtualInterfaceCommand = exports.serializeAws_json1_1CreatePrivateVirtualInterfaceCommand = exports.serializeAws_json1_1CreateLagCommand = exports.serializeAws_json1_1CreateInterconnectCommand = exports.serializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand = exports.serializeAws_json1_1CreateDirectConnectGatewayAssociationCommand = exports.serializeAws_json1_1CreateDirectConnectGatewayCommand = exports.serializeAws_json1_1CreateConnectionCommand = exports.serializeAws_json1_1CreateBGPPeerCommand = exports.serializeAws_json1_1ConfirmTransitVirtualInterfaceCommand = exports.serializeAws_json1_1ConfirmPublicVirtualInterfaceCommand = exports.serializeAws_json1_1ConfirmPrivateVirtualInterfaceCommand = exports.serializeAws_json1_1ConfirmCustomerAgreementCommand = exports.serializeAws_json1_1ConfirmConnectionCommand = exports.serializeAws_json1_1AssociateVirtualInterfaceCommand = exports.serializeAws_json1_1AssociateMacSecKeyCommand = exports.serializeAws_json1_1AssociateHostedConnectionCommand = exports.serializeAws_json1_1AssociateConnectionWithLagCommand = exports.serializeAws_json1_1AllocateTransitVirtualInterfaceCommand = exports.serializeAws_json1_1AllocatePublicVirtualInterfaceCommand = exports.serializeAws_json1_1AllocatePrivateVirtualInterfaceCommand = exports.serializeAws_json1_1AllocateHostedConnectionCommand = exports.serializeAws_json1_1AllocateConnectionOnInterconnectCommand = exports.serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DescribeCustomerMetadataCommand = exports.deserializeAws_json1_1DescribeConnectionsOnInterconnectCommand = exports.deserializeAws_json1_1DescribeConnectionsCommand = exports.deserializeAws_json1_1DescribeConnectionLoaCommand = exports.deserializeAws_json1_1DeleteVirtualInterfaceCommand = exports.deserializeAws_json1_1DeleteLagCommand = exports.deserializeAws_json1_1DeleteInterconnectCommand = exports.deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand = exports.deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommand = exports.deserializeAws_json1_1DeleteDirectConnectGatewayCommand = exports.deserializeAws_json1_1DeleteConnectionCommand = exports.deserializeAws_json1_1DeleteBGPPeerCommand = exports.deserializeAws_json1_1CreateTransitVirtualInterfaceCommand = exports.deserializeAws_json1_1CreatePublicVirtualInterfaceCommand = exports.deserializeAws_json1_1CreatePrivateVirtualInterfaceCommand = exports.deserializeAws_json1_1CreateLagCommand = exports.deserializeAws_json1_1CreateInterconnectCommand = exports.deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand = exports.deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommand = exports.deserializeAws_json1_1CreateDirectConnectGatewayCommand = exports.deserializeAws_json1_1CreateConnectionCommand = exports.deserializeAws_json1_1CreateBGPPeerCommand = exports.deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommand = exports.deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommand = exports.deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommand = exports.deserializeAws_json1_1ConfirmCustomerAgreementCommand = exports.deserializeAws_json1_1ConfirmConnectionCommand = exports.deserializeAws_json1_1AssociateVirtualInterfaceCommand = exports.deserializeAws_json1_1AssociateMacSecKeyCommand = exports.deserializeAws_json1_1AssociateHostedConnectionCommand = exports.deserializeAws_json1_1AssociateConnectionWithLagCommand = exports.deserializeAws_json1_1AllocateTransitVirtualInterfaceCommand = exports.deserializeAws_json1_1AllocatePublicVirtualInterfaceCommand = exports.deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommand = exports.deserializeAws_json1_1AllocateHostedConnectionCommand = exports.deserializeAws_json1_1AllocateConnectionOnInterconnectCommand = exports.deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand = exports.serializeAws_json1_1UpdateVirtualInterfaceAttributesCommand = exports.serializeAws_json1_1UpdateLagCommand = exports.serializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand = exports.serializeAws_json1_1UpdateDirectConnectGatewayCommand = exports.serializeAws_json1_1UpdateConnectionCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopBgpFailoverTestCommand = exports.serializeAws_json1_1StartBgpFailoverTestCommand = exports.serializeAws_json1_1ListVirtualInterfaceTestHistoryCommand = exports.serializeAws_json1_1DisassociateMacSecKeyCommand = exports.serializeAws_json1_1DisassociateConnectionFromLagCommand = exports.serializeAws_json1_1DescribeVirtualInterfacesCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommand = exports.deserializeAws_json1_1UpdateLagCommand = exports.deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand = exports.deserializeAws_json1_1UpdateDirectConnectGatewayCommand = exports.deserializeAws_json1_1UpdateConnectionCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopBgpFailoverTestCommand = exports.deserializeAws_json1_1StartBgpFailoverTestCommand = exports.deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommand = exports.deserializeAws_json1_1DisassociateMacSecKeyCommand = exports.deserializeAws_json1_1DisassociateConnectionFromLagCommand = exports.deserializeAws_json1_1DescribeVirtualInterfacesCommand = exports.deserializeAws_json1_1DescribeVirtualGatewaysCommand = exports.deserializeAws_json1_1DescribeTagsCommand = exports.deserializeAws_json1_1DescribeRouterConfigurationCommand = exports.deserializeAws_json1_1DescribeLocationsCommand = exports.deserializeAws_json1_1DescribeLoaCommand = exports.deserializeAws_json1_1DescribeLagsCommand = exports.deserializeAws_json1_1DescribeInterconnectsCommand = exports.deserializeAws_json1_1DescribeInterconnectLoaCommand = exports.deserializeAws_json1_1DescribeHostedConnectionsCommand = exports.deserializeAws_json1_1DescribeDirectConnectGatewaysCommand = exports.deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommand = exports.deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommand = exports.deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
@@ -115,6 +115,16 @@ const serializeAws_json1_1ConfirmConnectionCommand = async (input, context) => {
|
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
117
|
exports.serializeAws_json1_1ConfirmConnectionCommand = serializeAws_json1_1ConfirmConnectionCommand;
|
|
118
|
+
const serializeAws_json1_1ConfirmCustomerAgreementCommand = async (input, context) => {
|
|
119
|
+
const headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "OvertureService.ConfirmCustomerAgreement",
|
|
122
|
+
};
|
|
123
|
+
let body;
|
|
124
|
+
body = JSON.stringify(serializeAws_json1_1ConfirmCustomerAgreementRequest(input, context));
|
|
125
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
+
};
|
|
127
|
+
exports.serializeAws_json1_1ConfirmCustomerAgreementCommand = serializeAws_json1_1ConfirmCustomerAgreementCommand;
|
|
118
128
|
const serializeAws_json1_1ConfirmPrivateVirtualInterfaceCommand = async (input, context) => {
|
|
119
129
|
const headers = {
|
|
120
130
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -355,6 +365,15 @@ const serializeAws_json1_1DescribeConnectionsOnInterconnectCommand = async (inpu
|
|
|
355
365
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
356
366
|
};
|
|
357
367
|
exports.serializeAws_json1_1DescribeConnectionsOnInterconnectCommand = serializeAws_json1_1DescribeConnectionsOnInterconnectCommand;
|
|
368
|
+
const serializeAws_json1_1DescribeCustomerMetadataCommand = async (input, context) => {
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/x-amz-json-1.1",
|
|
371
|
+
"x-amz-target": "OvertureService.DescribeCustomerMetadata",
|
|
372
|
+
};
|
|
373
|
+
const body = "{}";
|
|
374
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
|
+
};
|
|
376
|
+
exports.serializeAws_json1_1DescribeCustomerMetadataCommand = serializeAws_json1_1DescribeCustomerMetadataCommand;
|
|
358
377
|
const serializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommand = async (input, context) => {
|
|
359
378
|
const headers = {
|
|
360
379
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -454,6 +473,16 @@ const serializeAws_json1_1DescribeLocationsCommand = async (input, context) => {
|
|
|
454
473
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
455
474
|
};
|
|
456
475
|
exports.serializeAws_json1_1DescribeLocationsCommand = serializeAws_json1_1DescribeLocationsCommand;
|
|
476
|
+
const serializeAws_json1_1DescribeRouterConfigurationCommand = async (input, context) => {
|
|
477
|
+
const headers = {
|
|
478
|
+
"content-type": "application/x-amz-json-1.1",
|
|
479
|
+
"x-amz-target": "OvertureService.DescribeRouterConfiguration",
|
|
480
|
+
};
|
|
481
|
+
let body;
|
|
482
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRouterConfigurationRequest(input, context));
|
|
483
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
484
|
+
};
|
|
485
|
+
exports.serializeAws_json1_1DescribeRouterConfigurationCommand = serializeAws_json1_1DescribeRouterConfigurationCommand;
|
|
457
486
|
const serializeAws_json1_1DescribeTagsCommand = async (input, context) => {
|
|
458
487
|
const headers = {
|
|
459
488
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -563,6 +592,16 @@ const serializeAws_json1_1UpdateConnectionCommand = async (input, context) => {
|
|
|
563
592
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
564
593
|
};
|
|
565
594
|
exports.serializeAws_json1_1UpdateConnectionCommand = serializeAws_json1_1UpdateConnectionCommand;
|
|
595
|
+
const serializeAws_json1_1UpdateDirectConnectGatewayCommand = async (input, context) => {
|
|
596
|
+
const headers = {
|
|
597
|
+
"content-type": "application/x-amz-json-1.1",
|
|
598
|
+
"x-amz-target": "OvertureService.UpdateDirectConnectGateway",
|
|
599
|
+
};
|
|
600
|
+
let body;
|
|
601
|
+
body = JSON.stringify(serializeAws_json1_1UpdateDirectConnectGatewayRequest(input, context));
|
|
602
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
603
|
+
};
|
|
604
|
+
exports.serializeAws_json1_1UpdateDirectConnectGatewayCommand = serializeAws_json1_1UpdateDirectConnectGatewayCommand;
|
|
566
605
|
const serializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
567
606
|
const headers = {
|
|
568
607
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1262,6 +1301,61 @@ const deserializeAws_json1_1ConfirmConnectionCommandError = async (output, conte
|
|
|
1262
1301
|
delete response.Message;
|
|
1263
1302
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1264
1303
|
};
|
|
1304
|
+
const deserializeAws_json1_1ConfirmCustomerAgreementCommand = async (output, context) => {
|
|
1305
|
+
if (output.statusCode >= 300) {
|
|
1306
|
+
return deserializeAws_json1_1ConfirmCustomerAgreementCommandError(output, context);
|
|
1307
|
+
}
|
|
1308
|
+
const data = await parseBody(output.body, context);
|
|
1309
|
+
let contents = {};
|
|
1310
|
+
contents = deserializeAws_json1_1ConfirmCustomerAgreementResponse(data, context);
|
|
1311
|
+
const response = {
|
|
1312
|
+
$metadata: deserializeMetadata(output),
|
|
1313
|
+
...contents,
|
|
1314
|
+
};
|
|
1315
|
+
return Promise.resolve(response);
|
|
1316
|
+
};
|
|
1317
|
+
exports.deserializeAws_json1_1ConfirmCustomerAgreementCommand = deserializeAws_json1_1ConfirmCustomerAgreementCommand;
|
|
1318
|
+
const deserializeAws_json1_1ConfirmCustomerAgreementCommandError = async (output, context) => {
|
|
1319
|
+
const parsedOutput = {
|
|
1320
|
+
...output,
|
|
1321
|
+
body: await parseBody(output.body, context),
|
|
1322
|
+
};
|
|
1323
|
+
let response;
|
|
1324
|
+
let errorCode = "UnknownError";
|
|
1325
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
+
switch (errorCode) {
|
|
1327
|
+
case "DirectConnectClientException":
|
|
1328
|
+
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1329
|
+
response = {
|
|
1330
|
+
...(await deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)),
|
|
1331
|
+
name: errorCode,
|
|
1332
|
+
$metadata: deserializeMetadata(output),
|
|
1333
|
+
};
|
|
1334
|
+
break;
|
|
1335
|
+
case "DirectConnectServerException":
|
|
1336
|
+
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1337
|
+
response = {
|
|
1338
|
+
...(await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)),
|
|
1339
|
+
name: errorCode,
|
|
1340
|
+
$metadata: deserializeMetadata(output),
|
|
1341
|
+
};
|
|
1342
|
+
break;
|
|
1343
|
+
default:
|
|
1344
|
+
const parsedBody = parsedOutput.body;
|
|
1345
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1346
|
+
response = {
|
|
1347
|
+
...parsedBody,
|
|
1348
|
+
name: `${errorCode}`,
|
|
1349
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1350
|
+
$fault: "client",
|
|
1351
|
+
$metadata: deserializeMetadata(output),
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
const message = response.message || response.Message || errorCode;
|
|
1355
|
+
response.message = message;
|
|
1356
|
+
delete response.Message;
|
|
1357
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1358
|
+
};
|
|
1265
1359
|
const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommand = async (output, context) => {
|
|
1266
1360
|
if (output.statusCode >= 300) {
|
|
1267
1361
|
return deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError(output, context);
|
|
@@ -2678,6 +2772,61 @@ const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = asyn
|
|
|
2678
2772
|
delete response.Message;
|
|
2679
2773
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2680
2774
|
};
|
|
2775
|
+
const deserializeAws_json1_1DescribeCustomerMetadataCommand = async (output, context) => {
|
|
2776
|
+
if (output.statusCode >= 300) {
|
|
2777
|
+
return deserializeAws_json1_1DescribeCustomerMetadataCommandError(output, context);
|
|
2778
|
+
}
|
|
2779
|
+
const data = await parseBody(output.body, context);
|
|
2780
|
+
let contents = {};
|
|
2781
|
+
contents = deserializeAws_json1_1DescribeCustomerMetadataResponse(data, context);
|
|
2782
|
+
const response = {
|
|
2783
|
+
$metadata: deserializeMetadata(output),
|
|
2784
|
+
...contents,
|
|
2785
|
+
};
|
|
2786
|
+
return Promise.resolve(response);
|
|
2787
|
+
};
|
|
2788
|
+
exports.deserializeAws_json1_1DescribeCustomerMetadataCommand = deserializeAws_json1_1DescribeCustomerMetadataCommand;
|
|
2789
|
+
const deserializeAws_json1_1DescribeCustomerMetadataCommandError = async (output, context) => {
|
|
2790
|
+
const parsedOutput = {
|
|
2791
|
+
...output,
|
|
2792
|
+
body: await parseBody(output.body, context),
|
|
2793
|
+
};
|
|
2794
|
+
let response;
|
|
2795
|
+
let errorCode = "UnknownError";
|
|
2796
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
+
switch (errorCode) {
|
|
2798
|
+
case "DirectConnectClientException":
|
|
2799
|
+
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2800
|
+
response = {
|
|
2801
|
+
...(await deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)),
|
|
2802
|
+
name: errorCode,
|
|
2803
|
+
$metadata: deserializeMetadata(output),
|
|
2804
|
+
};
|
|
2805
|
+
break;
|
|
2806
|
+
case "DirectConnectServerException":
|
|
2807
|
+
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2808
|
+
response = {
|
|
2809
|
+
...(await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)),
|
|
2810
|
+
name: errorCode,
|
|
2811
|
+
$metadata: deserializeMetadata(output),
|
|
2812
|
+
};
|
|
2813
|
+
break;
|
|
2814
|
+
default:
|
|
2815
|
+
const parsedBody = parsedOutput.body;
|
|
2816
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2817
|
+
response = {
|
|
2818
|
+
...parsedBody,
|
|
2819
|
+
name: `${errorCode}`,
|
|
2820
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2821
|
+
$fault: "client",
|
|
2822
|
+
$metadata: deserializeMetadata(output),
|
|
2823
|
+
};
|
|
2824
|
+
}
|
|
2825
|
+
const message = response.message || response.Message || errorCode;
|
|
2826
|
+
response.message = message;
|
|
2827
|
+
delete response.Message;
|
|
2828
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2829
|
+
};
|
|
2681
2830
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommand = async (output, context) => {
|
|
2682
2831
|
if (output.statusCode >= 300) {
|
|
2683
2832
|
return deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommandError(output, context);
|
|
@@ -3228,6 +3377,61 @@ const deserializeAws_json1_1DescribeLocationsCommandError = async (output, conte
|
|
|
3228
3377
|
delete response.Message;
|
|
3229
3378
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3230
3379
|
};
|
|
3380
|
+
const deserializeAws_json1_1DescribeRouterConfigurationCommand = async (output, context) => {
|
|
3381
|
+
if (output.statusCode >= 300) {
|
|
3382
|
+
return deserializeAws_json1_1DescribeRouterConfigurationCommandError(output, context);
|
|
3383
|
+
}
|
|
3384
|
+
const data = await parseBody(output.body, context);
|
|
3385
|
+
let contents = {};
|
|
3386
|
+
contents = deserializeAws_json1_1DescribeRouterConfigurationResponse(data, context);
|
|
3387
|
+
const response = {
|
|
3388
|
+
$metadata: deserializeMetadata(output),
|
|
3389
|
+
...contents,
|
|
3390
|
+
};
|
|
3391
|
+
return Promise.resolve(response);
|
|
3392
|
+
};
|
|
3393
|
+
exports.deserializeAws_json1_1DescribeRouterConfigurationCommand = deserializeAws_json1_1DescribeRouterConfigurationCommand;
|
|
3394
|
+
const deserializeAws_json1_1DescribeRouterConfigurationCommandError = async (output, context) => {
|
|
3395
|
+
const parsedOutput = {
|
|
3396
|
+
...output,
|
|
3397
|
+
body: await parseBody(output.body, context),
|
|
3398
|
+
};
|
|
3399
|
+
let response;
|
|
3400
|
+
let errorCode = "UnknownError";
|
|
3401
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3402
|
+
switch (errorCode) {
|
|
3403
|
+
case "DirectConnectClientException":
|
|
3404
|
+
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
3405
|
+
response = {
|
|
3406
|
+
...(await deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)),
|
|
3407
|
+
name: errorCode,
|
|
3408
|
+
$metadata: deserializeMetadata(output),
|
|
3409
|
+
};
|
|
3410
|
+
break;
|
|
3411
|
+
case "DirectConnectServerException":
|
|
3412
|
+
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
3413
|
+
response = {
|
|
3414
|
+
...(await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)),
|
|
3415
|
+
name: errorCode,
|
|
3416
|
+
$metadata: deserializeMetadata(output),
|
|
3417
|
+
};
|
|
3418
|
+
break;
|
|
3419
|
+
default:
|
|
3420
|
+
const parsedBody = parsedOutput.body;
|
|
3421
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3422
|
+
response = {
|
|
3423
|
+
...parsedBody,
|
|
3424
|
+
name: `${errorCode}`,
|
|
3425
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3426
|
+
$fault: "client",
|
|
3427
|
+
$metadata: deserializeMetadata(output),
|
|
3428
|
+
};
|
|
3429
|
+
}
|
|
3430
|
+
const message = response.message || response.Message || errorCode;
|
|
3431
|
+
response.message = message;
|
|
3432
|
+
delete response.Message;
|
|
3433
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3434
|
+
};
|
|
3231
3435
|
const deserializeAws_json1_1DescribeTagsCommand = async (output, context) => {
|
|
3232
3436
|
if (output.statusCode >= 300) {
|
|
3233
3437
|
return deserializeAws_json1_1DescribeTagsCommandError(output, context);
|
|
@@ -3849,6 +4053,61 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
3849
4053
|
delete response.Message;
|
|
3850
4054
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3851
4055
|
};
|
|
4056
|
+
const deserializeAws_json1_1UpdateDirectConnectGatewayCommand = async (output, context) => {
|
|
4057
|
+
if (output.statusCode >= 300) {
|
|
4058
|
+
return deserializeAws_json1_1UpdateDirectConnectGatewayCommandError(output, context);
|
|
4059
|
+
}
|
|
4060
|
+
const data = await parseBody(output.body, context);
|
|
4061
|
+
let contents = {};
|
|
4062
|
+
contents = deserializeAws_json1_1UpdateDirectConnectGatewayResponse(data, context);
|
|
4063
|
+
const response = {
|
|
4064
|
+
$metadata: deserializeMetadata(output),
|
|
4065
|
+
...contents,
|
|
4066
|
+
};
|
|
4067
|
+
return Promise.resolve(response);
|
|
4068
|
+
};
|
|
4069
|
+
exports.deserializeAws_json1_1UpdateDirectConnectGatewayCommand = deserializeAws_json1_1UpdateDirectConnectGatewayCommand;
|
|
4070
|
+
const deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = async (output, context) => {
|
|
4071
|
+
const parsedOutput = {
|
|
4072
|
+
...output,
|
|
4073
|
+
body: await parseBody(output.body, context),
|
|
4074
|
+
};
|
|
4075
|
+
let response;
|
|
4076
|
+
let errorCode = "UnknownError";
|
|
4077
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4078
|
+
switch (errorCode) {
|
|
4079
|
+
case "DirectConnectClientException":
|
|
4080
|
+
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
4081
|
+
response = {
|
|
4082
|
+
...(await deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)),
|
|
4083
|
+
name: errorCode,
|
|
4084
|
+
$metadata: deserializeMetadata(output),
|
|
4085
|
+
};
|
|
4086
|
+
break;
|
|
4087
|
+
case "DirectConnectServerException":
|
|
4088
|
+
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
4089
|
+
response = {
|
|
4090
|
+
...(await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)),
|
|
4091
|
+
name: errorCode,
|
|
4092
|
+
$metadata: deserializeMetadata(output),
|
|
4093
|
+
};
|
|
4094
|
+
break;
|
|
4095
|
+
default:
|
|
4096
|
+
const parsedBody = parsedOutput.body;
|
|
4097
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4098
|
+
response = {
|
|
4099
|
+
...parsedBody,
|
|
4100
|
+
name: `${errorCode}`,
|
|
4101
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4102
|
+
$fault: "client",
|
|
4103
|
+
$metadata: deserializeMetadata(output),
|
|
4104
|
+
};
|
|
4105
|
+
}
|
|
4106
|
+
const message = response.message || response.Message || errorCode;
|
|
4107
|
+
response.message = message;
|
|
4108
|
+
delete response.Message;
|
|
4109
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4110
|
+
};
|
|
3852
4111
|
const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand = async (output, context) => {
|
|
3853
4112
|
if (output.statusCode >= 300) {
|
|
3854
4113
|
return deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError(output, context);
|
|
@@ -4168,6 +4427,11 @@ const serializeAws_json1_1ConfirmConnectionRequest = (input, context) => {
|
|
|
4168
4427
|
...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
|
|
4169
4428
|
};
|
|
4170
4429
|
};
|
|
4430
|
+
const serializeAws_json1_1ConfirmCustomerAgreementRequest = (input, context) => {
|
|
4431
|
+
return {
|
|
4432
|
+
...(input.agreementName !== undefined && input.agreementName !== null && { agreementName: input.agreementName }),
|
|
4433
|
+
};
|
|
4434
|
+
};
|
|
4171
4435
|
const serializeAws_json1_1ConfirmPrivateVirtualInterfaceRequest = (input, context) => {
|
|
4172
4436
|
return {
|
|
4173
4437
|
...(input.directConnectGatewayId !== undefined &&
|
|
@@ -4453,6 +4717,14 @@ const serializeAws_json1_1DescribeLoaRequest = (input, context) => {
|
|
|
4453
4717
|
...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
|
|
4454
4718
|
};
|
|
4455
4719
|
};
|
|
4720
|
+
const serializeAws_json1_1DescribeRouterConfigurationRequest = (input, context) => {
|
|
4721
|
+
return {
|
|
4722
|
+
...(input.routerTypeIdentifier !== undefined &&
|
|
4723
|
+
input.routerTypeIdentifier !== null && { routerTypeIdentifier: input.routerTypeIdentifier }),
|
|
4724
|
+
...(input.virtualInterfaceId !== undefined &&
|
|
4725
|
+
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
4726
|
+
};
|
|
4727
|
+
};
|
|
4456
4728
|
const serializeAws_json1_1DescribeTagsRequest = (input, context) => {
|
|
4457
4729
|
return {
|
|
4458
4730
|
...(input.resourceArns !== undefined &&
|
|
@@ -4706,6 +4978,14 @@ const serializeAws_json1_1UpdateDirectConnectGatewayAssociationRequest = (input,
|
|
|
4706
4978
|
}),
|
|
4707
4979
|
};
|
|
4708
4980
|
};
|
|
4981
|
+
const serializeAws_json1_1UpdateDirectConnectGatewayRequest = (input, context) => {
|
|
4982
|
+
return {
|
|
4983
|
+
...(input.directConnectGatewayId !== undefined &&
|
|
4984
|
+
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
4985
|
+
...(input.newDirectConnectGatewayName !== undefined &&
|
|
4986
|
+
input.newDirectConnectGatewayName !== null && { newDirectConnectGatewayName: input.newDirectConnectGatewayName }),
|
|
4987
|
+
};
|
|
4988
|
+
};
|
|
4709
4989
|
const serializeAws_json1_1UpdateLagRequest = (input, context) => {
|
|
4710
4990
|
return {
|
|
4711
4991
|
...(input.encryptionMode !== undefined &&
|
|
@@ -4729,6 +5009,16 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult
|
|
|
4729
5009
|
: undefined,
|
|
4730
5010
|
};
|
|
4731
5011
|
};
|
|
5012
|
+
const deserializeAws_json1_1AgreementList = (output, context) => {
|
|
5013
|
+
return (output || [])
|
|
5014
|
+
.filter((e) => e != null)
|
|
5015
|
+
.map((entry) => {
|
|
5016
|
+
if (entry === null) {
|
|
5017
|
+
return null;
|
|
5018
|
+
}
|
|
5019
|
+
return deserializeAws_json1_1CustomerAgreement(entry, context);
|
|
5020
|
+
});
|
|
5021
|
+
};
|
|
4732
5022
|
const deserializeAws_json1_1AllocateTransitVirtualInterfaceResult = (output, context) => {
|
|
4733
5023
|
return {
|
|
4734
5024
|
virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
|
|
@@ -4811,6 +5101,11 @@ const deserializeAws_json1_1ConfirmConnectionResponse = (output, context) => {
|
|
|
4811
5101
|
connectionState: smithy_client_1.expectString(output.connectionState),
|
|
4812
5102
|
};
|
|
4813
5103
|
};
|
|
5104
|
+
const deserializeAws_json1_1ConfirmCustomerAgreementResponse = (output, context) => {
|
|
5105
|
+
return {
|
|
5106
|
+
status: smithy_client_1.expectString(output.status),
|
|
5107
|
+
};
|
|
5108
|
+
};
|
|
4814
5109
|
const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceResponse = (output, context) => {
|
|
4815
5110
|
return {
|
|
4816
5111
|
virtualInterfaceState: smithy_client_1.expectString(output.virtualInterfaceState),
|
|
@@ -4911,6 +5206,12 @@ const deserializeAws_json1_1CreateTransitVirtualInterfaceResult = (output, conte
|
|
|
4911
5206
|
: undefined,
|
|
4912
5207
|
};
|
|
4913
5208
|
};
|
|
5209
|
+
const deserializeAws_json1_1CustomerAgreement = (output, context) => {
|
|
5210
|
+
return {
|
|
5211
|
+
agreementName: smithy_client_1.expectString(output.agreementName),
|
|
5212
|
+
status: smithy_client_1.expectString(output.status),
|
|
5213
|
+
};
|
|
5214
|
+
};
|
|
4914
5215
|
const deserializeAws_json1_1DeleteBGPPeerResponse = (output, context) => {
|
|
4915
5216
|
return {
|
|
4916
5217
|
virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
|
|
@@ -4955,6 +5256,14 @@ const deserializeAws_json1_1DescribeConnectionLoaResponse = (output, context) =>
|
|
|
4955
5256
|
loa: output.loa !== undefined && output.loa !== null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
|
|
4956
5257
|
};
|
|
4957
5258
|
};
|
|
5259
|
+
const deserializeAws_json1_1DescribeCustomerMetadataResponse = (output, context) => {
|
|
5260
|
+
return {
|
|
5261
|
+
agreements: output.agreements !== undefined && output.agreements !== null
|
|
5262
|
+
? deserializeAws_json1_1AgreementList(output.agreements, context)
|
|
5263
|
+
: undefined,
|
|
5264
|
+
nniPartnerType: smithy_client_1.expectString(output.nniPartnerType),
|
|
5265
|
+
};
|
|
5266
|
+
};
|
|
4958
5267
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResult = (output, context) => {
|
|
4959
5268
|
return {
|
|
4960
5269
|
directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals !== undefined &&
|
|
@@ -4993,6 +5302,16 @@ const deserializeAws_json1_1DescribeInterconnectLoaResponse = (output, context)
|
|
|
4993
5302
|
loa: output.loa !== undefined && output.loa !== null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
|
|
4994
5303
|
};
|
|
4995
5304
|
};
|
|
5305
|
+
const deserializeAws_json1_1DescribeRouterConfigurationResponse = (output, context) => {
|
|
5306
|
+
return {
|
|
5307
|
+
customerRouterConfig: smithy_client_1.expectString(output.customerRouterConfig),
|
|
5308
|
+
router: output.router !== undefined && output.router !== null
|
|
5309
|
+
? deserializeAws_json1_1RouterType(output.router, context)
|
|
5310
|
+
: undefined,
|
|
5311
|
+
virtualInterfaceId: smithy_client_1.expectString(output.virtualInterfaceId),
|
|
5312
|
+
virtualInterfaceName: smithy_client_1.expectString(output.virtualInterfaceName),
|
|
5313
|
+
};
|
|
5314
|
+
};
|
|
4996
5315
|
const deserializeAws_json1_1DescribeTagsResponse = (output, context) => {
|
|
4997
5316
|
return {
|
|
4998
5317
|
resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
|
|
@@ -5320,6 +5639,16 @@ const deserializeAws_json1_1RouteFilterPrefixList = (output, context) => {
|
|
|
5320
5639
|
return deserializeAws_json1_1RouteFilterPrefix(entry, context);
|
|
5321
5640
|
});
|
|
5322
5641
|
};
|
|
5642
|
+
const deserializeAws_json1_1RouterType = (output, context) => {
|
|
5643
|
+
return {
|
|
5644
|
+
platform: smithy_client_1.expectString(output.platform),
|
|
5645
|
+
routerTypeIdentifier: smithy_client_1.expectString(output.routerTypeIdentifier),
|
|
5646
|
+
software: smithy_client_1.expectString(output.software),
|
|
5647
|
+
vendor: smithy_client_1.expectString(output.vendor),
|
|
5648
|
+
xsltTemplateName: smithy_client_1.expectString(output.xsltTemplateName),
|
|
5649
|
+
xsltTemplateNameForMacSec: smithy_client_1.expectString(output.xsltTemplateNameForMacSec),
|
|
5650
|
+
};
|
|
5651
|
+
};
|
|
5323
5652
|
const deserializeAws_json1_1StartBgpFailoverTestResponse = (output, context) => {
|
|
5324
5653
|
return {
|
|
5325
5654
|
virtualInterfaceTest: output.virtualInterfaceTest !== undefined && output.virtualInterfaceTest !== null
|
|
@@ -5368,6 +5697,13 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationResult = (outpu
|
|
|
5368
5697
|
: undefined,
|
|
5369
5698
|
};
|
|
5370
5699
|
};
|
|
5700
|
+
const deserializeAws_json1_1UpdateDirectConnectGatewayResponse = (output, context) => {
|
|
5701
|
+
return {
|
|
5702
|
+
directConnectGateway: output.directConnectGateway !== undefined && output.directConnectGateway !== null
|
|
5703
|
+
? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
|
|
5704
|
+
: undefined,
|
|
5705
|
+
};
|
|
5706
|
+
};
|
|
5371
5707
|
const deserializeAws_json1_1VirtualGateway = (output, context) => {
|
|
5372
5708
|
return {
|
|
5373
5709
|
virtualGatewayId: smithy_client_1.expectString(output.virtualGatewayId),
|
package/dist-es/DirectConnect.js
CHANGED
|
@@ -10,6 +10,7 @@ import { AssociateHostedConnectionCommand, } from "./commands/AssociateHostedCon
|
|
|
10
10
|
import { AssociateMacSecKeyCommand, } from "./commands/AssociateMacSecKeyCommand";
|
|
11
11
|
import { AssociateVirtualInterfaceCommand, } from "./commands/AssociateVirtualInterfaceCommand";
|
|
12
12
|
import { ConfirmConnectionCommand, } from "./commands/ConfirmConnectionCommand";
|
|
13
|
+
import { ConfirmCustomerAgreementCommand, } from "./commands/ConfirmCustomerAgreementCommand";
|
|
13
14
|
import { ConfirmPrivateVirtualInterfaceCommand, } from "./commands/ConfirmPrivateVirtualInterfaceCommand";
|
|
14
15
|
import { ConfirmPublicVirtualInterfaceCommand, } from "./commands/ConfirmPublicVirtualInterfaceCommand";
|
|
15
16
|
import { ConfirmTransitVirtualInterfaceCommand, } from "./commands/ConfirmTransitVirtualInterfaceCommand";
|
|
@@ -34,6 +35,7 @@ import { DeleteVirtualInterfaceCommand, } from "./commands/DeleteVirtualInterfac
|
|
|
34
35
|
import { DescribeConnectionLoaCommand, } from "./commands/DescribeConnectionLoaCommand";
|
|
35
36
|
import { DescribeConnectionsCommand, } from "./commands/DescribeConnectionsCommand";
|
|
36
37
|
import { DescribeConnectionsOnInterconnectCommand, } from "./commands/DescribeConnectionsOnInterconnectCommand";
|
|
38
|
+
import { DescribeCustomerMetadataCommand, } from "./commands/DescribeCustomerMetadataCommand";
|
|
37
39
|
import { DescribeDirectConnectGatewayAssociationProposalsCommand, } from "./commands/DescribeDirectConnectGatewayAssociationProposalsCommand";
|
|
38
40
|
import { DescribeDirectConnectGatewayAssociationsCommand, } from "./commands/DescribeDirectConnectGatewayAssociationsCommand";
|
|
39
41
|
import { DescribeDirectConnectGatewayAttachmentsCommand, } from "./commands/DescribeDirectConnectGatewayAttachmentsCommand";
|
|
@@ -44,6 +46,7 @@ import { DescribeInterconnectsCommand, } from "./commands/DescribeInterconnectsC
|
|
|
44
46
|
import { DescribeLagsCommand, } from "./commands/DescribeLagsCommand";
|
|
45
47
|
import { DescribeLoaCommand } from "./commands/DescribeLoaCommand";
|
|
46
48
|
import { DescribeLocationsCommand, } from "./commands/DescribeLocationsCommand";
|
|
49
|
+
import { DescribeRouterConfigurationCommand, } from "./commands/DescribeRouterConfigurationCommand";
|
|
47
50
|
import { DescribeTagsCommand, } from "./commands/DescribeTagsCommand";
|
|
48
51
|
import { DescribeVirtualGatewaysCommand, } from "./commands/DescribeVirtualGatewaysCommand";
|
|
49
52
|
import { DescribeVirtualInterfacesCommand, } from "./commands/DescribeVirtualInterfacesCommand";
|
|
@@ -56,6 +59,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
56
59
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
57
60
|
import { UpdateConnectionCommand, } from "./commands/UpdateConnectionCommand";
|
|
58
61
|
import { UpdateDirectConnectGatewayAssociationCommand, } from "./commands/UpdateDirectConnectGatewayAssociationCommand";
|
|
62
|
+
import { UpdateDirectConnectGatewayCommand, } from "./commands/UpdateDirectConnectGatewayCommand";
|
|
59
63
|
import { UpdateLagCommand } from "./commands/UpdateLagCommand";
|
|
60
64
|
import { UpdateVirtualInterfaceAttributesCommand, } from "./commands/UpdateVirtualInterfaceAttributesCommand";
|
|
61
65
|
import { DirectConnectClient } from "./DirectConnectClient";
|
|
@@ -218,6 +222,20 @@ var DirectConnect = (function (_super) {
|
|
|
218
222
|
return this.send(command, optionsOrCb);
|
|
219
223
|
}
|
|
220
224
|
};
|
|
225
|
+
DirectConnect.prototype.confirmCustomerAgreement = function (args, optionsOrCb, cb) {
|
|
226
|
+
var command = new ConfirmCustomerAgreementCommand(args);
|
|
227
|
+
if (typeof optionsOrCb === "function") {
|
|
228
|
+
this.send(command, optionsOrCb);
|
|
229
|
+
}
|
|
230
|
+
else if (typeof cb === "function") {
|
|
231
|
+
if (typeof optionsOrCb !== "object")
|
|
232
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
233
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
return this.send(command, optionsOrCb);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
221
239
|
DirectConnect.prototype.confirmPrivateVirtualInterface = function (args, optionsOrCb, cb) {
|
|
222
240
|
var command = new ConfirmPrivateVirtualInterfaceCommand(args);
|
|
223
241
|
if (typeof optionsOrCb === "function") {
|
|
@@ -554,6 +572,20 @@ var DirectConnect = (function (_super) {
|
|
|
554
572
|
return this.send(command, optionsOrCb);
|
|
555
573
|
}
|
|
556
574
|
};
|
|
575
|
+
DirectConnect.prototype.describeCustomerMetadata = function (args, optionsOrCb, cb) {
|
|
576
|
+
var command = new DescribeCustomerMetadataCommand(args);
|
|
577
|
+
if (typeof optionsOrCb === "function") {
|
|
578
|
+
this.send(command, optionsOrCb);
|
|
579
|
+
}
|
|
580
|
+
else if (typeof cb === "function") {
|
|
581
|
+
if (typeof optionsOrCb !== "object")
|
|
582
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
583
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
return this.send(command, optionsOrCb);
|
|
587
|
+
}
|
|
588
|
+
};
|
|
557
589
|
DirectConnect.prototype.describeDirectConnectGatewayAssociationProposals = function (args, optionsOrCb, cb) {
|
|
558
590
|
var command = new DescribeDirectConnectGatewayAssociationProposalsCommand(args);
|
|
559
591
|
if (typeof optionsOrCb === "function") {
|
|
@@ -694,6 +726,20 @@ var DirectConnect = (function (_super) {
|
|
|
694
726
|
return this.send(command, optionsOrCb);
|
|
695
727
|
}
|
|
696
728
|
};
|
|
729
|
+
DirectConnect.prototype.describeRouterConfiguration = function (args, optionsOrCb, cb) {
|
|
730
|
+
var command = new DescribeRouterConfigurationCommand(args);
|
|
731
|
+
if (typeof optionsOrCb === "function") {
|
|
732
|
+
this.send(command, optionsOrCb);
|
|
733
|
+
}
|
|
734
|
+
else if (typeof cb === "function") {
|
|
735
|
+
if (typeof optionsOrCb !== "object")
|
|
736
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
737
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
738
|
+
}
|
|
739
|
+
else {
|
|
740
|
+
return this.send(command, optionsOrCb);
|
|
741
|
+
}
|
|
742
|
+
};
|
|
697
743
|
DirectConnect.prototype.describeTags = function (args, optionsOrCb, cb) {
|
|
698
744
|
var command = new DescribeTagsCommand(args);
|
|
699
745
|
if (typeof optionsOrCb === "function") {
|
|
@@ -848,6 +894,20 @@ var DirectConnect = (function (_super) {
|
|
|
848
894
|
return this.send(command, optionsOrCb);
|
|
849
895
|
}
|
|
850
896
|
};
|
|
897
|
+
DirectConnect.prototype.updateDirectConnectGateway = function (args, optionsOrCb, cb) {
|
|
898
|
+
var command = new UpdateDirectConnectGatewayCommand(args);
|
|
899
|
+
if (typeof optionsOrCb === "function") {
|
|
900
|
+
this.send(command, optionsOrCb);
|
|
901
|
+
}
|
|
902
|
+
else if (typeof cb === "function") {
|
|
903
|
+
if (typeof optionsOrCb !== "object")
|
|
904
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
905
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
906
|
+
}
|
|
907
|
+
else {
|
|
908
|
+
return this.send(command, optionsOrCb);
|
|
909
|
+
}
|
|
910
|
+
};
|
|
851
911
|
DirectConnect.prototype.updateDirectConnectGatewayAssociation = function (args, optionsOrCb, cb) {
|
|
852
912
|
var command = new UpdateDirectConnectGatewayAssociationCommand(args);
|
|
853
913
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ConfirmCustomerAgreementRequest, ConfirmCustomerAgreementResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ConfirmCustomerAgreementCommand, serializeAws_json1_1ConfirmCustomerAgreementCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ConfirmCustomerAgreementCommand = (function (_super) {
|
|
7
|
+
__extends(ConfirmCustomerAgreementCommand, _super);
|
|
8
|
+
function ConfirmCustomerAgreementCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ConfirmCustomerAgreementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DirectConnectClient";
|
|
18
|
+
var commandName = "ConfirmCustomerAgreementCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ConfirmCustomerAgreementRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ConfirmCustomerAgreementResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ConfirmCustomerAgreementCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ConfirmCustomerAgreementCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ConfirmCustomerAgreementCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ConfirmCustomerAgreementCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ConfirmCustomerAgreementCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ConfirmCustomerAgreementCommand };
|