@aws-sdk/client-ivschat 3.211.0 → 3.213.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 +37 -5
- package/dist-cjs/Ivschat.js +75 -0
- package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +46 -0
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +121 -6
- package/dist-cjs/pagination/ListLoggingConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +522 -16
- package/dist-es/Ivschat.js +75 -0
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/GetLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +42 -0
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +105 -5
- package/dist-es/pagination/ListLoggingConfigurationsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +513 -17
- package/dist-types/Ivschat.d.ts +84 -8
- package/dist-types/IvschatClient.d.ts +44 -7
- package/dist-types/commands/CreateChatTokenCommand.d.ts +10 -3
- package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +38 -0
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +473 -37
- package/dist-types/pagination/ListLoggingConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/Ivschat.d.ts +85 -0
- package/dist-types/ts3.4/IvschatClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +184 -9
- package/dist-types/ts3.4/pagination/ListLoggingConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +28 -28
package/dist-es/Ivschat.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { CreateChatTokenCommand, } from "./commands/CreateChatTokenCommand";
|
|
2
|
+
import { CreateLoggingConfigurationCommand, } from "./commands/CreateLoggingConfigurationCommand";
|
|
2
3
|
import { CreateRoomCommand } from "./commands/CreateRoomCommand";
|
|
4
|
+
import { DeleteLoggingConfigurationCommand, } from "./commands/DeleteLoggingConfigurationCommand";
|
|
3
5
|
import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
|
|
4
6
|
import { DeleteRoomCommand } from "./commands/DeleteRoomCommand";
|
|
5
7
|
import { DisconnectUserCommand, } from "./commands/DisconnectUserCommand";
|
|
8
|
+
import { GetLoggingConfigurationCommand, } from "./commands/GetLoggingConfigurationCommand";
|
|
6
9
|
import { GetRoomCommand } from "./commands/GetRoomCommand";
|
|
10
|
+
import { ListLoggingConfigurationsCommand, } from "./commands/ListLoggingConfigurationsCommand";
|
|
7
11
|
import { ListRoomsCommand } from "./commands/ListRoomsCommand";
|
|
8
12
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
9
13
|
import { SendEventCommand } from "./commands/SendEventCommand";
|
|
10
14
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
11
15
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
16
|
+
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
12
17
|
import { UpdateRoomCommand } from "./commands/UpdateRoomCommand";
|
|
13
18
|
import { IvschatClient } from "./IvschatClient";
|
|
14
19
|
export class Ivschat extends IvschatClient {
|
|
@@ -26,6 +31,20 @@ export class Ivschat extends IvschatClient {
|
|
|
26
31
|
return this.send(command, optionsOrCb);
|
|
27
32
|
}
|
|
28
33
|
}
|
|
34
|
+
createLoggingConfiguration(args, optionsOrCb, cb) {
|
|
35
|
+
const command = new CreateLoggingConfigurationCommand(args);
|
|
36
|
+
if (typeof optionsOrCb === "function") {
|
|
37
|
+
this.send(command, optionsOrCb);
|
|
38
|
+
}
|
|
39
|
+
else if (typeof cb === "function") {
|
|
40
|
+
if (typeof optionsOrCb !== "object")
|
|
41
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return this.send(command, optionsOrCb);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
29
48
|
createRoom(args, optionsOrCb, cb) {
|
|
30
49
|
const command = new CreateRoomCommand(args);
|
|
31
50
|
if (typeof optionsOrCb === "function") {
|
|
@@ -40,6 +59,20 @@ export class Ivschat extends IvschatClient {
|
|
|
40
59
|
return this.send(command, optionsOrCb);
|
|
41
60
|
}
|
|
42
61
|
}
|
|
62
|
+
deleteLoggingConfiguration(args, optionsOrCb, cb) {
|
|
63
|
+
const command = new DeleteLoggingConfigurationCommand(args);
|
|
64
|
+
if (typeof optionsOrCb === "function") {
|
|
65
|
+
this.send(command, optionsOrCb);
|
|
66
|
+
}
|
|
67
|
+
else if (typeof cb === "function") {
|
|
68
|
+
if (typeof optionsOrCb !== "object")
|
|
69
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return this.send(command, optionsOrCb);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
43
76
|
deleteMessage(args, optionsOrCb, cb) {
|
|
44
77
|
const command = new DeleteMessageCommand(args);
|
|
45
78
|
if (typeof optionsOrCb === "function") {
|
|
@@ -82,6 +115,20 @@ export class Ivschat extends IvschatClient {
|
|
|
82
115
|
return this.send(command, optionsOrCb);
|
|
83
116
|
}
|
|
84
117
|
}
|
|
118
|
+
getLoggingConfiguration(args, optionsOrCb, cb) {
|
|
119
|
+
const command = new GetLoggingConfigurationCommand(args);
|
|
120
|
+
if (typeof optionsOrCb === "function") {
|
|
121
|
+
this.send(command, optionsOrCb);
|
|
122
|
+
}
|
|
123
|
+
else if (typeof cb === "function") {
|
|
124
|
+
if (typeof optionsOrCb !== "object")
|
|
125
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
return this.send(command, optionsOrCb);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
85
132
|
getRoom(args, optionsOrCb, cb) {
|
|
86
133
|
const command = new GetRoomCommand(args);
|
|
87
134
|
if (typeof optionsOrCb === "function") {
|
|
@@ -96,6 +143,20 @@ export class Ivschat extends IvschatClient {
|
|
|
96
143
|
return this.send(command, optionsOrCb);
|
|
97
144
|
}
|
|
98
145
|
}
|
|
146
|
+
listLoggingConfigurations(args, optionsOrCb, cb) {
|
|
147
|
+
const command = new ListLoggingConfigurationsCommand(args);
|
|
148
|
+
if (typeof optionsOrCb === "function") {
|
|
149
|
+
this.send(command, optionsOrCb);
|
|
150
|
+
}
|
|
151
|
+
else if (typeof cb === "function") {
|
|
152
|
+
if (typeof optionsOrCb !== "object")
|
|
153
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
return this.send(command, optionsOrCb);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
99
160
|
listRooms(args, optionsOrCb, cb) {
|
|
100
161
|
const command = new ListRoomsCommand(args);
|
|
101
162
|
if (typeof optionsOrCb === "function") {
|
|
@@ -166,6 +227,20 @@ export class Ivschat extends IvschatClient {
|
|
|
166
227
|
return this.send(command, optionsOrCb);
|
|
167
228
|
}
|
|
168
229
|
}
|
|
230
|
+
updateLoggingConfiguration(args, optionsOrCb, cb) {
|
|
231
|
+
const command = new UpdateLoggingConfigurationCommand(args);
|
|
232
|
+
if (typeof optionsOrCb === "function") {
|
|
233
|
+
this.send(command, optionsOrCb);
|
|
234
|
+
}
|
|
235
|
+
else if (typeof cb === "function") {
|
|
236
|
+
if (typeof optionsOrCb !== "object")
|
|
237
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
return this.send(command, optionsOrCb);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
169
244
|
updateRoom(args, optionsOrCb, cb) {
|
|
170
245
|
const command = new UpdateRoomCommand(args);
|
|
171
246
|
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 { CreateLoggingConfigurationRequestFilterSensitiveLog, CreateLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateLoggingConfigurationCommand, serializeAws_restJson1CreateLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CreateLoggingConfigurationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateLoggingConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IvschatClient";
|
|
25
|
+
const commandName = "CreateLoggingConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateLoggingConfigurationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateLoggingConfigurationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CreateLoggingConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CreateLoggingConfigurationCommand(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 { DeleteLoggingConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteLoggingConfigurationCommand, serializeAws_restJson1DeleteLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteLoggingConfigurationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteLoggingConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IvschatClient";
|
|
25
|
+
const commandName = "DeleteLoggingConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteLoggingConfigurationRequestFilterSensitiveLog,
|
|
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_restJson1DeleteLoggingConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteLoggingConfigurationCommand(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 { GetLoggingConfigurationRequestFilterSensitiveLog, GetLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetLoggingConfigurationCommand, serializeAws_restJson1GetLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetLoggingConfigurationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetLoggingConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IvschatClient";
|
|
25
|
+
const commandName = "GetLoggingConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetLoggingConfigurationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetLoggingConfigurationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetLoggingConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetLoggingConfigurationCommand(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 { ListLoggingConfigurationsRequestFilterSensitiveLog, ListLoggingConfigurationsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListLoggingConfigurationsCommand, serializeAws_restJson1ListLoggingConfigurationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListLoggingConfigurationsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListLoggingConfigurationsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IvschatClient";
|
|
25
|
+
const commandName = "ListLoggingConfigurationsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListLoggingConfigurationsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListLoggingConfigurationsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListLoggingConfigurationsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListLoggingConfigurationsCommand(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 { UpdateLoggingConfigurationRequestFilterSensitiveLog, UpdateLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateLoggingConfigurationCommand, serializeAws_restJson1UpdateLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class UpdateLoggingConfigurationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateLoggingConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IvschatClient";
|
|
25
|
+
const commandName = "UpdateLoggingConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateLoggingConfigurationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateLoggingConfigurationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1UpdateLoggingConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1UpdateLoggingConfigurationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
export * from "./CreateChatTokenCommand";
|
|
2
|
+
export * from "./CreateLoggingConfigurationCommand";
|
|
2
3
|
export * from "./CreateRoomCommand";
|
|
4
|
+
export * from "./DeleteLoggingConfigurationCommand";
|
|
3
5
|
export * from "./DeleteMessageCommand";
|
|
4
6
|
export * from "./DeleteRoomCommand";
|
|
5
7
|
export * from "./DisconnectUserCommand";
|
|
8
|
+
export * from "./GetLoggingConfigurationCommand";
|
|
6
9
|
export * from "./GetRoomCommand";
|
|
10
|
+
export * from "./ListLoggingConfigurationsCommand";
|
|
7
11
|
export * from "./ListRoomsCommand";
|
|
8
12
|
export * from "./ListTagsForResourceCommand";
|
|
9
13
|
export * from "./SendEventCommand";
|
|
10
14
|
export * from "./TagResourceCommand";
|
|
11
15
|
export * from "./UntagResourceCommand";
|
|
16
|
+
export * from "./UpdateLoggingConfigurationCommand";
|
|
12
17
|
export * from "./UpdateRoomCommand";
|
|
@@ -81,11 +81,22 @@ export class ConflictException extends __BaseException {
|
|
|
81
81
|
this.resourceType = opts.resourceType;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
export var
|
|
85
|
-
(function (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
export var DestinationConfiguration;
|
|
85
|
+
(function (DestinationConfiguration) {
|
|
86
|
+
DestinationConfiguration.visit = (value, visitor) => {
|
|
87
|
+
if (value.s3 !== undefined)
|
|
88
|
+
return visitor.s3(value.s3);
|
|
89
|
+
if (value.cloudWatchLogs !== undefined)
|
|
90
|
+
return visitor.cloudWatchLogs(value.cloudWatchLogs);
|
|
91
|
+
if (value.firehose !== undefined)
|
|
92
|
+
return visitor.firehose(value.firehose);
|
|
93
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
94
|
+
};
|
|
95
|
+
})(DestinationConfiguration || (DestinationConfiguration = {}));
|
|
96
|
+
export var CreateLoggingConfigurationState;
|
|
97
|
+
(function (CreateLoggingConfigurationState) {
|
|
98
|
+
CreateLoggingConfigurationState["ACTIVE"] = "ACTIVE";
|
|
99
|
+
})(CreateLoggingConfigurationState || (CreateLoggingConfigurationState = {}));
|
|
89
100
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
90
101
|
constructor(opts) {
|
|
91
102
|
super({
|
|
@@ -101,6 +112,11 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
101
112
|
this.limit = opts.limit;
|
|
102
113
|
}
|
|
103
114
|
}
|
|
115
|
+
export var FallbackResult;
|
|
116
|
+
(function (FallbackResult) {
|
|
117
|
+
FallbackResult["ALLOW"] = "ALLOW";
|
|
118
|
+
FallbackResult["DENY"] = "DENY";
|
|
119
|
+
})(FallbackResult || (FallbackResult = {}));
|
|
104
120
|
export class ThrottlingException extends __BaseException {
|
|
105
121
|
constructor(opts) {
|
|
106
122
|
super({
|
|
@@ -116,6 +132,16 @@ export class ThrottlingException extends __BaseException {
|
|
|
116
132
|
this.limit = opts.limit;
|
|
117
133
|
}
|
|
118
134
|
}
|
|
135
|
+
export var LoggingConfigurationState;
|
|
136
|
+
(function (LoggingConfigurationState) {
|
|
137
|
+
LoggingConfigurationState["ACTIVE"] = "ACTIVE";
|
|
138
|
+
LoggingConfigurationState["CREATE_FAILED"] = "CREATE_FAILED";
|
|
139
|
+
LoggingConfigurationState["CREATING"] = "CREATING";
|
|
140
|
+
LoggingConfigurationState["DELETE_FAILED"] = "DELETE_FAILED";
|
|
141
|
+
LoggingConfigurationState["DELETING"] = "DELETING";
|
|
142
|
+
LoggingConfigurationState["UPDATE_FAILED"] = "UPDATE_FAILED";
|
|
143
|
+
LoggingConfigurationState["UPDATING"] = "UPDATING";
|
|
144
|
+
})(LoggingConfigurationState || (LoggingConfigurationState = {}));
|
|
119
145
|
export class InternalServerException extends __BaseException {
|
|
120
146
|
constructor(opts) {
|
|
121
147
|
super({
|
|
@@ -128,6 +154,10 @@ export class InternalServerException extends __BaseException {
|
|
|
128
154
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
129
155
|
}
|
|
130
156
|
}
|
|
157
|
+
export var UpdateLoggingConfigurationState;
|
|
158
|
+
(function (UpdateLoggingConfigurationState) {
|
|
159
|
+
UpdateLoggingConfigurationState["ACTIVE"] = "ACTIVE";
|
|
160
|
+
})(UpdateLoggingConfigurationState || (UpdateLoggingConfigurationState = {}));
|
|
131
161
|
export const CreateChatTokenRequestFilterSensitiveLog = (obj) => ({
|
|
132
162
|
...obj,
|
|
133
163
|
});
|
|
@@ -137,6 +167,37 @@ export const CreateChatTokenResponseFilterSensitiveLog = (obj) => ({
|
|
|
137
167
|
export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
|
|
138
168
|
...obj,
|
|
139
169
|
});
|
|
170
|
+
export const CloudWatchLogsDestinationConfigurationFilterSensitiveLog = (obj) => ({
|
|
171
|
+
...obj,
|
|
172
|
+
});
|
|
173
|
+
export const FirehoseDestinationConfigurationFilterSensitiveLog = (obj) => ({
|
|
174
|
+
...obj,
|
|
175
|
+
});
|
|
176
|
+
export const S3DestinationConfigurationFilterSensitiveLog = (obj) => ({
|
|
177
|
+
...obj,
|
|
178
|
+
});
|
|
179
|
+
export const DestinationConfigurationFilterSensitiveLog = (obj) => {
|
|
180
|
+
if (obj.s3 !== undefined)
|
|
181
|
+
return { s3: S3DestinationConfigurationFilterSensitiveLog(obj.s3) };
|
|
182
|
+
if (obj.cloudWatchLogs !== undefined)
|
|
183
|
+
return { cloudWatchLogs: CloudWatchLogsDestinationConfigurationFilterSensitiveLog(obj.cloudWatchLogs) };
|
|
184
|
+
if (obj.firehose !== undefined)
|
|
185
|
+
return { firehose: FirehoseDestinationConfigurationFilterSensitiveLog(obj.firehose) };
|
|
186
|
+
if (obj.$unknown !== undefined)
|
|
187
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
188
|
+
};
|
|
189
|
+
export const CreateLoggingConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
190
|
+
...obj,
|
|
191
|
+
...(obj.destinationConfiguration && {
|
|
192
|
+
destinationConfiguration: DestinationConfigurationFilterSensitiveLog(obj.destinationConfiguration),
|
|
193
|
+
}),
|
|
194
|
+
});
|
|
195
|
+
export const CreateLoggingConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
196
|
+
...obj,
|
|
197
|
+
...(obj.destinationConfiguration && {
|
|
198
|
+
destinationConfiguration: DestinationConfigurationFilterSensitiveLog(obj.destinationConfiguration),
|
|
199
|
+
}),
|
|
200
|
+
});
|
|
140
201
|
export const MessageReviewHandlerFilterSensitiveLog = (obj) => ({
|
|
141
202
|
...obj,
|
|
142
203
|
});
|
|
@@ -146,6 +207,9 @@ export const CreateRoomRequestFilterSensitiveLog = (obj) => ({
|
|
|
146
207
|
export const CreateRoomResponseFilterSensitiveLog = (obj) => ({
|
|
147
208
|
...obj,
|
|
148
209
|
});
|
|
210
|
+
export const DeleteLoggingConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
211
|
+
...obj,
|
|
212
|
+
});
|
|
149
213
|
export const DeleteMessageRequestFilterSensitiveLog = (obj) => ({
|
|
150
214
|
...obj,
|
|
151
215
|
});
|
|
@@ -161,12 +225,36 @@ export const DisconnectUserRequestFilterSensitiveLog = (obj) => ({
|
|
|
161
225
|
export const DisconnectUserResponseFilterSensitiveLog = (obj) => ({
|
|
162
226
|
...obj,
|
|
163
227
|
});
|
|
228
|
+
export const GetLoggingConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
229
|
+
...obj,
|
|
230
|
+
});
|
|
231
|
+
export const GetLoggingConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
232
|
+
...obj,
|
|
233
|
+
...(obj.destinationConfiguration && {
|
|
234
|
+
destinationConfiguration: DestinationConfigurationFilterSensitiveLog(obj.destinationConfiguration),
|
|
235
|
+
}),
|
|
236
|
+
});
|
|
164
237
|
export const GetRoomRequestFilterSensitiveLog = (obj) => ({
|
|
165
238
|
...obj,
|
|
166
239
|
});
|
|
167
240
|
export const GetRoomResponseFilterSensitiveLog = (obj) => ({
|
|
168
241
|
...obj,
|
|
169
242
|
});
|
|
243
|
+
export const ListLoggingConfigurationsRequestFilterSensitiveLog = (obj) => ({
|
|
244
|
+
...obj,
|
|
245
|
+
});
|
|
246
|
+
export const LoggingConfigurationSummaryFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
...(obj.destinationConfiguration && {
|
|
249
|
+
destinationConfiguration: DestinationConfigurationFilterSensitiveLog(obj.destinationConfiguration),
|
|
250
|
+
}),
|
|
251
|
+
});
|
|
252
|
+
export const ListLoggingConfigurationsResponseFilterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
...(obj.loggingConfigurations && {
|
|
255
|
+
loggingConfigurations: obj.loggingConfigurations.map((item) => LoggingConfigurationSummaryFilterSensitiveLog(item)),
|
|
256
|
+
}),
|
|
257
|
+
});
|
|
170
258
|
export const ListRoomsRequestFilterSensitiveLog = (obj) => ({
|
|
171
259
|
...obj,
|
|
172
260
|
});
|
|
@@ -200,6 +288,18 @@ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
|
200
288
|
export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
201
289
|
...obj,
|
|
202
290
|
});
|
|
291
|
+
export const UpdateLoggingConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
292
|
+
...obj,
|
|
293
|
+
...(obj.destinationConfiguration && {
|
|
294
|
+
destinationConfiguration: DestinationConfigurationFilterSensitiveLog(obj.destinationConfiguration),
|
|
295
|
+
}),
|
|
296
|
+
});
|
|
297
|
+
export const UpdateLoggingConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
298
|
+
...obj,
|
|
299
|
+
...(obj.destinationConfiguration && {
|
|
300
|
+
destinationConfiguration: DestinationConfigurationFilterSensitiveLog(obj.destinationConfiguration),
|
|
301
|
+
}),
|
|
302
|
+
});
|
|
203
303
|
export const UpdateRoomRequestFilterSensitiveLog = (obj) => ({
|
|
204
304
|
...obj,
|
|
205
305
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListLoggingConfigurationsCommand, } from "../commands/ListLoggingConfigurationsCommand";
|
|
2
|
+
import { Ivschat } from "../Ivschat";
|
|
3
|
+
import { IvschatClient } from "../IvschatClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListLoggingConfigurationsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listLoggingConfigurations(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListLoggingConfigurations(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Ivschat) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IvschatClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Ivschat | IvschatClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|