lambda-live-debugger
Version:
Debug Lambda functions locally like it is running in the cloud
258 lines (257 loc) • 8.93 kB
JavaScript
const _CE = "ConflictException";
const _DC = "DeleteConnection";
const _DCR = "DeleteConnectionRequest";
const _DTS = "DeleteThingShadow";
const _DTSR = "DeleteThingShadowRequest";
const _DTSRe = "DeleteThingShadowResponse";
const _FE = "ForbiddenException";
const _GRM = "GetRetainedMessage";
const _GRMR = "GetRetainedMessageRequest";
const _GRMRe = "GetRetainedMessageResponse";
const _GTS = "GetThingShadow";
const _GTSR = "GetThingShadowRequest";
const _GTSRe = "GetThingShadowResponse";
const _IFE = "InternalFailureException";
const _IRE = "InvalidRequestException";
const _LNSFT = "ListNamedShadowsForThing";
const _LNSFTR = "ListNamedShadowsForThingRequest";
const _LNSFTRi = "ListNamedShadowsForThingResponse";
const _LRM = "ListRetainedMessages";
const _LRMR = "ListRetainedMessagesRequest";
const _LRMRi = "ListRetainedMessagesResponse";
const _MNAE = "MethodNotAllowedException";
const _P = "Publish";
const _PR = "PublishRequest";
const _RETLE = "RequestEntityTooLargeException";
const _RML = "RetainedMessageList";
const _RMS = "RetainedMessageSummary";
const _RNFE = "ResourceNotFoundException";
const _SJUP = "SynthesizedJsonUserProperties";
const _SUE = "ServiceUnavailableException";
const _TE = "ThrottlingException";
const _UDEE = "UnsupportedDocumentEncodingException";
const _UE = "UnauthorizedException";
const _UTS = "UpdateThingShadow";
const _UTSR = "UpdateThingShadowRequest";
const _UTSRp = "UpdateThingShadowResponse";
const _a = "application/json";
const _c = "client";
const _cD = "correlationData";
const _cI = "clientId";
const _cS = "cleanSession";
const _cT = "contentType";
const _e = "error";
const _h = "http";
const _hE = "httpError";
const _hH = "httpHeader";
const _hQ = "httpQuery";
const _lMT = "lastModifiedTime";
const _m = "message";
const _mE = "messageExpiry";
const _mR = "maxResults";
const _mT = "mediaType";
const _n = "name";
const _nT = "nextToken";
const _p = "payload";
const _pFI = "payloadFormatIndicator";
const _pS = "pageSize";
const _pSa = "payloadSize";
const _pWM = "preventWillMessage";
const _q = "qos";
const _r = "results";
const _rT = "retainedTopics";
const _rTe = "responseTopic";
const _re = "retain";
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
const _sN = "shadowName";
const _se = "server";
const _t = "topic";
const _tN = "thingName";
const _ti = "timestamp";
const _uP = "userProperties";
const _xamcd = "x-amz-mqtt5-correlation-data";
const _xampfi = "x-amz-mqtt5-payload-format-indicator";
const _xamup = "x-amz-mqtt5-user-properties";
const n0 = "com.amazonaws.iotdataplane";
import { TypeRegistry } from "@smithy/core/schema";
import { ConflictException, ForbiddenException, InternalFailureException, InvalidRequestException, MethodNotAllowedException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, } from "../models/errors";
import { IoTDataPlaneServiceException } from "../models/IoTDataPlaneServiceException";
const _s_registry = TypeRegistry.for(_s);
export var IoTDataPlaneServiceException$ = [-3, _s, "IoTDataPlaneServiceException", 0, [], []];
_s_registry.registerError(IoTDataPlaneServiceException$, IoTDataPlaneServiceException);
const n0_registry = TypeRegistry.for(n0);
export var ConflictException$ = [-3, n0, _CE,
{ [_e]: _c, [_hE]: 409 },
[_m],
[0]
];
n0_registry.registerError(ConflictException$, ConflictException);
export var ForbiddenException$ = [-3, n0, _FE,
{ [_e]: _c, [_hE]: 403 },
[_m],
[0]
];
n0_registry.registerError(ForbiddenException$, ForbiddenException);
export var InternalFailureException$ = [-3, n0, _IFE,
{ [_e]: _se, [_hE]: 500 },
[_m],
[0]
];
n0_registry.registerError(InternalFailureException$, InternalFailureException);
export var InvalidRequestException$ = [-3, n0, _IRE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
export var MethodNotAllowedException$ = [-3, n0, _MNAE,
{ [_e]: _c, [_hE]: 405 },
[_m],
[0]
];
n0_registry.registerError(MethodNotAllowedException$, MethodNotAllowedException);
export var RequestEntityTooLargeException$ = [-3, n0, _RETLE,
{ [_e]: _c, [_hE]: 413 },
[_m],
[0]
];
n0_registry.registerError(RequestEntityTooLargeException$, RequestEntityTooLargeException);
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
{ [_e]: _c, [_hE]: 404 },
[_m],
[0]
];
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
export var ServiceUnavailableException$ = [-3, n0, _SUE,
{ [_e]: _se, [_hE]: 503 },
[_m],
[0]
];
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
export var ThrottlingException$ = [-3, n0, _TE,
{ [_e]: _c, [_hE]: 429 },
[_m],
[0]
];
n0_registry.registerError(ThrottlingException$, ThrottlingException);
export var UnauthorizedException$ = [-3, n0, _UE,
{ [_e]: _c, [_hE]: 401 },
[_m],
[0]
];
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
export var UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE,
{ [_e]: _c, [_hE]: 415 },
[_m],
[0]
];
n0_registry.registerError(UnsupportedDocumentEncodingException$, UnsupportedDocumentEncodingException);
export const errorTypeRegistries = [
_s_registry,
n0_registry,
];
var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0];
export var DeleteConnectionRequest$ = [3, n0, _DCR,
0,
[_cI, _cS, _pWM],
[[0, 1], [2, { [_hQ]: _cS }], [2, { [_hQ]: _pWM }]], 1
];
export var DeleteThingShadowRequest$ = [3, n0, _DTSR,
0,
[_tN, _sN],
[[0, 1], [0, { [_hQ]: _n }]], 1
];
export var DeleteThingShadowResponse$ = [3, n0, _DTSRe,
0,
[_p],
[[21, 16]], 1
];
export var GetRetainedMessageRequest$ = [3, n0, _GRMR,
0,
[_t],
[[0, 1]], 1
];
export var GetRetainedMessageResponse$ = [3, n0, _GRMRe,
0,
[_t, _p, _q, _lMT, _uP],
[0, 21, 1, 1, 21]
];
export var GetThingShadowRequest$ = [3, n0, _GTSR,
0,
[_tN, _sN],
[[0, 1], [0, { [_hQ]: _n }]], 1
];
export var GetThingShadowResponse$ = [3, n0, _GTSRe,
0,
[_p],
[[21, 16]]
];
export var ListNamedShadowsForThingRequest$ = [3, n0, _LNSFTR,
0,
[_tN, _nT, _pS],
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _pS }]], 1
];
export var ListNamedShadowsForThingResponse$ = [3, n0, _LNSFTRi,
0,
[_r, _nT, _ti],
[64 | 0, 0, 1]
];
export var ListRetainedMessagesRequest$ = [3, n0, _LRMR,
0,
[_nT, _mR],
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
];
export var ListRetainedMessagesResponse$ = [3, n0, _LRMRi,
0,
[_rT, _nT],
[() => RetainedMessageList, 0]
];
export var PublishRequest$ = [3, n0, _PR,
0,
[_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
[[0, 1], [1, { [_hQ]: _q }], [2, { [_hQ]: _re }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [0, { [_hH]: _xamcd }], [1, { [_hQ]: _mE }]], 1
];
export var RetainedMessageSummary$ = [3, n0, _RMS,
0,
[_t, _pSa, _q, _lMT],
[0, 1, 1, 1]
];
export var UpdateThingShadowRequest$ = [3, n0, _UTSR,
0,
[_tN, _p, _sN],
[[0, 1], [21, 16], [0, { [_hQ]: _n }]], 2
];
export var UpdateThingShadowResponse$ = [3, n0, _UTSRp,
0,
[_p],
[[21, 16]]
];
var __Unit = "unit";
var NamedShadowList = 64 | 0;
var RetainedMessageList = [1, n0, _RML,
0, () => RetainedMessageSummary$
];
export var DeleteConnection$ = [9, n0, _DC,
{ [_h]: ["DELETE", "/connections/{clientId}", 200] }, () => DeleteConnectionRequest$, () => __Unit
];
export var DeleteThingShadow$ = [9, n0, _DTS,
{ [_h]: ["DELETE", "/things/{thingName}/shadow", 200] }, () => DeleteThingShadowRequest$, () => DeleteThingShadowResponse$
];
export var GetRetainedMessage$ = [9, n0, _GRM,
{ [_h]: ["GET", "/retainedMessage/{topic}", 200] }, () => GetRetainedMessageRequest$, () => GetRetainedMessageResponse$
];
export var GetThingShadow$ = [9, n0, _GTS,
{ [_h]: ["GET", "/things/{thingName}/shadow", 200] }, () => GetThingShadowRequest$, () => GetThingShadowResponse$
];
export var ListNamedShadowsForThing$ = [9, n0, _LNSFT,
{ [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200] }, () => ListNamedShadowsForThingRequest$, () => ListNamedShadowsForThingResponse$
];
export var ListRetainedMessages$ = [9, n0, _LRM,
{ [_h]: ["GET", "/retainedMessage", 200] }, () => ListRetainedMessagesRequest$, () => ListRetainedMessagesResponse$
];
export var Publish$ = [9, n0, _P,
{ [_h]: ["POST", "/topics/{topic}", 200] }, () => PublishRequest$, () => __Unit
];
export var UpdateThingShadow$ = [9, n0, _UTS,
{ [_h]: ["POST", "/things/{thingName}/shadow", 200] }, () => UpdateThingShadowRequest$, () => UpdateThingShadowResponse$
];