@aws-sdk/client-chime-sdk-messaging 3.295.0 → 3.297.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/dist-cjs/ChimeSDKMessaging.js +45 -0
- package/dist-cjs/commands/DeleteMessagingStreamingConfigurationsCommand.js +46 -0
- package/dist-cjs/commands/GetMessagingStreamingConfigurationsCommand.js +46 -0
- package/dist-cjs/commands/PutMessagingStreamingConfigurationsCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +32 -3
- package/dist-cjs/protocols/Aws_restJson1.js +243 -2
- package/dist-es/ChimeSDKMessaging.js +45 -0
- package/dist-es/commands/DeleteMessagingStreamingConfigurationsCommand.js +42 -0
- package/dist-es/commands/GetMessagingStreamingConfigurationsCommand.js +42 -0
- package/dist-es/commands/PutMessagingStreamingConfigurationsCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +23 -0
- package/dist-es/protocols/Aws_restJson1.js +235 -0
- package/dist-types/ChimeSDKMessaging.d.ts +76 -40
- package/dist-types/ChimeSDKMessagingClient.d.ts +29 -6
- package/dist-types/commands/AssociateChannelFlowCommand.d.ts +16 -1
- package/dist-types/commands/BatchCreateChannelMembershipCommand.d.ts +16 -0
- package/dist-types/commands/ChannelFlowCallbackCommand.d.ts +16 -0
- package/dist-types/commands/CreateChannelBanCommand.d.ts +16 -1
- package/dist-types/commands/CreateChannelCommand.d.ts +16 -2
- package/dist-types/commands/CreateChannelFlowCommand.d.ts +17 -3
- package/dist-types/commands/CreateChannelMembershipCommand.d.ts +16 -4
- package/dist-types/commands/CreateChannelModeratorCommand.d.ts +16 -2
- package/dist-types/commands/DeleteChannelBanCommand.d.ts +16 -1
- package/dist-types/commands/DeleteChannelCommand.d.ts +16 -1
- package/dist-types/commands/DeleteChannelFlowCommand.d.ts +16 -0
- package/dist-types/commands/DeleteChannelMembershipCommand.d.ts +16 -1
- package/dist-types/commands/DeleteChannelMessageCommand.d.ts +16 -1
- package/dist-types/commands/DeleteChannelModeratorCommand.d.ts +16 -1
- package/dist-types/commands/DeleteMessagingStreamingConfigurationsCommand.d.ts +76 -0
- package/dist-types/commands/DescribeChannelBanCommand.d.ts +16 -2
- package/dist-types/commands/DescribeChannelCommand.d.ts +16 -2
- package/dist-types/commands/DescribeChannelFlowCommand.d.ts +16 -0
- package/dist-types/commands/DescribeChannelMembershipCommand.d.ts +16 -0
- package/dist-types/commands/DescribeChannelMembershipForAppInstanceUserCommand.d.ts +16 -1
- package/dist-types/commands/DescribeChannelModeratedByAppInstanceUserCommand.d.ts +16 -1
- package/dist-types/commands/DescribeChannelModeratorCommand.d.ts +16 -0
- package/dist-types/commands/DisassociateChannelFlowCommand.d.ts +16 -0
- package/dist-types/commands/GetChannelMembershipPreferencesCommand.d.ts +16 -0
- package/dist-types/commands/GetChannelMessageCommand.d.ts +16 -1
- package/dist-types/commands/GetChannelMessageStatusCommand.d.ts +16 -3
- package/dist-types/commands/GetMessagingSessionEndpointCommand.d.ts +16 -0
- package/dist-types/commands/GetMessagingStreamingConfigurationsCommand.d.ts +82 -0
- package/dist-types/commands/ListChannelBansCommand.d.ts +16 -1
- package/dist-types/commands/ListChannelFlowsCommand.d.ts +16 -0
- package/dist-types/commands/ListChannelMembershipsCommand.d.ts +16 -2
- package/dist-types/commands/ListChannelMembershipsForAppInstanceUserCommand.d.ts +16 -1
- package/dist-types/commands/ListChannelMessagesCommand.d.ts +16 -0
- package/dist-types/commands/ListChannelModeratorsCommand.d.ts +16 -0
- package/dist-types/commands/ListChannelsAssociatedWithChannelFlowCommand.d.ts +16 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +16 -2
- package/dist-types/commands/ListChannelsModeratedByAppInstanceUserCommand.d.ts +16 -1
- package/dist-types/commands/ListSubChannelsCommand.d.ts +16 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +16 -0
- package/dist-types/commands/PutChannelMembershipPreferencesCommand.d.ts +16 -0
- package/dist-types/commands/PutMessagingStreamingConfigurationsCommand.d.ts +86 -0
- package/dist-types/commands/RedactChannelMessageCommand.d.ts +16 -1
- package/dist-types/commands/SearchChannelsCommand.d.ts +16 -0
- package/dist-types/commands/SendChannelMessageCommand.d.ts +16 -2
- package/dist-types/commands/TagResourceCommand.d.ts +16 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +16 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +16 -0
- package/dist-types/commands/UpdateChannelFlowCommand.d.ts +16 -0
- package/dist-types/commands/UpdateChannelMessageCommand.d.ts +16 -1
- package/dist-types/commands/UpdateChannelReadMarkerCommand.d.ts +16 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/ChimeSDKMessagingServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +430 -0
- package/dist-types/pagination/Interfaces.d.ts +3 -0
- package/dist-types/pagination/ListChannelBansPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelFlowsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelMembershipsForAppInstanceUserPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelMembershipsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelMessagesPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelModeratorsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelsAssociatedWithChannelFlowPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelsModeratedByAppInstanceUserPaginator.d.ts +3 -0
- package/dist-types/pagination/ListChannelsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListSubChannelsPaginator.d.ts +3 -0
- package/dist-types/pagination/SearchChannelsPaginator.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ChimeSDKMessaging.d.ts +69 -0
- package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteMessagingStreamingConfigurationsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetMessagingStreamingConfigurationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutMessagingStreamingConfigurationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +42 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +29 -29
|
@@ -334,6 +334,23 @@ export const serializeAws_restJson1DeleteChannelModeratorCommand = async (input,
|
|
|
334
334
|
body,
|
|
335
335
|
});
|
|
336
336
|
};
|
|
337
|
+
export const serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
338
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
339
|
+
const headers = {};
|
|
340
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
341
|
+
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
342
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
343
|
+
let body;
|
|
344
|
+
return new __HttpRequest({
|
|
345
|
+
protocol,
|
|
346
|
+
hostname,
|
|
347
|
+
port,
|
|
348
|
+
method: "DELETE",
|
|
349
|
+
headers,
|
|
350
|
+
path: resolvedPath,
|
|
351
|
+
body,
|
|
352
|
+
});
|
|
353
|
+
};
|
|
337
354
|
export const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
|
|
338
355
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
339
356
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -584,6 +601,23 @@ export const serializeAws_restJson1GetMessagingSessionEndpointCommand = async (i
|
|
|
584
601
|
body,
|
|
585
602
|
});
|
|
586
603
|
};
|
|
604
|
+
export const serializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
605
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
606
|
+
const headers = {};
|
|
607
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
608
|
+
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
609
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
610
|
+
let body;
|
|
611
|
+
return new __HttpRequest({
|
|
612
|
+
protocol,
|
|
613
|
+
hostname,
|
|
614
|
+
port,
|
|
615
|
+
method: "GET",
|
|
616
|
+
headers,
|
|
617
|
+
path: resolvedPath,
|
|
618
|
+
body,
|
|
619
|
+
});
|
|
620
|
+
};
|
|
587
621
|
export const serializeAws_restJson1ListChannelBansCommand = async (input, context) => {
|
|
588
622
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
589
623
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -871,6 +905,30 @@ export const serializeAws_restJson1PutChannelMembershipPreferencesCommand = asyn
|
|
|
871
905
|
body,
|
|
872
906
|
});
|
|
873
907
|
};
|
|
908
|
+
export const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
909
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
910
|
+
const headers = {
|
|
911
|
+
"content-type": "application/json",
|
|
912
|
+
};
|
|
913
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
914
|
+
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
915
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
916
|
+
let body;
|
|
917
|
+
body = JSON.stringify({
|
|
918
|
+
...(input.StreamingConfigurations != null && {
|
|
919
|
+
StreamingConfigurations: serializeAws_restJson1StreamingConfigurationList(input.StreamingConfigurations, context),
|
|
920
|
+
}),
|
|
921
|
+
});
|
|
922
|
+
return new __HttpRequest({
|
|
923
|
+
protocol,
|
|
924
|
+
hostname,
|
|
925
|
+
port,
|
|
926
|
+
method: "PUT",
|
|
927
|
+
headers,
|
|
928
|
+
path: resolvedPath,
|
|
929
|
+
body,
|
|
930
|
+
});
|
|
931
|
+
};
|
|
874
932
|
export const serializeAws_restJson1RedactChannelMessageCommand = async (input, context) => {
|
|
875
933
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
876
934
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -1826,6 +1884,48 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
1826
1884
|
});
|
|
1827
1885
|
}
|
|
1828
1886
|
};
|
|
1887
|
+
export const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1888
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1889
|
+
return deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError(output, context);
|
|
1890
|
+
}
|
|
1891
|
+
const contents = map({
|
|
1892
|
+
$metadata: deserializeMetadata(output),
|
|
1893
|
+
});
|
|
1894
|
+
await collectBody(output.body, context);
|
|
1895
|
+
return contents;
|
|
1896
|
+
};
|
|
1897
|
+
const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
1898
|
+
const parsedOutput = {
|
|
1899
|
+
...output,
|
|
1900
|
+
body: await parseErrorBody(output.body, context),
|
|
1901
|
+
};
|
|
1902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
|
+
switch (errorCode) {
|
|
1904
|
+
case "ForbiddenException":
|
|
1905
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1906
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1907
|
+
case "ServiceFailureException":
|
|
1908
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1909
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1910
|
+
case "ServiceUnavailableException":
|
|
1911
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1912
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1913
|
+
case "ThrottledClientException":
|
|
1914
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1915
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1916
|
+
case "UnauthorizedClientException":
|
|
1917
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1918
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1919
|
+
default:
|
|
1920
|
+
const parsedBody = parsedOutput.body;
|
|
1921
|
+
throwDefaultError({
|
|
1922
|
+
output,
|
|
1923
|
+
parsedBody,
|
|
1924
|
+
exceptionCtor: __BaseException,
|
|
1925
|
+
errorCode,
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
};
|
|
1829
1929
|
export const deserializeAws_restJson1DescribeChannelCommand = async (output, context) => {
|
|
1830
1930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1831
1931
|
return deserializeAws_restJson1DescribeChannelCommandError(output, context);
|
|
@@ -2420,6 +2520,57 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2420
2520
|
});
|
|
2421
2521
|
}
|
|
2422
2522
|
};
|
|
2523
|
+
export const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
2524
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2525
|
+
return deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError(output, context);
|
|
2526
|
+
}
|
|
2527
|
+
const contents = map({
|
|
2528
|
+
$metadata: deserializeMetadata(output),
|
|
2529
|
+
});
|
|
2530
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2531
|
+
if (data.StreamingConfigurations != null) {
|
|
2532
|
+
contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
|
|
2533
|
+
}
|
|
2534
|
+
return contents;
|
|
2535
|
+
};
|
|
2536
|
+
const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
2537
|
+
const parsedOutput = {
|
|
2538
|
+
...output,
|
|
2539
|
+
body: await parseErrorBody(output.body, context),
|
|
2540
|
+
};
|
|
2541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2542
|
+
switch (errorCode) {
|
|
2543
|
+
case "BadRequestException":
|
|
2544
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2545
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2546
|
+
case "ForbiddenException":
|
|
2547
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2548
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2549
|
+
case "NotFoundException":
|
|
2550
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2551
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2552
|
+
case "ServiceFailureException":
|
|
2553
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2554
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2555
|
+
case "ServiceUnavailableException":
|
|
2556
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2557
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2558
|
+
case "ThrottledClientException":
|
|
2559
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2560
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2561
|
+
case "UnauthorizedClientException":
|
|
2562
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2563
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2564
|
+
default:
|
|
2565
|
+
const parsedBody = parsedOutput.body;
|
|
2566
|
+
throwDefaultError({
|
|
2567
|
+
output,
|
|
2568
|
+
parsedBody,
|
|
2569
|
+
exceptionCtor: __BaseException,
|
|
2570
|
+
errorCode,
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
};
|
|
2423
2574
|
export const deserializeAws_restJson1ListChannelBansCommand = async (output, context) => {
|
|
2424
2575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2425
2576
|
return deserializeAws_restJson1ListChannelBansCommandError(output, context);
|
|
@@ -3053,6 +3204,60 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3053
3204
|
});
|
|
3054
3205
|
}
|
|
3055
3206
|
};
|
|
3207
|
+
export const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
3208
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3209
|
+
return deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError(output, context);
|
|
3210
|
+
}
|
|
3211
|
+
const contents = map({
|
|
3212
|
+
$metadata: deserializeMetadata(output),
|
|
3213
|
+
});
|
|
3214
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3215
|
+
if (data.StreamingConfigurations != null) {
|
|
3216
|
+
contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
|
|
3217
|
+
}
|
|
3218
|
+
return contents;
|
|
3219
|
+
};
|
|
3220
|
+
const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
3221
|
+
const parsedOutput = {
|
|
3222
|
+
...output,
|
|
3223
|
+
body: await parseErrorBody(output.body, context),
|
|
3224
|
+
};
|
|
3225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3226
|
+
switch (errorCode) {
|
|
3227
|
+
case "BadRequestException":
|
|
3228
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3229
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3230
|
+
case "ConflictException":
|
|
3231
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3232
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3233
|
+
case "ForbiddenException":
|
|
3234
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3235
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3236
|
+
case "NotFoundException":
|
|
3237
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
3238
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3239
|
+
case "ServiceFailureException":
|
|
3240
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3241
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
3242
|
+
case "ServiceUnavailableException":
|
|
3243
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3244
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3245
|
+
case "ThrottledClientException":
|
|
3246
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3247
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
3248
|
+
case "UnauthorizedClientException":
|
|
3249
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3250
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3251
|
+
default:
|
|
3252
|
+
const parsedBody = parsedOutput.body;
|
|
3253
|
+
throwDefaultError({
|
|
3254
|
+
output,
|
|
3255
|
+
parsedBody,
|
|
3256
|
+
exceptionCtor: __BaseException,
|
|
3257
|
+
errorCode,
|
|
3258
|
+
});
|
|
3259
|
+
}
|
|
3260
|
+
};
|
|
3056
3261
|
export const deserializeAws_restJson1RedactChannelMessageCommand = async (output, context) => {
|
|
3057
3262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3058
3263
|
return deserializeAws_restJson1RedactChannelMessageCommandError(output, context);
|
|
@@ -3804,6 +4009,19 @@ const serializeAws_restJson1SearchFieldValues = (input, context) => {
|
|
|
3804
4009
|
return entry;
|
|
3805
4010
|
});
|
|
3806
4011
|
};
|
|
4012
|
+
const serializeAws_restJson1StreamingConfiguration = (input, context) => {
|
|
4013
|
+
return {
|
|
4014
|
+
...(input.DataType != null && { DataType: input.DataType }),
|
|
4015
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4016
|
+
};
|
|
4017
|
+
};
|
|
4018
|
+
const serializeAws_restJson1StreamingConfigurationList = (input, context) => {
|
|
4019
|
+
return input
|
|
4020
|
+
.filter((e) => e != null)
|
|
4021
|
+
.map((entry) => {
|
|
4022
|
+
return serializeAws_restJson1StreamingConfiguration(entry, context);
|
|
4023
|
+
});
|
|
4024
|
+
};
|
|
3807
4025
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
3808
4026
|
return {
|
|
3809
4027
|
...(input.Key != null && { Key: input.Key }),
|
|
@@ -4246,6 +4464,23 @@ const deserializeAws_restJson1PushNotificationPreferences = (output, context) =>
|
|
|
4246
4464
|
FilterRule: __expectString(output.FilterRule),
|
|
4247
4465
|
};
|
|
4248
4466
|
};
|
|
4467
|
+
const deserializeAws_restJson1StreamingConfiguration = (output, context) => {
|
|
4468
|
+
return {
|
|
4469
|
+
DataType: __expectString(output.DataType),
|
|
4470
|
+
ResourceArn: __expectString(output.ResourceArn),
|
|
4471
|
+
};
|
|
4472
|
+
};
|
|
4473
|
+
const deserializeAws_restJson1StreamingConfigurationList = (output, context) => {
|
|
4474
|
+
const retVal = (output || [])
|
|
4475
|
+
.filter((e) => e != null)
|
|
4476
|
+
.map((entry) => {
|
|
4477
|
+
if (entry === null) {
|
|
4478
|
+
return null;
|
|
4479
|
+
}
|
|
4480
|
+
return deserializeAws_restJson1StreamingConfiguration(entry, context);
|
|
4481
|
+
});
|
|
4482
|
+
return retVal;
|
|
4483
|
+
};
|
|
4249
4484
|
const deserializeAws_restJson1SubChannelSummary = (output, context) => {
|
|
4250
4485
|
return {
|
|
4251
4486
|
MembershipCount: __expectInt32(output.MembershipCount),
|