@aws-sdk/client-ivschat 3.477.0 → 3.481.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.
Files changed (81) hide show
  1. package/dist-cjs/commands/CreateChatTokenCommand.js +18 -41
  2. package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +18 -41
  3. package/dist-cjs/commands/CreateRoomCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteMessageCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteRoomCommand.js +18 -41
  7. package/dist-cjs/commands/DisconnectUserCommand.js +18 -41
  8. package/dist-cjs/commands/GetLoggingConfigurationCommand.js +18 -41
  9. package/dist-cjs/commands/GetRoomCommand.js +18 -41
  10. package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +18 -41
  11. package/dist-cjs/commands/ListRoomsCommand.js +18 -41
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  13. package/dist-cjs/commands/SendEventCommand.js +18 -41
  14. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  15. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  16. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +18 -41
  17. package/dist-cjs/commands/UpdateRoomCommand.js +18 -41
  18. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  19. package/dist-cjs/pagination/ListLoggingConfigurationsPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListRoomsPaginator.js +2 -24
  21. package/dist-es/commands/CreateChatTokenCommand.js +18 -41
  22. package/dist-es/commands/CreateLoggingConfigurationCommand.js +18 -41
  23. package/dist-es/commands/CreateRoomCommand.js +18 -41
  24. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +18 -41
  25. package/dist-es/commands/DeleteMessageCommand.js +18 -41
  26. package/dist-es/commands/DeleteRoomCommand.js +18 -41
  27. package/dist-es/commands/DisconnectUserCommand.js +18 -41
  28. package/dist-es/commands/GetLoggingConfigurationCommand.js +18 -41
  29. package/dist-es/commands/GetRoomCommand.js +18 -41
  30. package/dist-es/commands/ListLoggingConfigurationsCommand.js +18 -41
  31. package/dist-es/commands/ListRoomsCommand.js +18 -41
  32. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  33. package/dist-es/commands/SendEventCommand.js +18 -41
  34. package/dist-es/commands/TagResourceCommand.js +18 -41
  35. package/dist-es/commands/UntagResourceCommand.js +18 -41
  36. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +18 -41
  37. package/dist-es/commands/UpdateRoomCommand.js +18 -41
  38. package/dist-es/endpoint/EndpointParameters.js +6 -0
  39. package/dist-es/pagination/ListLoggingConfigurationsPaginator.js +2 -23
  40. package/dist-es/pagination/ListRoomsPaginator.js +2 -23
  41. package/dist-types/commands/CreateChatTokenCommand.d.ts +6 -21
  42. package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +6 -21
  43. package/dist-types/commands/CreateRoomCommand.d.ts +6 -21
  44. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +6 -21
  45. package/dist-types/commands/DeleteMessageCommand.d.ts +6 -21
  46. package/dist-types/commands/DeleteRoomCommand.d.ts +6 -21
  47. package/dist-types/commands/DisconnectUserCommand.d.ts +6 -21
  48. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +6 -21
  49. package/dist-types/commands/GetRoomCommand.d.ts +6 -21
  50. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +6 -21
  51. package/dist-types/commands/ListRoomsCommand.d.ts +6 -21
  52. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  53. package/dist-types/commands/SendEventCommand.d.ts +6 -21
  54. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  55. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  56. package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +6 -21
  57. package/dist-types/commands/UpdateRoomCommand.d.ts +6 -21
  58. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  59. package/dist-types/pagination/ListLoggingConfigurationsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListRoomsPaginator.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/CreateChatTokenCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +12 -24
  63. package/dist-types/ts3.4/commands/CreateRoomCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +12 -24
  65. package/dist-types/ts3.4/commands/DeleteMessageCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/DeleteRoomCommand.d.ts +14 -23
  67. package/dist-types/ts3.4/commands/DisconnectUserCommand.d.ts +14 -23
  68. package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +12 -24
  69. package/dist-types/ts3.4/commands/GetRoomCommand.d.ts +12 -23
  70. package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +12 -24
  71. package/dist-types/ts3.4/commands/ListRoomsCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/commands/SendEventCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  75. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  76. package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +12 -24
  77. package/dist-types/ts3.4/commands/UpdateRoomCommand.d.ts +14 -23
  78. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  79. package/dist-types/ts3.4/pagination/ListLoggingConfigurationsPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListRoomsPaginator.d.ts +3 -3
  81. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListLoggingConfigurationsCommand, se_ListLoggingConfigurationsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListLoggingConfigurationsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListLoggingConfigurationsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "ListLoggingConfigurationsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "ListLoggingConfigurations",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListLoggingConfigurationsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListLoggingConfigurationsCommand(output, context);
46
- }
7
+ export class ListLoggingConfigurationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "ListLoggingConfigurations", {})
19
+ .n("IvschatClient", "ListLoggingConfigurationsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListLoggingConfigurationsCommand)
22
+ .de(de_ListLoggingConfigurationsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListRoomsCommand, se_ListRoomsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListRoomsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListRoomsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "ListRoomsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "ListRooms",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListRoomsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListRoomsCommand(output, context);
46
- }
7
+ export class ListRoomsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "ListRooms", {})
19
+ .n("IvschatClient", "ListRoomsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListRoomsCommand)
22
+ .de(de_ListRoomsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "ListTagsForResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "ListTagsForResource", {})
19
+ .n("IvschatClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_SendEventCommand, se_SendEventCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class SendEventCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SendEventCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "SendEventCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "SendEvent",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SendEventCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SendEventCommand(output, context);
46
- }
7
+ export class SendEventCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "SendEvent", {})
19
+ .n("IvschatClient", "SendEventCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SendEventCommand)
22
+ .de(de_SendEventCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "TagResource", {})
19
+ .n("IvschatClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "UntagResource", {})
19
+ .n("IvschatClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateLoggingConfigurationCommand, se_UpdateLoggingConfigurationCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateLoggingConfigurationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateLoggingConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "UpdateLoggingConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "UpdateLoggingConfiguration",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateLoggingConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateLoggingConfigurationCommand(output, context);
46
- }
7
+ export class UpdateLoggingConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "UpdateLoggingConfiguration", {})
19
+ .n("IvschatClient", "UpdateLoggingConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateLoggingConfigurationCommand)
22
+ .de(de_UpdateLoggingConfigurationCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateRoomCommand, se_UpdateRoomCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateRoomCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateRoomCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IvschatClient";
26
- const commandName = "UpdateRoomCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonInteractiveVideoServiceChat",
35
- operation: "UpdateRoom",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateRoomCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateRoomCommand(output, context);
46
- }
7
+ export class UpdateRoomCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonInteractiveVideoServiceChat", "UpdateRoom", {})
19
+ .n("IvschatClient", "UpdateRoomCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateRoomCommand)
22
+ .de(de_UpdateRoomCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "ivschat",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLoggingConfigurationsCommand, } from "../commands/ListLoggingConfigurationsCommand";
2
3
  import { IvschatClient } from "../IvschatClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLoggingConfigurationsCommand(input), ...args);
5
- };
6
- export async function* paginateListLoggingConfigurations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof IvschatClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Ivschat | IvschatClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListLoggingConfigurations = createPaginator(IvschatClient, ListLoggingConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRoomsCommand } from "../commands/ListRoomsCommand";
2
3
  import { IvschatClient } from "../IvschatClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRoomsCommand(input), ...args);
5
- };
6
- export async function* paginateListRooms(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof IvschatClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Ivschat | IvschatClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListRooms = createPaginator(IvschatClient, ListRoomsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { IvschatClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvschatClient";
5
4
  import { CreateChatTokenRequest, CreateChatTokenResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateChatTokenCommandInput extends CreateChatTokenRequest {
21
20
  */
22
21
  export interface CreateChatTokenCommandOutput extends CreateChatTokenResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateChatTokenCommand_base: {
24
+ new (input: CreateChatTokenCommandInput): import("@smithy/smithy-client").CommandImpl<CreateChatTokenCommandInput, CreateChatTokenCommandOutput, IvschatClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an encrypted token that is used by a chat participant to establish an individual
@@ -84,23 +87,5 @@ export interface CreateChatTokenCommandOutput extends CreateChatTokenResponse, _
84
87
  * <p>Base exception class for all service exceptions from Ivschat service.</p>
85
88
  *
86
89
  */
87
- export declare class CreateChatTokenCommand extends $Command<CreateChatTokenCommandInput, CreateChatTokenCommandOutput, IvschatClientResolvedConfig> {
88
- readonly input: CreateChatTokenCommandInput;
89
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
90
- /**
91
- * @public
92
- */
93
- constructor(input: CreateChatTokenCommandInput);
94
- /**
95
- * @internal
96
- */
97
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IvschatClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateChatTokenCommandInput, CreateChatTokenCommandOutput>;
98
- /**
99
- * @internal
100
- */
101
- private serialize;
102
- /**
103
- * @internal
104
- */
105
- private deserialize;
90
+ export declare class CreateChatTokenCommand extends CreateChatTokenCommand_base {
106
91
  }