@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateChannelReadMarkerCommand = exports.deserializeAws_restJson1UpdateChannelMessageCommand = exports.deserializeAws_restJson1UpdateChannelFlowCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SendChannelMessageCommand = exports.deserializeAws_restJson1SearchChannelsCommand = exports.deserializeAws_restJson1RedactChannelMessageCommand = exports.deserializeAws_restJson1PutChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSubChannelsCommand = exports.deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListChannelModeratorsCommand = exports.deserializeAws_restJson1ListChannelMessagesCommand = exports.deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelMembershipsCommand = exports.deserializeAws_restJson1ListChannelFlowsCommand = exports.deserializeAws_restJson1ListChannelBansCommand = exports.deserializeAws_restJson1GetMessagingSessionEndpointCommand = exports.deserializeAws_restJson1GetChannelMessageStatusCommand = exports.deserializeAws_restJson1GetChannelMessageCommand = exports.deserializeAws_restJson1GetChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1DisassociateChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelModeratorCommand = exports.deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipCommand = exports.deserializeAws_restJson1DescribeChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelBanCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteChannelModeratorCommand = exports.deserializeAws_restJson1DeleteChannelMessageCommand = exports.deserializeAws_restJson1DeleteChannelMembershipCommand = exports.deserializeAws_restJson1DeleteChannelFlowCommand = exports.deserializeAws_restJson1DeleteChannelBanCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateChannelModeratorCommand = exports.deserializeAws_restJson1CreateChannelMembershipCommand = exports.deserializeAws_restJson1CreateChannelFlowCommand = exports.deserializeAws_restJson1CreateChannelBanCommand = exports.deserializeAws_restJson1CreateChannelCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1UpdateChannelReadMarkerCommand = exports.serializeAws_restJson1UpdateChannelMessageCommand = exports.serializeAws_restJson1UpdateChannelFlowCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SendChannelMessageCommand = exports.serializeAws_restJson1SearchChannelsCommand = exports.serializeAws_restJson1RedactChannelMessageCommand = exports.serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = exports.serializeAws_restJson1PutChannelMembershipPreferencesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSubChannelsCommand = exports.serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = exports.serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListChannelModeratorsCommand = exports.serializeAws_restJson1ListChannelMessagesCommand = exports.serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = exports.serializeAws_restJson1ListChannelMembershipsCommand = exports.serializeAws_restJson1ListChannelFlowsCommand = exports.serializeAws_restJson1ListChannelBansCommand = exports.serializeAws_restJson1GetMessagingStreamingConfigurationsCommand = exports.serializeAws_restJson1GetMessagingSessionEndpointCommand = exports.serializeAws_restJson1GetChannelMessageStatusCommand = exports.serializeAws_restJson1GetChannelMessageCommand = exports.serializeAws_restJson1GetChannelMembershipPreferencesCommand = exports.serializeAws_restJson1DisassociateChannelFlowCommand = exports.serializeAws_restJson1DescribeChannelModeratorCommand = exports.serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = exports.serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = exports.serializeAws_restJson1DescribeChannelMembershipCommand = exports.serializeAws_restJson1DescribeChannelFlowCommand = exports.serializeAws_restJson1DescribeChannelBanCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = exports.serializeAws_restJson1DeleteChannelModeratorCommand = exports.serializeAws_restJson1DeleteChannelMessageCommand = exports.serializeAws_restJson1DeleteChannelMembershipCommand = exports.serializeAws_restJson1DeleteChannelFlowCommand = exports.serializeAws_restJson1DeleteChannelBanCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateChannelModeratorCommand = exports.serializeAws_restJson1CreateChannelMembershipCommand = exports.serializeAws_restJson1CreateChannelFlowCommand = exports.serializeAws_restJson1CreateChannelBanCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ChannelFlowCallbackCommand = exports.serializeAws_restJson1BatchCreateChannelMembershipCommand = exports.serializeAws_restJson1AssociateChannelFlowCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateChannelReadMarkerCommand = exports.deserializeAws_restJson1UpdateChannelMessageCommand = exports.deserializeAws_restJson1UpdateChannelFlowCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SendChannelMessageCommand = exports.deserializeAws_restJson1SearchChannelsCommand = exports.deserializeAws_restJson1RedactChannelMessageCommand = exports.deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand = exports.deserializeAws_restJson1PutChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSubChannelsCommand = exports.deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListChannelModeratorsCommand = exports.deserializeAws_restJson1ListChannelMessagesCommand = exports.deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelMembershipsCommand = exports.deserializeAws_restJson1ListChannelFlowsCommand = exports.deserializeAws_restJson1ListChannelBansCommand = exports.deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand = exports.deserializeAws_restJson1GetMessagingSessionEndpointCommand = exports.deserializeAws_restJson1GetChannelMessageStatusCommand = exports.deserializeAws_restJson1GetChannelMessageCommand = exports.deserializeAws_restJson1GetChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1DisassociateChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelModeratorCommand = exports.deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipCommand = exports.deserializeAws_restJson1DescribeChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelBanCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = exports.deserializeAws_restJson1DeleteChannelModeratorCommand = exports.deserializeAws_restJson1DeleteChannelMessageCommand = exports.deserializeAws_restJson1DeleteChannelMembershipCommand = exports.deserializeAws_restJson1DeleteChannelFlowCommand = exports.deserializeAws_restJson1DeleteChannelBanCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateChannelModeratorCommand = exports.deserializeAws_restJson1CreateChannelMembershipCommand = exports.deserializeAws_restJson1CreateChannelFlowCommand = exports.deserializeAws_restJson1CreateChannelBanCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ChannelFlowCallbackCommand = exports.deserializeAws_restJson1BatchCreateChannelMembershipCommand = exports.deserializeAws_restJson1AssociateChannelFlowCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -352,6 +352,24 @@ const serializeAws_restJson1DeleteChannelModeratorCommand = async (input, contex
|
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
354
|
exports.serializeAws_restJson1DeleteChannelModeratorCommand = serializeAws_restJson1DeleteChannelModeratorCommand;
|
|
355
|
+
const serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
356
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
|
+
const headers = {};
|
|
358
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
359
|
+
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
360
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
361
|
+
let body;
|
|
362
|
+
return new protocol_http_1.HttpRequest({
|
|
363
|
+
protocol,
|
|
364
|
+
hostname,
|
|
365
|
+
port,
|
|
366
|
+
method: "DELETE",
|
|
367
|
+
headers,
|
|
368
|
+
path: resolvedPath,
|
|
369
|
+
body,
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
exports.serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand;
|
|
355
373
|
const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
|
|
356
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
375
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -614,6 +632,24 @@ const serializeAws_restJson1GetMessagingSessionEndpointCommand = async (input, c
|
|
|
614
632
|
});
|
|
615
633
|
};
|
|
616
634
|
exports.serializeAws_restJson1GetMessagingSessionEndpointCommand = serializeAws_restJson1GetMessagingSessionEndpointCommand;
|
|
635
|
+
const serializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
636
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
637
|
+
const headers = {};
|
|
638
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
639
|
+
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
640
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
641
|
+
let body;
|
|
642
|
+
return new protocol_http_1.HttpRequest({
|
|
643
|
+
protocol,
|
|
644
|
+
hostname,
|
|
645
|
+
port,
|
|
646
|
+
method: "GET",
|
|
647
|
+
headers,
|
|
648
|
+
path: resolvedPath,
|
|
649
|
+
body,
|
|
650
|
+
});
|
|
651
|
+
};
|
|
652
|
+
exports.serializeAws_restJson1GetMessagingStreamingConfigurationsCommand = serializeAws_restJson1GetMessagingStreamingConfigurationsCommand;
|
|
617
653
|
const serializeAws_restJson1ListChannelBansCommand = async (input, context) => {
|
|
618
654
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
619
655
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -913,6 +949,31 @@ const serializeAws_restJson1PutChannelMembershipPreferencesCommand = async (inpu
|
|
|
913
949
|
});
|
|
914
950
|
};
|
|
915
951
|
exports.serializeAws_restJson1PutChannelMembershipPreferencesCommand = serializeAws_restJson1PutChannelMembershipPreferencesCommand;
|
|
952
|
+
const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
953
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
954
|
+
const headers = {
|
|
955
|
+
"content-type": "application/json",
|
|
956
|
+
};
|
|
957
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
958
|
+
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
959
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
960
|
+
let body;
|
|
961
|
+
body = JSON.stringify({
|
|
962
|
+
...(input.StreamingConfigurations != null && {
|
|
963
|
+
StreamingConfigurations: serializeAws_restJson1StreamingConfigurationList(input.StreamingConfigurations, context),
|
|
964
|
+
}),
|
|
965
|
+
});
|
|
966
|
+
return new protocol_http_1.HttpRequest({
|
|
967
|
+
protocol,
|
|
968
|
+
hostname,
|
|
969
|
+
port,
|
|
970
|
+
method: "PUT",
|
|
971
|
+
headers,
|
|
972
|
+
path: resolvedPath,
|
|
973
|
+
body,
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
exports.serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = serializeAws_restJson1PutMessagingStreamingConfigurationsCommand;
|
|
916
977
|
const serializeAws_restJson1RedactChannelMessageCommand = async (input, context) => {
|
|
917
978
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
918
979
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -1891,6 +1952,49 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
1891
1952
|
});
|
|
1892
1953
|
}
|
|
1893
1954
|
};
|
|
1955
|
+
const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1956
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1957
|
+
return deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError(output, context);
|
|
1958
|
+
}
|
|
1959
|
+
const contents = map({
|
|
1960
|
+
$metadata: deserializeMetadata(output),
|
|
1961
|
+
});
|
|
1962
|
+
await collectBody(output.body, context);
|
|
1963
|
+
return contents;
|
|
1964
|
+
};
|
|
1965
|
+
exports.deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand;
|
|
1966
|
+
const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
1967
|
+
const parsedOutput = {
|
|
1968
|
+
...output,
|
|
1969
|
+
body: await parseErrorBody(output.body, context),
|
|
1970
|
+
};
|
|
1971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
+
switch (errorCode) {
|
|
1973
|
+
case "ForbiddenException":
|
|
1974
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1975
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1976
|
+
case "ServiceFailureException":
|
|
1977
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1978
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1979
|
+
case "ServiceUnavailableException":
|
|
1980
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1981
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1982
|
+
case "ThrottledClientException":
|
|
1983
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1984
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1985
|
+
case "UnauthorizedClientException":
|
|
1986
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1987
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1988
|
+
default:
|
|
1989
|
+
const parsedBody = parsedOutput.body;
|
|
1990
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1991
|
+
output,
|
|
1992
|
+
parsedBody,
|
|
1993
|
+
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1994
|
+
errorCode,
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
};
|
|
1894
1998
|
const deserializeAws_restJson1DescribeChannelCommand = async (output, context) => {
|
|
1895
1999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
2000
|
return deserializeAws_restJson1DescribeChannelCommandError(output, context);
|
|
@@ -2497,6 +2601,58 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2497
2601
|
});
|
|
2498
2602
|
}
|
|
2499
2603
|
};
|
|
2604
|
+
const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
2605
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2606
|
+
return deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError(output, context);
|
|
2607
|
+
}
|
|
2608
|
+
const contents = map({
|
|
2609
|
+
$metadata: deserializeMetadata(output),
|
|
2610
|
+
});
|
|
2611
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2612
|
+
if (data.StreamingConfigurations != null) {
|
|
2613
|
+
contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
|
|
2614
|
+
}
|
|
2615
|
+
return contents;
|
|
2616
|
+
};
|
|
2617
|
+
exports.deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand = deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand;
|
|
2618
|
+
const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
2619
|
+
const parsedOutput = {
|
|
2620
|
+
...output,
|
|
2621
|
+
body: await parseErrorBody(output.body, context),
|
|
2622
|
+
};
|
|
2623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
|
+
switch (errorCode) {
|
|
2625
|
+
case "BadRequestException":
|
|
2626
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2627
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2628
|
+
case "ForbiddenException":
|
|
2629
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2630
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2631
|
+
case "NotFoundException":
|
|
2632
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2633
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2634
|
+
case "ServiceFailureException":
|
|
2635
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2636
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2637
|
+
case "ServiceUnavailableException":
|
|
2638
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2639
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2640
|
+
case "ThrottledClientException":
|
|
2641
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2642
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2643
|
+
case "UnauthorizedClientException":
|
|
2644
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2645
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2646
|
+
default:
|
|
2647
|
+
const parsedBody = parsedOutput.body;
|
|
2648
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2649
|
+
output,
|
|
2650
|
+
parsedBody,
|
|
2651
|
+
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2652
|
+
errorCode,
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
};
|
|
2500
2656
|
const deserializeAws_restJson1ListChannelBansCommand = async (output, context) => {
|
|
2501
2657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
2658
|
return deserializeAws_restJson1ListChannelBansCommandError(output, context);
|
|
@@ -3142,6 +3298,61 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3142
3298
|
});
|
|
3143
3299
|
}
|
|
3144
3300
|
};
|
|
3301
|
+
const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
3302
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3303
|
+
return deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError(output, context);
|
|
3304
|
+
}
|
|
3305
|
+
const contents = map({
|
|
3306
|
+
$metadata: deserializeMetadata(output),
|
|
3307
|
+
});
|
|
3308
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3309
|
+
if (data.StreamingConfigurations != null) {
|
|
3310
|
+
contents.StreamingConfigurations = deserializeAws_restJson1StreamingConfigurationList(data.StreamingConfigurations, context);
|
|
3311
|
+
}
|
|
3312
|
+
return contents;
|
|
3313
|
+
};
|
|
3314
|
+
exports.deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand = deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand;
|
|
3315
|
+
const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
3316
|
+
const parsedOutput = {
|
|
3317
|
+
...output,
|
|
3318
|
+
body: await parseErrorBody(output.body, context),
|
|
3319
|
+
};
|
|
3320
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3321
|
+
switch (errorCode) {
|
|
3322
|
+
case "BadRequestException":
|
|
3323
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3324
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3325
|
+
case "ConflictException":
|
|
3326
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3327
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3328
|
+
case "ForbiddenException":
|
|
3329
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3330
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3331
|
+
case "NotFoundException":
|
|
3332
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
3333
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3334
|
+
case "ServiceFailureException":
|
|
3335
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3336
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
3337
|
+
case "ServiceUnavailableException":
|
|
3338
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3339
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3340
|
+
case "ThrottledClientException":
|
|
3341
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3342
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
3343
|
+
case "UnauthorizedClientException":
|
|
3344
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3345
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3346
|
+
default:
|
|
3347
|
+
const parsedBody = parsedOutput.body;
|
|
3348
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3349
|
+
output,
|
|
3350
|
+
parsedBody,
|
|
3351
|
+
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3352
|
+
errorCode,
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
};
|
|
3145
3356
|
const deserializeAws_restJson1RedactChannelMessageCommand = async (output, context) => {
|
|
3146
3357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3147
3358
|
return deserializeAws_restJson1RedactChannelMessageCommandError(output, context);
|
|
@@ -3902,6 +4113,19 @@ const serializeAws_restJson1SearchFieldValues = (input, context) => {
|
|
|
3902
4113
|
return entry;
|
|
3903
4114
|
});
|
|
3904
4115
|
};
|
|
4116
|
+
const serializeAws_restJson1StreamingConfiguration = (input, context) => {
|
|
4117
|
+
return {
|
|
4118
|
+
...(input.DataType != null && { DataType: input.DataType }),
|
|
4119
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4120
|
+
};
|
|
4121
|
+
};
|
|
4122
|
+
const serializeAws_restJson1StreamingConfigurationList = (input, context) => {
|
|
4123
|
+
return input
|
|
4124
|
+
.filter((e) => e != null)
|
|
4125
|
+
.map((entry) => {
|
|
4126
|
+
return serializeAws_restJson1StreamingConfiguration(entry, context);
|
|
4127
|
+
});
|
|
4128
|
+
};
|
|
3905
4129
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
3906
4130
|
return {
|
|
3907
4131
|
...(input.Key != null && { Key: input.Key }),
|
|
@@ -4344,6 +4568,23 @@ const deserializeAws_restJson1PushNotificationPreferences = (output, context) =>
|
|
|
4344
4568
|
FilterRule: (0, smithy_client_1.expectString)(output.FilterRule),
|
|
4345
4569
|
};
|
|
4346
4570
|
};
|
|
4571
|
+
const deserializeAws_restJson1StreamingConfiguration = (output, context) => {
|
|
4572
|
+
return {
|
|
4573
|
+
DataType: (0, smithy_client_1.expectString)(output.DataType),
|
|
4574
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4575
|
+
};
|
|
4576
|
+
};
|
|
4577
|
+
const deserializeAws_restJson1StreamingConfigurationList = (output, context) => {
|
|
4578
|
+
const retVal = (output || [])
|
|
4579
|
+
.filter((e) => e != null)
|
|
4580
|
+
.map((entry) => {
|
|
4581
|
+
if (entry === null) {
|
|
4582
|
+
return null;
|
|
4583
|
+
}
|
|
4584
|
+
return deserializeAws_restJson1StreamingConfiguration(entry, context);
|
|
4585
|
+
});
|
|
4586
|
+
return retVal;
|
|
4587
|
+
};
|
|
4347
4588
|
const deserializeAws_restJson1SubChannelSummary = (output, context) => {
|
|
4348
4589
|
return {
|
|
4349
4590
|
MembershipCount: (0, smithy_client_1.expectInt32)(output.MembershipCount),
|
|
@@ -13,6 +13,7 @@ import { DeleteChannelFlowCommand, } from "./commands/DeleteChannelFlowCommand";
|
|
|
13
13
|
import { DeleteChannelMembershipCommand, } from "./commands/DeleteChannelMembershipCommand";
|
|
14
14
|
import { DeleteChannelMessageCommand, } from "./commands/DeleteChannelMessageCommand";
|
|
15
15
|
import { DeleteChannelModeratorCommand, } from "./commands/DeleteChannelModeratorCommand";
|
|
16
|
+
import { DeleteMessagingStreamingConfigurationsCommand, } from "./commands/DeleteMessagingStreamingConfigurationsCommand";
|
|
16
17
|
import { DescribeChannelBanCommand, } from "./commands/DescribeChannelBanCommand";
|
|
17
18
|
import { DescribeChannelCommand, } from "./commands/DescribeChannelCommand";
|
|
18
19
|
import { DescribeChannelFlowCommand, } from "./commands/DescribeChannelFlowCommand";
|
|
@@ -25,6 +26,7 @@ import { GetChannelMembershipPreferencesCommand, } from "./commands/GetChannelMe
|
|
|
25
26
|
import { GetChannelMessageCommand, } from "./commands/GetChannelMessageCommand";
|
|
26
27
|
import { GetChannelMessageStatusCommand, } from "./commands/GetChannelMessageStatusCommand";
|
|
27
28
|
import { GetMessagingSessionEndpointCommand, } from "./commands/GetMessagingSessionEndpointCommand";
|
|
29
|
+
import { GetMessagingStreamingConfigurationsCommand, } from "./commands/GetMessagingStreamingConfigurationsCommand";
|
|
28
30
|
import { ListChannelBansCommand, } from "./commands/ListChannelBansCommand";
|
|
29
31
|
import { ListChannelFlowsCommand, } from "./commands/ListChannelFlowsCommand";
|
|
30
32
|
import { ListChannelMembershipsCommand, } from "./commands/ListChannelMembershipsCommand";
|
|
@@ -37,6 +39,7 @@ import { ListChannelsModeratedByAppInstanceUserCommand, } from "./commands/ListC
|
|
|
37
39
|
import { ListSubChannelsCommand, } from "./commands/ListSubChannelsCommand";
|
|
38
40
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
39
41
|
import { PutChannelMembershipPreferencesCommand, } from "./commands/PutChannelMembershipPreferencesCommand";
|
|
42
|
+
import { PutMessagingStreamingConfigurationsCommand, } from "./commands/PutMessagingStreamingConfigurationsCommand";
|
|
40
43
|
import { RedactChannelMessageCommand, } from "./commands/RedactChannelMessageCommand";
|
|
41
44
|
import { SearchChannelsCommand, } from "./commands/SearchChannelsCommand";
|
|
42
45
|
import { SendChannelMessageCommand, } from "./commands/SendChannelMessageCommand";
|
|
@@ -243,6 +246,20 @@ export class ChimeSDKMessaging extends ChimeSDKMessagingClient {
|
|
|
243
246
|
return this.send(command, optionsOrCb);
|
|
244
247
|
}
|
|
245
248
|
}
|
|
249
|
+
deleteMessagingStreamingConfigurations(args, optionsOrCb, cb) {
|
|
250
|
+
const command = new DeleteMessagingStreamingConfigurationsCommand(args);
|
|
251
|
+
if (typeof optionsOrCb === "function") {
|
|
252
|
+
this.send(command, optionsOrCb);
|
|
253
|
+
}
|
|
254
|
+
else if (typeof cb === "function") {
|
|
255
|
+
if (typeof optionsOrCb !== "object")
|
|
256
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
257
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
return this.send(command, optionsOrCb);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
246
263
|
describeChannel(args, optionsOrCb, cb) {
|
|
247
264
|
const command = new DescribeChannelCommand(args);
|
|
248
265
|
if (typeof optionsOrCb === "function") {
|
|
@@ -411,6 +428,20 @@ export class ChimeSDKMessaging extends ChimeSDKMessagingClient {
|
|
|
411
428
|
return this.send(command, optionsOrCb);
|
|
412
429
|
}
|
|
413
430
|
}
|
|
431
|
+
getMessagingStreamingConfigurations(args, optionsOrCb, cb) {
|
|
432
|
+
const command = new GetMessagingStreamingConfigurationsCommand(args);
|
|
433
|
+
if (typeof optionsOrCb === "function") {
|
|
434
|
+
this.send(command, optionsOrCb);
|
|
435
|
+
}
|
|
436
|
+
else if (typeof cb === "function") {
|
|
437
|
+
if (typeof optionsOrCb !== "object")
|
|
438
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
439
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
440
|
+
}
|
|
441
|
+
else {
|
|
442
|
+
return this.send(command, optionsOrCb);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
414
445
|
listChannelBans(args, optionsOrCb, cb) {
|
|
415
446
|
const command = new ListChannelBansCommand(args);
|
|
416
447
|
if (typeof optionsOrCb === "function") {
|
|
@@ -579,6 +610,20 @@ export class ChimeSDKMessaging extends ChimeSDKMessagingClient {
|
|
|
579
610
|
return this.send(command, optionsOrCb);
|
|
580
611
|
}
|
|
581
612
|
}
|
|
613
|
+
putMessagingStreamingConfigurations(args, optionsOrCb, cb) {
|
|
614
|
+
const command = new PutMessagingStreamingConfigurationsCommand(args);
|
|
615
|
+
if (typeof optionsOrCb === "function") {
|
|
616
|
+
this.send(command, optionsOrCb);
|
|
617
|
+
}
|
|
618
|
+
else if (typeof cb === "function") {
|
|
619
|
+
if (typeof optionsOrCb !== "object")
|
|
620
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
621
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
return this.send(command, optionsOrCb);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
582
627
|
redactChannelMessage(args, optionsOrCb, cb) {
|
|
583
628
|
const command = new RedactChannelMessageCommand(args);
|
|
584
629
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteMessagingStreamingConfigurationsRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand, serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteMessagingStreamingConfigurationsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteMessagingStreamingConfigurationsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ChimeSDKMessagingClient";
|
|
25
|
+
const commandName = "DeleteMessagingStreamingConfigurationsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteMessagingStreamingConfigurationsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: (output) => output,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetMessagingStreamingConfigurationsRequestFilterSensitiveLog, GetMessagingStreamingConfigurationsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand, serializeAws_restJson1GetMessagingStreamingConfigurationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetMessagingStreamingConfigurationsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetMessagingStreamingConfigurationsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ChimeSDKMessagingClient";
|
|
25
|
+
const commandName = "GetMessagingStreamingConfigurationsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetMessagingStreamingConfigurationsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetMessagingStreamingConfigurationsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetMessagingStreamingConfigurationsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetMessagingStreamingConfigurationsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutMessagingStreamingConfigurationsRequestFilterSensitiveLog, PutMessagingStreamingConfigurationsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand, serializeAws_restJson1PutMessagingStreamingConfigurationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class PutMessagingStreamingConfigurationsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutMessagingStreamingConfigurationsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ChimeSDKMessagingClient";
|
|
25
|
+
const commandName = "PutMessagingStreamingConfigurationsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: PutMessagingStreamingConfigurationsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: PutMessagingStreamingConfigurationsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1PutMessagingStreamingConfigurationsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1PutMessagingStreamingConfigurationsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -12,6 +12,7 @@ export * from "./DeleteChannelFlowCommand";
|
|
|
12
12
|
export * from "./DeleteChannelMembershipCommand";
|
|
13
13
|
export * from "./DeleteChannelMessageCommand";
|
|
14
14
|
export * from "./DeleteChannelModeratorCommand";
|
|
15
|
+
export * from "./DeleteMessagingStreamingConfigurationsCommand";
|
|
15
16
|
export * from "./DescribeChannelBanCommand";
|
|
16
17
|
export * from "./DescribeChannelCommand";
|
|
17
18
|
export * from "./DescribeChannelFlowCommand";
|
|
@@ -24,6 +25,7 @@ export * from "./GetChannelMembershipPreferencesCommand";
|
|
|
24
25
|
export * from "./GetChannelMessageCommand";
|
|
25
26
|
export * from "./GetChannelMessageStatusCommand";
|
|
26
27
|
export * from "./GetMessagingSessionEndpointCommand";
|
|
28
|
+
export * from "./GetMessagingStreamingConfigurationsCommand";
|
|
27
29
|
export * from "./ListChannelBansCommand";
|
|
28
30
|
export * from "./ListChannelFlowsCommand";
|
|
29
31
|
export * from "./ListChannelMembershipsCommand";
|
|
@@ -36,6 +38,7 @@ export * from "./ListChannelsModeratedByAppInstanceUserCommand";
|
|
|
36
38
|
export * from "./ListSubChannelsCommand";
|
|
37
39
|
export * from "./ListTagsForResourceCommand";
|
|
38
40
|
export * from "./PutChannelMembershipPreferencesCommand";
|
|
41
|
+
export * from "./PutMessagingStreamingConfigurationsCommand";
|
|
39
42
|
export * from "./RedactChannelMessageCommand";
|
|
40
43
|
export * from "./SearchChannelsCommand";
|
|
41
44
|
export * from "./SendChannelMessageCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const r = "fn", s = "argv", t = "ref";
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://messaging-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://messaging-chime-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://messaging-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://messaging-chime.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -196,6 +196,11 @@ export var ChannelMessageType;
|
|
|
196
196
|
ChannelMessageType["CONTROL"] = "CONTROL";
|
|
197
197
|
ChannelMessageType["STANDARD"] = "STANDARD";
|
|
198
198
|
})(ChannelMessageType || (ChannelMessageType = {}));
|
|
199
|
+
export var MessagingDataType;
|
|
200
|
+
(function (MessagingDataType) {
|
|
201
|
+
MessagingDataType["Channel"] = "Channel";
|
|
202
|
+
MessagingDataType["ChannelMessage"] = "ChannelMessage";
|
|
203
|
+
})(MessagingDataType || (MessagingDataType = {}));
|
|
199
204
|
export var SortOrder;
|
|
200
205
|
(function (SortOrder) {
|
|
201
206
|
SortOrder["ASCENDING"] = "ASCENDING";
|
|
@@ -434,6 +439,9 @@ export const DeleteChannelMessageRequestFilterSensitiveLog = (obj) => ({
|
|
|
434
439
|
export const DeleteChannelModeratorRequestFilterSensitiveLog = (obj) => ({
|
|
435
440
|
...obj,
|
|
436
441
|
});
|
|
442
|
+
export const DeleteMessagingStreamingConfigurationsRequestFilterSensitiveLog = (obj) => ({
|
|
443
|
+
...obj,
|
|
444
|
+
});
|
|
437
445
|
export const DescribeChannelRequestFilterSensitiveLog = (obj) => ({
|
|
438
446
|
...obj,
|
|
439
447
|
});
|
|
@@ -518,6 +526,15 @@ export const MessagingSessionEndpointFilterSensitiveLog = (obj) => ({
|
|
|
518
526
|
export const GetMessagingSessionEndpointResponseFilterSensitiveLog = (obj) => ({
|
|
519
527
|
...obj,
|
|
520
528
|
});
|
|
529
|
+
export const GetMessagingStreamingConfigurationsRequestFilterSensitiveLog = (obj) => ({
|
|
530
|
+
...obj,
|
|
531
|
+
});
|
|
532
|
+
export const StreamingConfigurationFilterSensitiveLog = (obj) => ({
|
|
533
|
+
...obj,
|
|
534
|
+
});
|
|
535
|
+
export const GetMessagingStreamingConfigurationsResponseFilterSensitiveLog = (obj) => ({
|
|
536
|
+
...obj,
|
|
537
|
+
});
|
|
521
538
|
export const ListChannelBansRequestFilterSensitiveLog = (obj) => ({
|
|
522
539
|
...obj,
|
|
523
540
|
...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
|
|
@@ -638,6 +655,12 @@ export const PutChannelMembershipPreferencesResponseFilterSensitiveLog = (obj) =
|
|
|
638
655
|
...(obj.Member && { Member: IdentityFilterSensitiveLog(obj.Member) }),
|
|
639
656
|
...(obj.Preferences && { Preferences: ChannelMembershipPreferencesFilterSensitiveLog(obj.Preferences) }),
|
|
640
657
|
});
|
|
658
|
+
export const PutMessagingStreamingConfigurationsRequestFilterSensitiveLog = (obj) => ({
|
|
659
|
+
...obj,
|
|
660
|
+
});
|
|
661
|
+
export const PutMessagingStreamingConfigurationsResponseFilterSensitiveLog = (obj) => ({
|
|
662
|
+
...obj,
|
|
663
|
+
});
|
|
641
664
|
export const RedactChannelMessageRequestFilterSensitiveLog = (obj) => ({
|
|
642
665
|
...obj,
|
|
643
666
|
});
|