@aws-sdk/client-iot-wireless 3.42.0 → 3.43.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 +11 -0
- package/dist-cjs/IoTWireless.js +30 -0
- package/dist-cjs/commands/GetNetworkAnalyzerConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateNetworkAnalyzerConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoints.js +47 -1
- package/dist-cjs/models/models_0.js +39 -4
- package/dist-cjs/protocols/Aws_restJson1.js +297 -4
- package/dist-es/IoTWireless.js +30 -0
- package/dist-es/commands/GetNetworkAnalyzerConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateNetworkAnalyzerConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +47 -1
- package/dist-es/models/models_0.js +25 -0
- package/dist-es/protocols/Aws_restJson1.js +320 -0
- package/dist-types/IoTWireless.d.ts +14 -0
- package/dist-types/IoTWirelessClient.d.ts +4 -2
- package/dist-types/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +95 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/IoTWireless.d.ts +10 -0
- package/dist-types/ts3.4/IoTWirelessClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +59 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = exports.deserializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.deserializeAws_restJson1UpdatePartnerAccountCommand = exports.deserializeAws_restJson1UpdateMulticastGroupCommand = exports.deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1UpdateFuotaTaskCommand = exports.deserializeAws_restJson1UpdateDestinationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestWirelessDeviceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMulticastGroupSessionCommand = exports.deserializeAws_restJson1StartFuotaTaskCommand = exports.deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1SendDataToWirelessDeviceCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = exports.serializeAws_restJson1GetWirelessGatewayCertificateCommand = exports.serializeAws_restJson1GetWirelessGatewayCommand = exports.serializeAws_restJson1GetWirelessDeviceStatisticsCommand = exports.serializeAws_restJson1GetWirelessDeviceCommand = exports.serializeAws_restJson1GetServiceProfileCommand = exports.serializeAws_restJson1GetServiceEndpointCommand = exports.serializeAws_restJson1GetResourceLogLevelCommand = exports.serializeAws_restJson1GetResourceEventConfigurationCommand = exports.serializeAws_restJson1GetPartnerAccountCommand = exports.serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1GetMulticastGroupSessionCommand = exports.serializeAws_restJson1GetMulticastGroupCommand = exports.serializeAws_restJson1GetLogLevelsByResourceTypesCommand = exports.serializeAws_restJson1GetFuotaTaskCommand = exports.serializeAws_restJson1GetDeviceProfileCommand = exports.serializeAws_restJson1GetDestinationCommand = exports.serializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = exports.serializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = exports.serializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = exports.serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = exports.serializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1DeleteWirelessGatewayTaskCommand = exports.serializeAws_restJson1DeleteWirelessGatewayCommand = exports.serializeAws_restJson1DeleteWirelessDeviceCommand = exports.serializeAws_restJson1DeleteServiceProfileCommand = exports.serializeAws_restJson1DeleteMulticastGroupCommand = exports.serializeAws_restJson1DeleteFuotaTaskCommand = exports.serializeAws_restJson1DeleteDeviceProfileCommand = exports.serializeAws_restJson1DeleteDestinationCommand = exports.serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1CreateWirelessGatewayTaskCommand = exports.serializeAws_restJson1CreateWirelessGatewayCommand = exports.serializeAws_restJson1CreateWirelessDeviceCommand = exports.serializeAws_restJson1CreateServiceProfileCommand = exports.serializeAws_restJson1CreateMulticastGroupCommand = exports.serializeAws_restJson1CreateFuotaTaskCommand = exports.serializeAws_restJson1CreateDeviceProfileCommand = exports.serializeAws_restJson1CreateDestinationCommand = exports.serializeAws_restJson1CancelMulticastGroupSessionCommand = exports.serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = exports.serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = exports.serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = exports.serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1CreateWirelessGatewayCommand = exports.deserializeAws_restJson1CreateWirelessDeviceCommand = exports.deserializeAws_restJson1CreateServiceProfileCommand = exports.deserializeAws_restJson1CreateMulticastGroupCommand = exports.deserializeAws_restJson1CreateFuotaTaskCommand = exports.deserializeAws_restJson1CreateDeviceProfileCommand = exports.deserializeAws_restJson1CreateDestinationCommand = exports.deserializeAws_restJson1CancelMulticastGroupSessionCommand = exports.deserializeAws_restJson1AssociateWirelessGatewayWithThingCommand = exports.deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithThingCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = exports.deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = exports.deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = exports.serializeAws_restJson1UpdateWirelessGatewayCommand = exports.serializeAws_restJson1UpdateWirelessDeviceCommand = exports.serializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.serializeAws_restJson1UpdatePartnerAccountCommand = exports.serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1UpdateMulticastGroupCommand = exports.serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.serializeAws_restJson1UpdateFuotaTaskCommand = exports.serializeAws_restJson1UpdateDestinationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestWirelessDeviceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartMulticastGroupSessionCommand = exports.serializeAws_restJson1StartFuotaTaskCommand = exports.serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.serializeAws_restJson1SendDataToWirelessDeviceCommand = exports.serializeAws_restJson1SendDataToMulticastGroupCommand = exports.serializeAws_restJson1ResetResourceLogLevelCommand = exports.serializeAws_restJson1ResetAllResourceLogLevelsCommand = exports.serializeAws_restJson1PutResourceLogLevelCommand = exports.serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = exports.serializeAws_restJson1ListWirelessGatewaysCommand = exports.serializeAws_restJson1ListWirelessDevicesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListServiceProfilesCommand = exports.serializeAws_restJson1ListPartnerAccountsCommand = exports.serializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = exports.serializeAws_restJson1ListMulticastGroupsCommand = exports.serializeAws_restJson1ListFuotaTasksCommand = exports.serializeAws_restJson1ListDeviceProfilesCommand = exports.serializeAws_restJson1ListDestinationsCommand = exports.serializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1GetWirelessGatewayTaskCommand = exports.serializeAws_restJson1GetWirelessGatewayStatisticsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1PutResourceLogLevelCommand = exports.deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = exports.deserializeAws_restJson1ListWirelessGatewaysCommand = exports.deserializeAws_restJson1ListWirelessDevicesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListServiceProfilesCommand = exports.deserializeAws_restJson1ListPartnerAccountsCommand = exports.deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = exports.deserializeAws_restJson1ListMulticastGroupsCommand = exports.deserializeAws_restJson1ListFuotaTasksCommand = exports.deserializeAws_restJson1ListDeviceProfilesCommand = exports.deserializeAws_restJson1ListDestinationsCommand = exports.deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1GetWirelessGatewayTaskCommand = exports.deserializeAws_restJson1GetWirelessGatewayStatisticsCommand = exports.deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = exports.deserializeAws_restJson1GetWirelessGatewayCertificateCommand = exports.deserializeAws_restJson1GetWirelessGatewayCommand = exports.deserializeAws_restJson1GetWirelessDeviceStatisticsCommand = exports.deserializeAws_restJson1GetWirelessDeviceCommand = exports.deserializeAws_restJson1GetServiceProfileCommand = exports.deserializeAws_restJson1GetServiceEndpointCommand = exports.deserializeAws_restJson1GetResourceLogLevelCommand = exports.deserializeAws_restJson1GetResourceEventConfigurationCommand = exports.deserializeAws_restJson1GetPartnerAccountCommand = exports.deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1GetMulticastGroupSessionCommand = exports.deserializeAws_restJson1GetMulticastGroupCommand = exports.deserializeAws_restJson1GetLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1GetFuotaTaskCommand = exports.deserializeAws_restJson1GetDeviceProfileCommand = exports.deserializeAws_restJson1GetDestinationCommand = exports.deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = exports.deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = exports.deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = exports.deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayTaskCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayCommand = exports.deserializeAws_restJson1DeleteWirelessDeviceCommand = exports.deserializeAws_restJson1DeleteServiceProfileCommand = exports.deserializeAws_restJson1DeleteMulticastGroupCommand = exports.deserializeAws_restJson1DeleteFuotaTaskCommand = exports.deserializeAws_restJson1DeleteDeviceProfileCommand = exports.deserializeAws_restJson1DeleteDestinationCommand = exports.deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1CreateWirelessGatewayTaskCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = exports.deserializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.deserializeAws_restJson1UpdatePartnerAccountCommand = exports.deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1UpdateMulticastGroupCommand = exports.deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1UpdateFuotaTaskCommand = exports.deserializeAws_restJson1UpdateDestinationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestWirelessDeviceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMulticastGroupSessionCommand = exports.deserializeAws_restJson1StartFuotaTaskCommand = exports.deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1SendDataToWirelessDeviceCommand = exports.deserializeAws_restJson1SendDataToMulticastGroupCommand = exports.deserializeAws_restJson1ResetResourceLogLevelCommand = exports.deserializeAws_restJson1ResetAllResourceLogLevelsCommand = void 0;
|
|
7
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
@@ -1119,6 +1119,33 @@ const serializeAws_restJson1GetMulticastGroupSessionCommand = async (input, cont
|
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
|
1121
1121
|
exports.serializeAws_restJson1GetMulticastGroupSessionCommand = serializeAws_restJson1GetMulticastGroupSessionCommand;
|
|
1122
|
+
const serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = async (input, context) => {
|
|
1123
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1124
|
+
const headers = {};
|
|
1125
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1126
|
+
"/network-analyzer-configurations/{ConfigurationName}";
|
|
1127
|
+
if (input.ConfigurationName !== undefined) {
|
|
1128
|
+
const labelValue = input.ConfigurationName;
|
|
1129
|
+
if (labelValue.length <= 0) {
|
|
1130
|
+
throw new Error("Empty value provided for input HTTP label: ConfigurationName.");
|
|
1131
|
+
}
|
|
1132
|
+
resolvedPath = resolvedPath.replace("{ConfigurationName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1133
|
+
}
|
|
1134
|
+
else {
|
|
1135
|
+
throw new Error("No value provided for input HTTP label: ConfigurationName.");
|
|
1136
|
+
}
|
|
1137
|
+
let body;
|
|
1138
|
+
return new protocol_http_1.HttpRequest({
|
|
1139
|
+
protocol,
|
|
1140
|
+
hostname,
|
|
1141
|
+
port,
|
|
1142
|
+
method: "GET",
|
|
1143
|
+
headers,
|
|
1144
|
+
path: resolvedPath,
|
|
1145
|
+
body,
|
|
1146
|
+
});
|
|
1147
|
+
};
|
|
1148
|
+
exports.serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand;
|
|
1122
1149
|
const serializeAws_restJson1GetPartnerAccountCommand = async (input, context) => {
|
|
1123
1150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1124
1151
|
const headers = {};
|
|
@@ -2217,6 +2244,55 @@ const serializeAws_restJson1UpdateMulticastGroupCommand = async (input, context)
|
|
|
2217
2244
|
});
|
|
2218
2245
|
};
|
|
2219
2246
|
exports.serializeAws_restJson1UpdateMulticastGroupCommand = serializeAws_restJson1UpdateMulticastGroupCommand;
|
|
2247
|
+
const serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = async (input, context) => {
|
|
2248
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2249
|
+
const headers = {
|
|
2250
|
+
"content-type": "application/json",
|
|
2251
|
+
};
|
|
2252
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2253
|
+
"/network-analyzer-configurations/{ConfigurationName}";
|
|
2254
|
+
if (input.ConfigurationName !== undefined) {
|
|
2255
|
+
const labelValue = input.ConfigurationName;
|
|
2256
|
+
if (labelValue.length <= 0) {
|
|
2257
|
+
throw new Error("Empty value provided for input HTTP label: ConfigurationName.");
|
|
2258
|
+
}
|
|
2259
|
+
resolvedPath = resolvedPath.replace("{ConfigurationName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2260
|
+
}
|
|
2261
|
+
else {
|
|
2262
|
+
throw new Error("No value provided for input HTTP label: ConfigurationName.");
|
|
2263
|
+
}
|
|
2264
|
+
let body;
|
|
2265
|
+
body = JSON.stringify({
|
|
2266
|
+
...(input.TraceContent !== undefined &&
|
|
2267
|
+
input.TraceContent !== null && { TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context) }),
|
|
2268
|
+
...(input.WirelessDevicesToAdd !== undefined &&
|
|
2269
|
+
input.WirelessDevicesToAdd !== null && {
|
|
2270
|
+
WirelessDevicesToAdd: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToAdd, context),
|
|
2271
|
+
}),
|
|
2272
|
+
...(input.WirelessDevicesToRemove !== undefined &&
|
|
2273
|
+
input.WirelessDevicesToRemove !== null && {
|
|
2274
|
+
WirelessDevicesToRemove: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToRemove, context),
|
|
2275
|
+
}),
|
|
2276
|
+
...(input.WirelessGatewaysToAdd !== undefined &&
|
|
2277
|
+
input.WirelessGatewaysToAdd !== null && {
|
|
2278
|
+
WirelessGatewaysToAdd: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToAdd, context),
|
|
2279
|
+
}),
|
|
2280
|
+
...(input.WirelessGatewaysToRemove !== undefined &&
|
|
2281
|
+
input.WirelessGatewaysToRemove !== null && {
|
|
2282
|
+
WirelessGatewaysToRemove: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToRemove, context),
|
|
2283
|
+
}),
|
|
2284
|
+
});
|
|
2285
|
+
return new protocol_http_1.HttpRequest({
|
|
2286
|
+
protocol,
|
|
2287
|
+
hostname,
|
|
2288
|
+
port,
|
|
2289
|
+
method: "PATCH",
|
|
2290
|
+
headers,
|
|
2291
|
+
path: resolvedPath,
|
|
2292
|
+
body,
|
|
2293
|
+
});
|
|
2294
|
+
};
|
|
2295
|
+
exports.serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand;
|
|
2220
2296
|
const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, context) => {
|
|
2221
2297
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2222
2298
|
const headers = {
|
|
@@ -5698,6 +5774,94 @@ const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (outp
|
|
|
5698
5774
|
delete response.Message;
|
|
5699
5775
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
5700
5776
|
};
|
|
5777
|
+
const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = async (output, context) => {
|
|
5778
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5779
|
+
return deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError(output, context);
|
|
5780
|
+
}
|
|
5781
|
+
const contents = {
|
|
5782
|
+
$metadata: deserializeMetadata(output),
|
|
5783
|
+
TraceContent: undefined,
|
|
5784
|
+
WirelessDevices: undefined,
|
|
5785
|
+
WirelessGateways: undefined,
|
|
5786
|
+
};
|
|
5787
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5788
|
+
if (data.TraceContent !== undefined && data.TraceContent !== null) {
|
|
5789
|
+
contents.TraceContent = deserializeAws_restJson1TraceContent(data.TraceContent, context);
|
|
5790
|
+
}
|
|
5791
|
+
if (data.WirelessDevices !== undefined && data.WirelessDevices !== null) {
|
|
5792
|
+
contents.WirelessDevices = deserializeAws_restJson1WirelessDeviceList(data.WirelessDevices, context);
|
|
5793
|
+
}
|
|
5794
|
+
if (data.WirelessGateways !== undefined && data.WirelessGateways !== null) {
|
|
5795
|
+
contents.WirelessGateways = deserializeAws_restJson1WirelessGatewayList(data.WirelessGateways, context);
|
|
5796
|
+
}
|
|
5797
|
+
return Promise.resolve(contents);
|
|
5798
|
+
};
|
|
5799
|
+
exports.deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand;
|
|
5800
|
+
const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = async (output, context) => {
|
|
5801
|
+
const parsedOutput = {
|
|
5802
|
+
...output,
|
|
5803
|
+
body: await parseBody(output.body, context),
|
|
5804
|
+
};
|
|
5805
|
+
let response;
|
|
5806
|
+
let errorCode = "UnknownError";
|
|
5807
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5808
|
+
switch (errorCode) {
|
|
5809
|
+
case "AccessDeniedException":
|
|
5810
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5811
|
+
response = {
|
|
5812
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5813
|
+
name: errorCode,
|
|
5814
|
+
$metadata: deserializeMetadata(output),
|
|
5815
|
+
};
|
|
5816
|
+
break;
|
|
5817
|
+
case "InternalServerException":
|
|
5818
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5819
|
+
response = {
|
|
5820
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5821
|
+
name: errorCode,
|
|
5822
|
+
$metadata: deserializeMetadata(output),
|
|
5823
|
+
};
|
|
5824
|
+
break;
|
|
5825
|
+
case "ResourceNotFoundException":
|
|
5826
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5827
|
+
response = {
|
|
5828
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5829
|
+
name: errorCode,
|
|
5830
|
+
$metadata: deserializeMetadata(output),
|
|
5831
|
+
};
|
|
5832
|
+
break;
|
|
5833
|
+
case "ThrottlingException":
|
|
5834
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5835
|
+
response = {
|
|
5836
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5837
|
+
name: errorCode,
|
|
5838
|
+
$metadata: deserializeMetadata(output),
|
|
5839
|
+
};
|
|
5840
|
+
break;
|
|
5841
|
+
case "ValidationException":
|
|
5842
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
5843
|
+
response = {
|
|
5844
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5845
|
+
name: errorCode,
|
|
5846
|
+
$metadata: deserializeMetadata(output),
|
|
5847
|
+
};
|
|
5848
|
+
break;
|
|
5849
|
+
default:
|
|
5850
|
+
const parsedBody = parsedOutput.body;
|
|
5851
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5852
|
+
response = {
|
|
5853
|
+
...parsedBody,
|
|
5854
|
+
name: `${errorCode}`,
|
|
5855
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5856
|
+
$fault: "client",
|
|
5857
|
+
$metadata: deserializeMetadata(output),
|
|
5858
|
+
};
|
|
5859
|
+
}
|
|
5860
|
+
const message = response.message || response.Message || errorCode;
|
|
5861
|
+
response.message = message;
|
|
5862
|
+
delete response.Message;
|
|
5863
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5864
|
+
};
|
|
5701
5865
|
const deserializeAws_restJson1GetPartnerAccountCommand = async (output, context) => {
|
|
5702
5866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5703
5867
|
return deserializeAws_restJson1GetPartnerAccountCommandError(output, context);
|
|
@@ -8978,6 +9142,82 @@ const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output,
|
|
|
8978
9142
|
delete response.Message;
|
|
8979
9143
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
8980
9144
|
};
|
|
9145
|
+
const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = async (output, context) => {
|
|
9146
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
9147
|
+
return deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError(output, context);
|
|
9148
|
+
}
|
|
9149
|
+
const contents = {
|
|
9150
|
+
$metadata: deserializeMetadata(output),
|
|
9151
|
+
};
|
|
9152
|
+
await collectBody(output.body, context);
|
|
9153
|
+
return Promise.resolve(contents);
|
|
9154
|
+
};
|
|
9155
|
+
exports.deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand;
|
|
9156
|
+
const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = async (output, context) => {
|
|
9157
|
+
const parsedOutput = {
|
|
9158
|
+
...output,
|
|
9159
|
+
body: await parseBody(output.body, context),
|
|
9160
|
+
};
|
|
9161
|
+
let response;
|
|
9162
|
+
let errorCode = "UnknownError";
|
|
9163
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9164
|
+
switch (errorCode) {
|
|
9165
|
+
case "AccessDeniedException":
|
|
9166
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
9167
|
+
response = {
|
|
9168
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
9169
|
+
name: errorCode,
|
|
9170
|
+
$metadata: deserializeMetadata(output),
|
|
9171
|
+
};
|
|
9172
|
+
break;
|
|
9173
|
+
case "InternalServerException":
|
|
9174
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
9175
|
+
response = {
|
|
9176
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
9177
|
+
name: errorCode,
|
|
9178
|
+
$metadata: deserializeMetadata(output),
|
|
9179
|
+
};
|
|
9180
|
+
break;
|
|
9181
|
+
case "ResourceNotFoundException":
|
|
9182
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
9183
|
+
response = {
|
|
9184
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
9185
|
+
name: errorCode,
|
|
9186
|
+
$metadata: deserializeMetadata(output),
|
|
9187
|
+
};
|
|
9188
|
+
break;
|
|
9189
|
+
case "ThrottlingException":
|
|
9190
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
9191
|
+
response = {
|
|
9192
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
9193
|
+
name: errorCode,
|
|
9194
|
+
$metadata: deserializeMetadata(output),
|
|
9195
|
+
};
|
|
9196
|
+
break;
|
|
9197
|
+
case "ValidationException":
|
|
9198
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
9199
|
+
response = {
|
|
9200
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
9201
|
+
name: errorCode,
|
|
9202
|
+
$metadata: deserializeMetadata(output),
|
|
9203
|
+
};
|
|
9204
|
+
break;
|
|
9205
|
+
default:
|
|
9206
|
+
const parsedBody = parsedOutput.body;
|
|
9207
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
9208
|
+
response = {
|
|
9209
|
+
...parsedBody,
|
|
9210
|
+
name: `${errorCode}`,
|
|
9211
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
9212
|
+
$fault: "client",
|
|
9213
|
+
$metadata: deserializeMetadata(output),
|
|
9214
|
+
};
|
|
9215
|
+
}
|
|
9216
|
+
const message = response.message || response.Message || errorCode;
|
|
9217
|
+
response.message = message;
|
|
9218
|
+
delete response.Message;
|
|
9219
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
9220
|
+
};
|
|
8981
9221
|
const deserializeAws_restJson1UpdatePartnerAccountCommand = async (output, context) => {
|
|
8982
9222
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
8983
9223
|
return deserializeAws_restJson1UpdatePartnerAccountCommandError(output, context);
|
|
@@ -9698,6 +9938,13 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
9698
9938
|
return serializeAws_restJson1Tag(entry, context);
|
|
9699
9939
|
});
|
|
9700
9940
|
};
|
|
9941
|
+
const serializeAws_restJson1TraceContent = (input, context) => {
|
|
9942
|
+
return {
|
|
9943
|
+
...(input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel }),
|
|
9944
|
+
...(input.WirelessDeviceFrameInfo !== undefined &&
|
|
9945
|
+
input.WirelessDeviceFrameInfo !== null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }),
|
|
9946
|
+
};
|
|
9947
|
+
};
|
|
9701
9948
|
const serializeAws_restJson1UpdateWirelessGatewayTaskCreate = (input, context) => {
|
|
9702
9949
|
return {
|
|
9703
9950
|
...(input.LoRaWAN !== undefined &&
|
|
@@ -9726,6 +9973,16 @@ const serializeAws_restJson1WirelessDeviceEventLogOptionList = (input, context)
|
|
|
9726
9973
|
return serializeAws_restJson1WirelessDeviceEventLogOption(entry, context);
|
|
9727
9974
|
});
|
|
9728
9975
|
};
|
|
9976
|
+
const serializeAws_restJson1WirelessDeviceList = (input, context) => {
|
|
9977
|
+
return input
|
|
9978
|
+
.filter((e) => e != null)
|
|
9979
|
+
.map((entry) => {
|
|
9980
|
+
if (entry === null) {
|
|
9981
|
+
return null;
|
|
9982
|
+
}
|
|
9983
|
+
return entry;
|
|
9984
|
+
});
|
|
9985
|
+
};
|
|
9729
9986
|
const serializeAws_restJson1WirelessDeviceLogOption = (input, context) => {
|
|
9730
9987
|
return {
|
|
9731
9988
|
...(input.Events !== undefined &&
|
|
@@ -9762,6 +10019,16 @@ const serializeAws_restJson1WirelessGatewayEventLogOptionList = (input, context)
|
|
|
9762
10019
|
return serializeAws_restJson1WirelessGatewayEventLogOption(entry, context);
|
|
9763
10020
|
});
|
|
9764
10021
|
};
|
|
10022
|
+
const serializeAws_restJson1WirelessGatewayList = (input, context) => {
|
|
10023
|
+
return input
|
|
10024
|
+
.filter((e) => e != null)
|
|
10025
|
+
.map((entry) => {
|
|
10026
|
+
if (entry === null) {
|
|
10027
|
+
return null;
|
|
10028
|
+
}
|
|
10029
|
+
return entry;
|
|
10030
|
+
});
|
|
10031
|
+
};
|
|
9765
10032
|
const serializeAws_restJson1WirelessGatewayLogOption = (input, context) => {
|
|
9766
10033
|
return {
|
|
9767
10034
|
...(input.Events !== undefined &&
|
|
@@ -10277,6 +10544,12 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
10277
10544
|
return deserializeAws_restJson1Tag(entry, context);
|
|
10278
10545
|
});
|
|
10279
10546
|
};
|
|
10547
|
+
const deserializeAws_restJson1TraceContent = (output, context) => {
|
|
10548
|
+
return {
|
|
10549
|
+
LogLevel: smithy_client_1.expectString(output.LogLevel),
|
|
10550
|
+
WirelessDeviceFrameInfo: smithy_client_1.expectString(output.WirelessDeviceFrameInfo),
|
|
10551
|
+
};
|
|
10552
|
+
};
|
|
10280
10553
|
const deserializeAws_restJson1UpdateWirelessGatewayTaskCreate = (output, context) => {
|
|
10281
10554
|
return {
|
|
10282
10555
|
LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
|
|
@@ -10311,6 +10584,16 @@ const deserializeAws_restJson1WirelessDeviceEventLogOptionList = (output, contex
|
|
|
10311
10584
|
return deserializeAws_restJson1WirelessDeviceEventLogOption(entry, context);
|
|
10312
10585
|
});
|
|
10313
10586
|
};
|
|
10587
|
+
const deserializeAws_restJson1WirelessDeviceList = (output, context) => {
|
|
10588
|
+
return (output || [])
|
|
10589
|
+
.filter((e) => e != null)
|
|
10590
|
+
.map((entry) => {
|
|
10591
|
+
if (entry === null) {
|
|
10592
|
+
return null;
|
|
10593
|
+
}
|
|
10594
|
+
return smithy_client_1.expectString(entry);
|
|
10595
|
+
});
|
|
10596
|
+
};
|
|
10314
10597
|
const deserializeAws_restJson1WirelessDeviceLogOption = (output, context) => {
|
|
10315
10598
|
return {
|
|
10316
10599
|
Events: output.Events !== undefined && output.Events !== null
|
|
@@ -10375,6 +10658,16 @@ const deserializeAws_restJson1WirelessGatewayEventLogOptionList = (output, conte
|
|
|
10375
10658
|
return deserializeAws_restJson1WirelessGatewayEventLogOption(entry, context);
|
|
10376
10659
|
});
|
|
10377
10660
|
};
|
|
10661
|
+
const deserializeAws_restJson1WirelessGatewayList = (output, context) => {
|
|
10662
|
+
return (output || [])
|
|
10663
|
+
.filter((e) => e != null)
|
|
10664
|
+
.map((entry) => {
|
|
10665
|
+
if (entry === null) {
|
|
10666
|
+
return null;
|
|
10667
|
+
}
|
|
10668
|
+
return smithy_client_1.expectString(entry);
|
|
10669
|
+
});
|
|
10670
|
+
};
|
|
10378
10671
|
const deserializeAws_restJson1WirelessGatewayLogOption = (output, context) => {
|
|
10379
10672
|
return {
|
|
10380
10673
|
Events: output.Events !== undefined && output.Events !== null
|
package/dist-es/IoTWireless.js
CHANGED
|
@@ -38,6 +38,7 @@ import { GetFuotaTaskCommand, } from "./commands/GetFuotaTaskCommand";
|
|
|
38
38
|
import { GetLogLevelsByResourceTypesCommand, } from "./commands/GetLogLevelsByResourceTypesCommand";
|
|
39
39
|
import { GetMulticastGroupCommand, } from "./commands/GetMulticastGroupCommand";
|
|
40
40
|
import { GetMulticastGroupSessionCommand, } from "./commands/GetMulticastGroupSessionCommand";
|
|
41
|
+
import { GetNetworkAnalyzerConfigurationCommand, } from "./commands/GetNetworkAnalyzerConfigurationCommand";
|
|
41
42
|
import { GetPartnerAccountCommand, } from "./commands/GetPartnerAccountCommand";
|
|
42
43
|
import { GetResourceEventConfigurationCommand, } from "./commands/GetResourceEventConfigurationCommand";
|
|
43
44
|
import { GetResourceLogLevelCommand, } from "./commands/GetResourceLogLevelCommand";
|
|
@@ -78,6 +79,7 @@ import { UpdateDestinationCommand, } from "./commands/UpdateDestinationCommand";
|
|
|
78
79
|
import { UpdateFuotaTaskCommand, } from "./commands/UpdateFuotaTaskCommand";
|
|
79
80
|
import { UpdateLogLevelsByResourceTypesCommand, } from "./commands/UpdateLogLevelsByResourceTypesCommand";
|
|
80
81
|
import { UpdateMulticastGroupCommand, } from "./commands/UpdateMulticastGroupCommand";
|
|
82
|
+
import { UpdateNetworkAnalyzerConfigurationCommand, } from "./commands/UpdateNetworkAnalyzerConfigurationCommand";
|
|
81
83
|
import { UpdatePartnerAccountCommand, } from "./commands/UpdatePartnerAccountCommand";
|
|
82
84
|
import { UpdateResourceEventConfigurationCommand, } from "./commands/UpdateResourceEventConfigurationCommand";
|
|
83
85
|
import { UpdateWirelessDeviceCommand, } from "./commands/UpdateWirelessDeviceCommand";
|
|
@@ -634,6 +636,20 @@ var IoTWireless = (function (_super) {
|
|
|
634
636
|
return this.send(command, optionsOrCb);
|
|
635
637
|
}
|
|
636
638
|
};
|
|
639
|
+
IoTWireless.prototype.getNetworkAnalyzerConfiguration = function (args, optionsOrCb, cb) {
|
|
640
|
+
var command = new GetNetworkAnalyzerConfigurationCommand(args);
|
|
641
|
+
if (typeof optionsOrCb === "function") {
|
|
642
|
+
this.send(command, optionsOrCb);
|
|
643
|
+
}
|
|
644
|
+
else if (typeof cb === "function") {
|
|
645
|
+
if (typeof optionsOrCb !== "object")
|
|
646
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
647
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
return this.send(command, optionsOrCb);
|
|
651
|
+
}
|
|
652
|
+
};
|
|
637
653
|
IoTWireless.prototype.getPartnerAccount = function (args, optionsOrCb, cb) {
|
|
638
654
|
var command = new GetPartnerAccountCommand(args);
|
|
639
655
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1194,6 +1210,20 @@ var IoTWireless = (function (_super) {
|
|
|
1194
1210
|
return this.send(command, optionsOrCb);
|
|
1195
1211
|
}
|
|
1196
1212
|
};
|
|
1213
|
+
IoTWireless.prototype.updateNetworkAnalyzerConfiguration = function (args, optionsOrCb, cb) {
|
|
1214
|
+
var command = new UpdateNetworkAnalyzerConfigurationCommand(args);
|
|
1215
|
+
if (typeof optionsOrCb === "function") {
|
|
1216
|
+
this.send(command, optionsOrCb);
|
|
1217
|
+
}
|
|
1218
|
+
else if (typeof cb === "function") {
|
|
1219
|
+
if (typeof optionsOrCb !== "object")
|
|
1220
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
1221
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1222
|
+
}
|
|
1223
|
+
else {
|
|
1224
|
+
return this.send(command, optionsOrCb);
|
|
1225
|
+
}
|
|
1226
|
+
};
|
|
1197
1227
|
IoTWireless.prototype.updatePartnerAccount = function (args, optionsOrCb, cb) {
|
|
1198
1228
|
var command = new UpdatePartnerAccountCommand(args);
|
|
1199
1229
|
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 { GetNetworkAnalyzerConfigurationRequest, GetNetworkAnalyzerConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand, serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetNetworkAnalyzerConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(GetNetworkAnalyzerConfigurationCommand, _super);
|
|
8
|
+
function GetNetworkAnalyzerConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetNetworkAnalyzerConfigurationCommand.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 = "IoTWirelessClient";
|
|
18
|
+
var commandName = "GetNetworkAnalyzerConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetNetworkAnalyzerConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetNetworkAnalyzerConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetNetworkAnalyzerConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetNetworkAnalyzerConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetNetworkAnalyzerConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetNetworkAnalyzerConfigurationCommand };
|
|
@@ -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 { UpdateNetworkAnalyzerConfigurationRequest, UpdateNetworkAnalyzerConfigurationResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand, serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateNetworkAnalyzerConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateNetworkAnalyzerConfigurationCommand, _super);
|
|
8
|
+
function UpdateNetworkAnalyzerConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateNetworkAnalyzerConfigurationCommand.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 = "IoTWirelessClient";
|
|
18
|
+
var commandName = "UpdateNetworkAnalyzerConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateNetworkAnalyzerConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateNetworkAnalyzerConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateNetworkAnalyzerConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateNetworkAnalyzerConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateNetworkAnalyzerConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateNetworkAnalyzerConfigurationCommand };
|
|
@@ -37,6 +37,7 @@ export * from "./GetFuotaTaskCommand";
|
|
|
37
37
|
export * from "./GetLogLevelsByResourceTypesCommand";
|
|
38
38
|
export * from "./GetMulticastGroupCommand";
|
|
39
39
|
export * from "./GetMulticastGroupSessionCommand";
|
|
40
|
+
export * from "./GetNetworkAnalyzerConfigurationCommand";
|
|
40
41
|
export * from "./GetPartnerAccountCommand";
|
|
41
42
|
export * from "./GetResourceEventConfigurationCommand";
|
|
42
43
|
export * from "./GetResourceLogLevelCommand";
|
|
@@ -77,6 +78,7 @@ export * from "./UpdateDestinationCommand";
|
|
|
77
78
|
export * from "./UpdateFuotaTaskCommand";
|
|
78
79
|
export * from "./UpdateLogLevelsByResourceTypesCommand";
|
|
79
80
|
export * from "./UpdateMulticastGroupCommand";
|
|
81
|
+
export * from "./UpdateNetworkAnalyzerConfigurationCommand";
|
|
80
82
|
export * from "./UpdatePartnerAccountCommand";
|
|
81
83
|
export * from "./UpdateResourceEventConfigurationCommand";
|
|
82
84
|
export * from "./UpdateWirelessDeviceCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
var regionHash = {
|
|
3
|
+
var regionHash = {
|
|
4
|
+
"ap-northeast-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "api.iotwireless.ap-northeast-1.amazonaws.com",
|
|
8
|
+
tags: [],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
signingRegion: "ap-northeast-1",
|
|
12
|
+
},
|
|
13
|
+
"ap-southeast-2": {
|
|
14
|
+
variants: [
|
|
15
|
+
{
|
|
16
|
+
hostname: "api.iotwireless.ap-southeast-2.amazonaws.com",
|
|
17
|
+
tags: [],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
signingRegion: "ap-southeast-2",
|
|
21
|
+
},
|
|
22
|
+
"eu-west-1": {
|
|
23
|
+
variants: [
|
|
24
|
+
{
|
|
25
|
+
hostname: "api.iotwireless.eu-west-1.amazonaws.com",
|
|
26
|
+
tags: [],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
signingRegion: "eu-west-1",
|
|
30
|
+
},
|
|
31
|
+
"us-east-1": {
|
|
32
|
+
variants: [
|
|
33
|
+
{
|
|
34
|
+
hostname: "api.iotwireless.us-east-1.amazonaws.com",
|
|
35
|
+
tags: [],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
signingRegion: "us-east-1",
|
|
39
|
+
},
|
|
40
|
+
"us-west-2": {
|
|
41
|
+
variants: [
|
|
42
|
+
{
|
|
43
|
+
hostname: "api.iotwireless.us-west-2.amazonaws.com",
|
|
44
|
+
tags: [],
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
signingRegion: "us-west-2",
|
|
48
|
+
},
|
|
49
|
+
};
|
|
4
50
|
var partitionHash = {
|
|
5
51
|
aws: {
|
|
6
52
|
regions: [
|