@aws-sdk/client-connect 3.442.0 → 3.444.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 +16 -0
- package/dist-cjs/Connect.js +4 -0
- package/dist-cjs/commands/BatchPutContactCommand.js +51 -0
- package/dist-cjs/commands/CreatePersistentContactAssociationCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +23 -2
- package/dist-cjs/models/models_1.js +1 -13
- package/dist-cjs/models/models_2.js +9 -1
- package/dist-cjs/protocols/Aws_restJson1.js +158 -9
- package/dist-es/Connect.js +4 -0
- package/dist-es/commands/BatchPutContactCommand.js +47 -0
- package/dist-es/commands/CreatePersistentContactAssociationCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +21 -0
- package/dist-es/models/models_1.js +0 -12
- package/dist-es/models/models_2.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +145 -0
- package/dist-types/Connect.d.ts +14 -0
- package/dist-types/ConnectClient.d.ts +4 -2
- package/dist-types/commands/BatchPutContactCommand.d.ts +133 -0
- package/dist-types/commands/CreatePersistentContactAssociationCommand.d.ts +98 -0
- package/dist-types/commands/CreateViewCommand.d.ts +7 -5
- package/dist-types/commands/CreateViewVersionCommand.d.ts +3 -3
- package/dist-types/commands/DeleteViewCommand.d.ts +2 -1
- package/dist-types/commands/DescribeTrafficDistributionGroupCommand.d.ts +2 -1
- package/dist-types/commands/DescribeUserCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserHierarchyGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserHierarchyStructureCommand.d.ts +1 -2
- package/dist-types/commands/DescribeViewCommand.d.ts +4 -4
- package/dist-types/commands/ListViewVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ReplicateInstanceCommand.d.ts +2 -3
- package/dist-types/commands/StopContactCommand.d.ts +3 -0
- package/dist-types/commands/SuspendContactRecordingCommand.d.ts +3 -3
- package/dist-types/commands/UpdateContactFlowModuleMetadataCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactScheduleCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEvaluationFormCommand.d.ts +1 -2
- package/dist-types/commands/UpdateHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateViewContentCommand.d.ts +6 -4
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +368 -398
- package/dist-types/models/models_1.d.ts +409 -253
- package/dist-types/models/models_2.d.ts +229 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Connect.d.ts +40 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/BatchPutContactCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePersistentContactAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeTrafficDistributionGroupCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeUserHierarchyGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeUserHierarchyStructureCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateContactFlowModuleMetadataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactFlowNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactScheduleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEvaluationFormCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +77 -83
- package/dist-types/ts3.4/models/models_1.d.ts +81 -67
- package/dist-types/ts3.4/models/models_2.d.ts +62 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_BatchPutContactCommand, se_BatchPutContactCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchPutContactCommand 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, BatchPutContactCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "BatchPutContactCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "BatchPutContact",
|
|
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_BatchPutContactCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_BatchPutContactCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_CreatePersistentContactAssociationCommand, se_CreatePersistentContactAssociationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreatePersistentContactAssociationCommand 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, CreatePersistentContactAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "CreatePersistentContactAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "CreatePersistentContactAssociation",
|
|
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_CreatePersistentContactAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_CreatePersistentContactAssociationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -11,6 +11,7 @@ export * from "./AssociateRoutingProfileQueuesCommand";
|
|
|
11
11
|
export * from "./AssociateSecurityKeyCommand";
|
|
12
12
|
export * from "./AssociateTrafficDistributionGroupUserCommand";
|
|
13
13
|
export * from "./BatchGetFlowAssociationCommand";
|
|
14
|
+
export * from "./BatchPutContactCommand";
|
|
14
15
|
export * from "./ClaimPhoneNumberCommand";
|
|
15
16
|
export * from "./CreateAgentStatusCommand";
|
|
16
17
|
export * from "./CreateContactFlowCommand";
|
|
@@ -20,6 +21,7 @@ export * from "./CreateHoursOfOperationCommand";
|
|
|
20
21
|
export * from "./CreateInstanceCommand";
|
|
21
22
|
export * from "./CreateIntegrationAssociationCommand";
|
|
22
23
|
export * from "./CreateParticipantCommand";
|
|
24
|
+
export * from "./CreatePersistentContactAssociationCommand";
|
|
23
25
|
export * from "./CreatePromptCommand";
|
|
24
26
|
export * from "./CreateQueueCommand";
|
|
25
27
|
export * from "./CreateQuickConnectCommand";
|
|
@@ -217,6 +217,23 @@ export const ListFlowAssociationResourceType = {
|
|
|
217
217
|
SMS_PHONE_NUMBER: "SMS_PHONE_NUMBER",
|
|
218
218
|
VOICE_PHONE_NUMBER: "VOICE_PHONE_NUMBER",
|
|
219
219
|
};
|
|
220
|
+
export const EndpointType = {
|
|
221
|
+
CONTACT_FLOW: "CONTACT_FLOW",
|
|
222
|
+
TELEPHONE_NUMBER: "TELEPHONE_NUMBER",
|
|
223
|
+
VOIP: "VOIP",
|
|
224
|
+
};
|
|
225
|
+
export const FailureReasonCode = {
|
|
226
|
+
IDEMPOTENCY_EXCEPTION: "IDEMPOTENCY_EXCEPTION",
|
|
227
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
228
|
+
INVALID_ATTRIBUTE_KEY: "INVALID_ATTRIBUTE_KEY",
|
|
229
|
+
INVALID_CUSTOMER_ENDPOINT: "INVALID_CUSTOMER_ENDPOINT",
|
|
230
|
+
INVALID_QUEUE: "INVALID_QUEUE",
|
|
231
|
+
INVALID_SYSTEM_ENDPOINT: "INVALID_SYSTEM_ENDPOINT",
|
|
232
|
+
MISSING_CAMPAIGN: "MISSING_CAMPAIGN",
|
|
233
|
+
MISSING_CUSTOMER_ENDPOINT: "MISSING_CUSTOMER_ENDPOINT",
|
|
234
|
+
MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT: "MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT",
|
|
235
|
+
REQUEST_THROTTLED: "REQUEST_THROTTLED",
|
|
236
|
+
};
|
|
220
237
|
export class IdempotencyException extends __BaseException {
|
|
221
238
|
constructor(opts) {
|
|
222
239
|
super({
|
|
@@ -370,6 +387,10 @@ export const ParticipantRole = {
|
|
|
370
387
|
CUSTOM_BOT: "CUSTOM_BOT",
|
|
371
388
|
SYSTEM: "SYSTEM",
|
|
372
389
|
};
|
|
390
|
+
export const RehydrationType = {
|
|
391
|
+
ENTIRE_PAST_SESSION: "ENTIRE_PAST_SESSION",
|
|
392
|
+
FROM_SEGMENT: "FROM_SEGMENT",
|
|
393
|
+
};
|
|
373
394
|
export const QuickConnectType = {
|
|
374
395
|
PHONE_NUMBER: "PHONE_NUMBER",
|
|
375
396
|
QUEUE: "QUEUE",
|
|
@@ -141,10 +141,6 @@ export const HierarchyGroupMatchType = {
|
|
|
141
141
|
EXACT: "EXACT",
|
|
142
142
|
WITH_CHILD_GROUPS: "WITH_CHILD_GROUPS",
|
|
143
143
|
};
|
|
144
|
-
export const RehydrationType = {
|
|
145
|
-
ENTIRE_PAST_SESSION: "ENTIRE_PAST_SESSION",
|
|
146
|
-
FROM_SEGMENT: "FROM_SEGMENT",
|
|
147
|
-
};
|
|
148
144
|
export const VoiceRecordingTrack = {
|
|
149
145
|
ALL: "ALL",
|
|
150
146
|
FROM_AGENT: "FROM_AGENT",
|
|
@@ -193,14 +189,6 @@ export class ContactNotFoundException extends __BaseException {
|
|
|
193
189
|
this.Message = opts.Message;
|
|
194
190
|
}
|
|
195
191
|
}
|
|
196
|
-
export const TimerEligibleParticipantRoles = {
|
|
197
|
-
AGENT: "AGENT",
|
|
198
|
-
CUSTOMER: "CUSTOMER",
|
|
199
|
-
};
|
|
200
|
-
export const ParticipantTimerType = {
|
|
201
|
-
DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER",
|
|
202
|
-
IDLE: "IDLE",
|
|
203
|
-
};
|
|
204
192
|
export const DescribeViewResponseFilterSensitiveLog = (obj) => ({
|
|
205
193
|
...obj,
|
|
206
194
|
...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { ViewFilterSensitiveLog, ViewInputContentFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
export const TimerEligibleParticipantRoles = {
|
|
4
|
+
AGENT: "AGENT",
|
|
5
|
+
CUSTOMER: "CUSTOMER",
|
|
6
|
+
};
|
|
7
|
+
export const ParticipantTimerType = {
|
|
8
|
+
DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER",
|
|
9
|
+
IDLE: "IDLE",
|
|
10
|
+
};
|
|
3
11
|
export const ParticipantTimerAction = {
|
|
4
12
|
Unset: "Unset",
|
|
5
13
|
};
|
|
@@ -294,6 +294,28 @@ export const se_BatchGetFlowAssociationCommand = async (input, context) => {
|
|
|
294
294
|
body,
|
|
295
295
|
});
|
|
296
296
|
};
|
|
297
|
+
export const se_BatchPutContactCommand = async (input, context) => {
|
|
298
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
299
|
+
const headers = {
|
|
300
|
+
"content-type": "application/json",
|
|
301
|
+
};
|
|
302
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/batch/{InstanceId}";
|
|
303
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify(take(input, {
|
|
306
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
307
|
+
ContactDataRequestList: (_) => _json(_),
|
|
308
|
+
}));
|
|
309
|
+
return new __HttpRequest({
|
|
310
|
+
protocol,
|
|
311
|
+
hostname,
|
|
312
|
+
port,
|
|
313
|
+
method: "PUT",
|
|
314
|
+
headers,
|
|
315
|
+
path: resolvedPath,
|
|
316
|
+
body,
|
|
317
|
+
});
|
|
318
|
+
};
|
|
297
319
|
export const se_ClaimPhoneNumberCommand = async (input, context) => {
|
|
298
320
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
299
321
|
const headers = {
|
|
@@ -519,6 +541,31 @@ export const se_CreateParticipantCommand = async (input, context) => {
|
|
|
519
541
|
body,
|
|
520
542
|
});
|
|
521
543
|
};
|
|
544
|
+
export const se_CreatePersistentContactAssociationCommand = async (input, context) => {
|
|
545
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
|
+
const headers = {
|
|
547
|
+
"content-type": "application/json",
|
|
548
|
+
};
|
|
549
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
550
|
+
"/contact/persistent-contact-association/{InstanceId}/{InitialContactId}";
|
|
551
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
552
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InitialContactId", () => input.InitialContactId, "{InitialContactId}", false);
|
|
553
|
+
let body;
|
|
554
|
+
body = JSON.stringify(take(input, {
|
|
555
|
+
ClientToken: [],
|
|
556
|
+
RehydrationType: [],
|
|
557
|
+
SourceContactId: [],
|
|
558
|
+
}));
|
|
559
|
+
return new __HttpRequest({
|
|
560
|
+
protocol,
|
|
561
|
+
hostname,
|
|
562
|
+
port,
|
|
563
|
+
method: "POST",
|
|
564
|
+
headers,
|
|
565
|
+
path: resolvedPath,
|
|
566
|
+
body,
|
|
567
|
+
});
|
|
568
|
+
};
|
|
522
569
|
export const se_CreatePromptCommand = async (input, context) => {
|
|
523
570
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
524
571
|
const headers = {
|
|
@@ -3503,6 +3550,7 @@ export const se_StopContactCommand = async (input, context) => {
|
|
|
3503
3550
|
let body;
|
|
3504
3551
|
body = JSON.stringify(take(input, {
|
|
3505
3552
|
ContactId: [],
|
|
3553
|
+
DisconnectReason: (_) => _json(_),
|
|
3506
3554
|
InstanceId: [],
|
|
3507
3555
|
}));
|
|
3508
3556
|
return new __HttpRequest({
|
|
@@ -5287,6 +5335,55 @@ const de_BatchGetFlowAssociationCommandError = async (output, context) => {
|
|
|
5287
5335
|
});
|
|
5288
5336
|
}
|
|
5289
5337
|
};
|
|
5338
|
+
export const de_BatchPutContactCommand = async (output, context) => {
|
|
5339
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5340
|
+
return de_BatchPutContactCommandError(output, context);
|
|
5341
|
+
}
|
|
5342
|
+
const contents = map({
|
|
5343
|
+
$metadata: deserializeMetadata(output),
|
|
5344
|
+
});
|
|
5345
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5346
|
+
const doc = take(data, {
|
|
5347
|
+
FailedRequestList: _json,
|
|
5348
|
+
SuccessfulRequestList: _json,
|
|
5349
|
+
});
|
|
5350
|
+
Object.assign(contents, doc);
|
|
5351
|
+
return contents;
|
|
5352
|
+
};
|
|
5353
|
+
const de_BatchPutContactCommandError = async (output, context) => {
|
|
5354
|
+
const parsedOutput = {
|
|
5355
|
+
...output,
|
|
5356
|
+
body: await parseErrorBody(output.body, context),
|
|
5357
|
+
};
|
|
5358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5359
|
+
switch (errorCode) {
|
|
5360
|
+
case "AccessDeniedException":
|
|
5361
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
5362
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5363
|
+
case "IdempotencyException":
|
|
5364
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
5365
|
+
throw await de_IdempotencyExceptionRes(parsedOutput, context);
|
|
5366
|
+
case "InternalServiceException":
|
|
5367
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5368
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5369
|
+
case "InvalidRequestException":
|
|
5370
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5371
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5372
|
+
case "LimitExceededException":
|
|
5373
|
+
case "com.amazonaws.connect#LimitExceededException":
|
|
5374
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5375
|
+
case "ResourceNotFoundException":
|
|
5376
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5377
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5378
|
+
default:
|
|
5379
|
+
const parsedBody = parsedOutput.body;
|
|
5380
|
+
return throwDefaultError({
|
|
5381
|
+
output,
|
|
5382
|
+
parsedBody,
|
|
5383
|
+
errorCode,
|
|
5384
|
+
});
|
|
5385
|
+
}
|
|
5386
|
+
};
|
|
5290
5387
|
export const de_ClaimPhoneNumberCommand = async (output, context) => {
|
|
5291
5388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5292
5389
|
return de_ClaimPhoneNumberCommandError(output, context);
|
|
@@ -5743,6 +5840,54 @@ const de_CreateParticipantCommandError = async (output, context) => {
|
|
|
5743
5840
|
});
|
|
5744
5841
|
}
|
|
5745
5842
|
};
|
|
5843
|
+
export const de_CreatePersistentContactAssociationCommand = async (output, context) => {
|
|
5844
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5845
|
+
return de_CreatePersistentContactAssociationCommandError(output, context);
|
|
5846
|
+
}
|
|
5847
|
+
const contents = map({
|
|
5848
|
+
$metadata: deserializeMetadata(output),
|
|
5849
|
+
});
|
|
5850
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5851
|
+
const doc = take(data, {
|
|
5852
|
+
ContinuedFromContactId: __expectString,
|
|
5853
|
+
});
|
|
5854
|
+
Object.assign(contents, doc);
|
|
5855
|
+
return contents;
|
|
5856
|
+
};
|
|
5857
|
+
const de_CreatePersistentContactAssociationCommandError = async (output, context) => {
|
|
5858
|
+
const parsedOutput = {
|
|
5859
|
+
...output,
|
|
5860
|
+
body: await parseErrorBody(output.body, context),
|
|
5861
|
+
};
|
|
5862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5863
|
+
switch (errorCode) {
|
|
5864
|
+
case "AccessDeniedException":
|
|
5865
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
5866
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5867
|
+
case "InternalServiceException":
|
|
5868
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5869
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5870
|
+
case "InvalidParameterException":
|
|
5871
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5872
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5873
|
+
case "InvalidRequestException":
|
|
5874
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
5875
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5876
|
+
case "ResourceNotFoundException":
|
|
5877
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5878
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5879
|
+
case "ThrottlingException":
|
|
5880
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5881
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5882
|
+
default:
|
|
5883
|
+
const parsedBody = parsedOutput.body;
|
|
5884
|
+
return throwDefaultError({
|
|
5885
|
+
output,
|
|
5886
|
+
parsedBody,
|
|
5887
|
+
errorCode,
|
|
5888
|
+
});
|
|
5889
|
+
}
|
|
5890
|
+
};
|
|
5746
5891
|
export const de_CreatePromptCommand = async (output, context) => {
|
|
5747
5892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5748
5893
|
return de_CreatePromptCommandError(output, context);
|
package/dist-types/Connect.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { AssociateRoutingProfileQueuesCommandInput, AssociateRoutingProfileQueue
|
|
|
12
12
|
import { AssociateSecurityKeyCommandInput, AssociateSecurityKeyCommandOutput } from "./commands/AssociateSecurityKeyCommand";
|
|
13
13
|
import { AssociateTrafficDistributionGroupUserCommandInput, AssociateTrafficDistributionGroupUserCommandOutput } from "./commands/AssociateTrafficDistributionGroupUserCommand";
|
|
14
14
|
import { BatchGetFlowAssociationCommandInput, BatchGetFlowAssociationCommandOutput } from "./commands/BatchGetFlowAssociationCommand";
|
|
15
|
+
import { BatchPutContactCommandInput, BatchPutContactCommandOutput } from "./commands/BatchPutContactCommand";
|
|
15
16
|
import { ClaimPhoneNumberCommandInput, ClaimPhoneNumberCommandOutput } from "./commands/ClaimPhoneNumberCommand";
|
|
16
17
|
import { CreateAgentStatusCommandInput, CreateAgentStatusCommandOutput } from "./commands/CreateAgentStatusCommand";
|
|
17
18
|
import { CreateContactFlowCommandInput, CreateContactFlowCommandOutput } from "./commands/CreateContactFlowCommand";
|
|
@@ -21,6 +22,7 @@ import { CreateHoursOfOperationCommandInput, CreateHoursOfOperationCommandOutput
|
|
|
21
22
|
import { CreateInstanceCommandInput, CreateInstanceCommandOutput } from "./commands/CreateInstanceCommand";
|
|
22
23
|
import { CreateIntegrationAssociationCommandInput, CreateIntegrationAssociationCommandOutput } from "./commands/CreateIntegrationAssociationCommand";
|
|
23
24
|
import { CreateParticipantCommandInput, CreateParticipantCommandOutput } from "./commands/CreateParticipantCommand";
|
|
25
|
+
import { CreatePersistentContactAssociationCommandInput, CreatePersistentContactAssociationCommandOutput } from "./commands/CreatePersistentContactAssociationCommand";
|
|
24
26
|
import { CreatePromptCommandInput, CreatePromptCommandOutput } from "./commands/CreatePromptCommand";
|
|
25
27
|
import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
|
|
26
28
|
import { CreateQuickConnectCommandInput, CreateQuickConnectCommandOutput } from "./commands/CreateQuickConnectCommand";
|
|
@@ -291,6 +293,12 @@ export interface Connect {
|
|
|
291
293
|
batchGetFlowAssociation(args: BatchGetFlowAssociationCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetFlowAssociationCommandOutput>;
|
|
292
294
|
batchGetFlowAssociation(args: BatchGetFlowAssociationCommandInput, cb: (err: any, data?: BatchGetFlowAssociationCommandOutput) => void): void;
|
|
293
295
|
batchGetFlowAssociation(args: BatchGetFlowAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetFlowAssociationCommandOutput) => void): void;
|
|
296
|
+
/**
|
|
297
|
+
* @see {@link BatchPutContactCommand}
|
|
298
|
+
*/
|
|
299
|
+
batchPutContact(args: BatchPutContactCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutContactCommandOutput>;
|
|
300
|
+
batchPutContact(args: BatchPutContactCommandInput, cb: (err: any, data?: BatchPutContactCommandOutput) => void): void;
|
|
301
|
+
batchPutContact(args: BatchPutContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutContactCommandOutput) => void): void;
|
|
294
302
|
/**
|
|
295
303
|
* @see {@link ClaimPhoneNumberCommand}
|
|
296
304
|
*/
|
|
@@ -345,6 +353,12 @@ export interface Connect {
|
|
|
345
353
|
createParticipant(args: CreateParticipantCommandInput, options?: __HttpHandlerOptions): Promise<CreateParticipantCommandOutput>;
|
|
346
354
|
createParticipant(args: CreateParticipantCommandInput, cb: (err: any, data?: CreateParticipantCommandOutput) => void): void;
|
|
347
355
|
createParticipant(args: CreateParticipantCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateParticipantCommandOutput) => void): void;
|
|
356
|
+
/**
|
|
357
|
+
* @see {@link CreatePersistentContactAssociationCommand}
|
|
358
|
+
*/
|
|
359
|
+
createPersistentContactAssociation(args: CreatePersistentContactAssociationCommandInput, options?: __HttpHandlerOptions): Promise<CreatePersistentContactAssociationCommandOutput>;
|
|
360
|
+
createPersistentContactAssociation(args: CreatePersistentContactAssociationCommandInput, cb: (err: any, data?: CreatePersistentContactAssociationCommandOutput) => void): void;
|
|
361
|
+
createPersistentContactAssociation(args: CreatePersistentContactAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePersistentContactAssociationCommandOutput) => void): void;
|
|
348
362
|
/**
|
|
349
363
|
* @see {@link CreatePromptCommand}
|
|
350
364
|
*/
|
|
@@ -21,6 +21,7 @@ import { AssociateRoutingProfileQueuesCommandInput, AssociateRoutingProfileQueue
|
|
|
21
21
|
import { AssociateSecurityKeyCommandInput, AssociateSecurityKeyCommandOutput } from "./commands/AssociateSecurityKeyCommand";
|
|
22
22
|
import { AssociateTrafficDistributionGroupUserCommandInput, AssociateTrafficDistributionGroupUserCommandOutput } from "./commands/AssociateTrafficDistributionGroupUserCommand";
|
|
23
23
|
import { BatchGetFlowAssociationCommandInput, BatchGetFlowAssociationCommandOutput } from "./commands/BatchGetFlowAssociationCommand";
|
|
24
|
+
import { BatchPutContactCommandInput, BatchPutContactCommandOutput } from "./commands/BatchPutContactCommand";
|
|
24
25
|
import { ClaimPhoneNumberCommandInput, ClaimPhoneNumberCommandOutput } from "./commands/ClaimPhoneNumberCommand";
|
|
25
26
|
import { CreateAgentStatusCommandInput, CreateAgentStatusCommandOutput } from "./commands/CreateAgentStatusCommand";
|
|
26
27
|
import { CreateContactFlowCommandInput, CreateContactFlowCommandOutput } from "./commands/CreateContactFlowCommand";
|
|
@@ -30,6 +31,7 @@ import { CreateHoursOfOperationCommandInput, CreateHoursOfOperationCommandOutput
|
|
|
30
31
|
import { CreateInstanceCommandInput, CreateInstanceCommandOutput } from "./commands/CreateInstanceCommand";
|
|
31
32
|
import { CreateIntegrationAssociationCommandInput, CreateIntegrationAssociationCommandOutput } from "./commands/CreateIntegrationAssociationCommand";
|
|
32
33
|
import { CreateParticipantCommandInput, CreateParticipantCommandOutput } from "./commands/CreateParticipantCommand";
|
|
34
|
+
import { CreatePersistentContactAssociationCommandInput, CreatePersistentContactAssociationCommandOutput } from "./commands/CreatePersistentContactAssociationCommand";
|
|
33
35
|
import { CreatePromptCommandInput, CreatePromptCommandOutput } from "./commands/CreatePromptCommand";
|
|
34
36
|
import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
|
|
35
37
|
import { CreateQuickConnectCommandInput, CreateQuickConnectCommandOutput } from "./commands/CreateQuickConnectCommand";
|
|
@@ -226,11 +228,11 @@ export { __Client };
|
|
|
226
228
|
/**
|
|
227
229
|
* @public
|
|
228
230
|
*/
|
|
229
|
-
export type ServiceInputTypes = ActivateEvaluationFormCommandInput | AssociateApprovedOriginCommandInput | AssociateBotCommandInput | AssociateDefaultVocabularyCommandInput | AssociateInstanceStorageConfigCommandInput | AssociateLambdaFunctionCommandInput | AssociateLexBotCommandInput | AssociatePhoneNumberContactFlowCommandInput | AssociateQueueQuickConnectsCommandInput | AssociateRoutingProfileQueuesCommandInput | AssociateSecurityKeyCommandInput | AssociateTrafficDistributionGroupUserCommandInput | BatchGetFlowAssociationCommandInput | ClaimPhoneNumberCommandInput | CreateAgentStatusCommandInput | CreateContactFlowCommandInput | CreateContactFlowModuleCommandInput | CreateEvaluationFormCommandInput | CreateHoursOfOperationCommandInput | CreateInstanceCommandInput | CreateIntegrationAssociationCommandInput | CreateParticipantCommandInput | CreatePromptCommandInput | CreateQueueCommandInput | CreateQuickConnectCommandInput | CreateRoutingProfileCommandInput | CreateRuleCommandInput | CreateSecurityProfileCommandInput | CreateTaskTemplateCommandInput | CreateTrafficDistributionGroupCommandInput | CreateUseCaseCommandInput | CreateUserCommandInput | CreateUserHierarchyGroupCommandInput | CreateViewCommandInput | CreateViewVersionCommandInput | CreateVocabularyCommandInput | DeactivateEvaluationFormCommandInput | DeleteContactEvaluationCommandInput | DeleteContactFlowCommandInput | DeleteContactFlowModuleCommandInput | DeleteEvaluationFormCommandInput | DeleteHoursOfOperationCommandInput | DeleteInstanceCommandInput | DeleteIntegrationAssociationCommandInput | DeletePromptCommandInput | DeleteQueueCommandInput | DeleteQuickConnectCommandInput | DeleteRoutingProfileCommandInput | DeleteRuleCommandInput | DeleteSecurityProfileCommandInput | DeleteTaskTemplateCommandInput | DeleteTrafficDistributionGroupCommandInput | DeleteUseCaseCommandInput | DeleteUserCommandInput | DeleteUserHierarchyGroupCommandInput | DeleteViewCommandInput | DeleteViewVersionCommandInput | DeleteVocabularyCommandInput | DescribeAgentStatusCommandInput | DescribeContactCommandInput | DescribeContactEvaluationCommandInput | DescribeContactFlowCommandInput | DescribeContactFlowModuleCommandInput | DescribeEvaluationFormCommandInput | DescribeHoursOfOperationCommandInput | DescribeInstanceAttributeCommandInput | DescribeInstanceCommandInput | DescribeInstanceStorageConfigCommandInput | DescribePhoneNumberCommandInput | DescribePromptCommandInput | DescribeQueueCommandInput | DescribeQuickConnectCommandInput | DescribeRoutingProfileCommandInput | DescribeRuleCommandInput | DescribeSecurityProfileCommandInput | DescribeTrafficDistributionGroupCommandInput | DescribeUserCommandInput | DescribeUserHierarchyGroupCommandInput | DescribeUserHierarchyStructureCommandInput | DescribeViewCommandInput | DescribeVocabularyCommandInput | DisassociateApprovedOriginCommandInput | DisassociateBotCommandInput | DisassociateInstanceStorageConfigCommandInput | DisassociateLambdaFunctionCommandInput | DisassociateLexBotCommandInput | DisassociatePhoneNumberContactFlowCommandInput | DisassociateQueueQuickConnectsCommandInput | DisassociateRoutingProfileQueuesCommandInput | DisassociateSecurityKeyCommandInput | DisassociateTrafficDistributionGroupUserCommandInput | DismissUserContactCommandInput | GetContactAttributesCommandInput | GetCurrentMetricDataCommandInput | GetCurrentUserDataCommandInput | GetFederationTokenCommandInput | GetMetricDataCommandInput | GetMetricDataV2CommandInput | GetPromptFileCommandInput | GetTaskTemplateCommandInput | GetTrafficDistributionCommandInput | ListAgentStatusesCommandInput | ListApprovedOriginsCommandInput | ListBotsCommandInput | ListContactEvaluationsCommandInput | ListContactFlowModulesCommandInput | ListContactFlowsCommandInput | ListContactReferencesCommandInput | ListDefaultVocabulariesCommandInput | ListEvaluationFormVersionsCommandInput | ListEvaluationFormsCommandInput | ListHoursOfOperationsCommandInput | ListInstanceAttributesCommandInput | ListInstanceStorageConfigsCommandInput | ListInstancesCommandInput | ListIntegrationAssociationsCommandInput | ListLambdaFunctionsCommandInput | ListLexBotsCommandInput | ListPhoneNumbersCommandInput | ListPhoneNumbersV2CommandInput | ListPromptsCommandInput | ListQueueQuickConnectsCommandInput | ListQueuesCommandInput | ListQuickConnectsCommandInput | ListRoutingProfileQueuesCommandInput | ListRoutingProfilesCommandInput | ListRulesCommandInput | ListSecurityKeysCommandInput | ListSecurityProfileApplicationsCommandInput | ListSecurityProfilePermissionsCommandInput | ListSecurityProfilesCommandInput | ListTagsForResourceCommandInput | ListTaskTemplatesCommandInput | ListTrafficDistributionGroupUsersCommandInput | ListTrafficDistributionGroupsCommandInput | ListUseCasesCommandInput | ListUserHierarchyGroupsCommandInput | ListUsersCommandInput | ListViewVersionsCommandInput | ListViewsCommandInput | MonitorContactCommandInput | PutUserStatusCommandInput | ReleasePhoneNumberCommandInput | ReplicateInstanceCommandInput | ResumeContactRecordingCommandInput | SearchAvailablePhoneNumbersCommandInput | SearchHoursOfOperationsCommandInput | SearchPromptsCommandInput | SearchQueuesCommandInput | SearchQuickConnectsCommandInput | SearchResourceTagsCommandInput | SearchRoutingProfilesCommandInput | SearchSecurityProfilesCommandInput | SearchUsersCommandInput | SearchVocabulariesCommandInput | StartChatContactCommandInput | StartContactEvaluationCommandInput | StartContactRecordingCommandInput | StartContactStreamingCommandInput | StartOutboundVoiceContactCommandInput | StartTaskContactCommandInput | StopContactCommandInput | StopContactRecordingCommandInput | StopContactStreamingCommandInput | SubmitContactEvaluationCommandInput | SuspendContactRecordingCommandInput | TagResourceCommandInput | TransferContactCommandInput | UntagResourceCommandInput | UpdateAgentStatusCommandInput | UpdateContactAttributesCommandInput | UpdateContactCommandInput | UpdateContactEvaluationCommandInput | UpdateContactFlowContentCommandInput | UpdateContactFlowMetadataCommandInput | UpdateContactFlowModuleContentCommandInput | UpdateContactFlowModuleMetadataCommandInput | UpdateContactFlowNameCommandInput | UpdateContactScheduleCommandInput | UpdateEvaluationFormCommandInput | UpdateHoursOfOperationCommandInput | UpdateInstanceAttributeCommandInput | UpdateInstanceStorageConfigCommandInput | UpdateParticipantRoleConfigCommandInput | UpdatePhoneNumberCommandInput | UpdatePhoneNumberMetadataCommandInput | UpdatePromptCommandInput | UpdateQueueHoursOfOperationCommandInput | UpdateQueueMaxContactsCommandInput | UpdateQueueNameCommandInput | UpdateQueueOutboundCallerConfigCommandInput | UpdateQueueStatusCommandInput | UpdateQuickConnectConfigCommandInput | UpdateQuickConnectNameCommandInput | UpdateRoutingProfileAgentAvailabilityTimerCommandInput | UpdateRoutingProfileConcurrencyCommandInput | UpdateRoutingProfileDefaultOutboundQueueCommandInput | UpdateRoutingProfileNameCommandInput | UpdateRoutingProfileQueuesCommandInput | UpdateRuleCommandInput | UpdateSecurityProfileCommandInput | UpdateTaskTemplateCommandInput | UpdateTrafficDistributionCommandInput | UpdateUserHierarchyCommandInput | UpdateUserHierarchyGroupNameCommandInput | UpdateUserHierarchyStructureCommandInput | UpdateUserIdentityInfoCommandInput | UpdateUserPhoneConfigCommandInput | UpdateUserRoutingProfileCommandInput | UpdateUserSecurityProfilesCommandInput | UpdateViewContentCommandInput | UpdateViewMetadataCommandInput;
|
|
231
|
+
export type ServiceInputTypes = ActivateEvaluationFormCommandInput | AssociateApprovedOriginCommandInput | AssociateBotCommandInput | AssociateDefaultVocabularyCommandInput | AssociateInstanceStorageConfigCommandInput | AssociateLambdaFunctionCommandInput | AssociateLexBotCommandInput | AssociatePhoneNumberContactFlowCommandInput | AssociateQueueQuickConnectsCommandInput | AssociateRoutingProfileQueuesCommandInput | AssociateSecurityKeyCommandInput | AssociateTrafficDistributionGroupUserCommandInput | BatchGetFlowAssociationCommandInput | BatchPutContactCommandInput | ClaimPhoneNumberCommandInput | CreateAgentStatusCommandInput | CreateContactFlowCommandInput | CreateContactFlowModuleCommandInput | CreateEvaluationFormCommandInput | CreateHoursOfOperationCommandInput | CreateInstanceCommandInput | CreateIntegrationAssociationCommandInput | CreateParticipantCommandInput | CreatePersistentContactAssociationCommandInput | CreatePromptCommandInput | CreateQueueCommandInput | CreateQuickConnectCommandInput | CreateRoutingProfileCommandInput | CreateRuleCommandInput | CreateSecurityProfileCommandInput | CreateTaskTemplateCommandInput | CreateTrafficDistributionGroupCommandInput | CreateUseCaseCommandInput | CreateUserCommandInput | CreateUserHierarchyGroupCommandInput | CreateViewCommandInput | CreateViewVersionCommandInput | CreateVocabularyCommandInput | DeactivateEvaluationFormCommandInput | DeleteContactEvaluationCommandInput | DeleteContactFlowCommandInput | DeleteContactFlowModuleCommandInput | DeleteEvaluationFormCommandInput | DeleteHoursOfOperationCommandInput | DeleteInstanceCommandInput | DeleteIntegrationAssociationCommandInput | DeletePromptCommandInput | DeleteQueueCommandInput | DeleteQuickConnectCommandInput | DeleteRoutingProfileCommandInput | DeleteRuleCommandInput | DeleteSecurityProfileCommandInput | DeleteTaskTemplateCommandInput | DeleteTrafficDistributionGroupCommandInput | DeleteUseCaseCommandInput | DeleteUserCommandInput | DeleteUserHierarchyGroupCommandInput | DeleteViewCommandInput | DeleteViewVersionCommandInput | DeleteVocabularyCommandInput | DescribeAgentStatusCommandInput | DescribeContactCommandInput | DescribeContactEvaluationCommandInput | DescribeContactFlowCommandInput | DescribeContactFlowModuleCommandInput | DescribeEvaluationFormCommandInput | DescribeHoursOfOperationCommandInput | DescribeInstanceAttributeCommandInput | DescribeInstanceCommandInput | DescribeInstanceStorageConfigCommandInput | DescribePhoneNumberCommandInput | DescribePromptCommandInput | DescribeQueueCommandInput | DescribeQuickConnectCommandInput | DescribeRoutingProfileCommandInput | DescribeRuleCommandInput | DescribeSecurityProfileCommandInput | DescribeTrafficDistributionGroupCommandInput | DescribeUserCommandInput | DescribeUserHierarchyGroupCommandInput | DescribeUserHierarchyStructureCommandInput | DescribeViewCommandInput | DescribeVocabularyCommandInput | DisassociateApprovedOriginCommandInput | DisassociateBotCommandInput | DisassociateInstanceStorageConfigCommandInput | DisassociateLambdaFunctionCommandInput | DisassociateLexBotCommandInput | DisassociatePhoneNumberContactFlowCommandInput | DisassociateQueueQuickConnectsCommandInput | DisassociateRoutingProfileQueuesCommandInput | DisassociateSecurityKeyCommandInput | DisassociateTrafficDistributionGroupUserCommandInput | DismissUserContactCommandInput | GetContactAttributesCommandInput | GetCurrentMetricDataCommandInput | GetCurrentUserDataCommandInput | GetFederationTokenCommandInput | GetMetricDataCommandInput | GetMetricDataV2CommandInput | GetPromptFileCommandInput | GetTaskTemplateCommandInput | GetTrafficDistributionCommandInput | ListAgentStatusesCommandInput | ListApprovedOriginsCommandInput | ListBotsCommandInput | ListContactEvaluationsCommandInput | ListContactFlowModulesCommandInput | ListContactFlowsCommandInput | ListContactReferencesCommandInput | ListDefaultVocabulariesCommandInput | ListEvaluationFormVersionsCommandInput | ListEvaluationFormsCommandInput | ListHoursOfOperationsCommandInput | ListInstanceAttributesCommandInput | ListInstanceStorageConfigsCommandInput | ListInstancesCommandInput | ListIntegrationAssociationsCommandInput | ListLambdaFunctionsCommandInput | ListLexBotsCommandInput | ListPhoneNumbersCommandInput | ListPhoneNumbersV2CommandInput | ListPromptsCommandInput | ListQueueQuickConnectsCommandInput | ListQueuesCommandInput | ListQuickConnectsCommandInput | ListRoutingProfileQueuesCommandInput | ListRoutingProfilesCommandInput | ListRulesCommandInput | ListSecurityKeysCommandInput | ListSecurityProfileApplicationsCommandInput | ListSecurityProfilePermissionsCommandInput | ListSecurityProfilesCommandInput | ListTagsForResourceCommandInput | ListTaskTemplatesCommandInput | ListTrafficDistributionGroupUsersCommandInput | ListTrafficDistributionGroupsCommandInput | ListUseCasesCommandInput | ListUserHierarchyGroupsCommandInput | ListUsersCommandInput | ListViewVersionsCommandInput | ListViewsCommandInput | MonitorContactCommandInput | PutUserStatusCommandInput | ReleasePhoneNumberCommandInput | ReplicateInstanceCommandInput | ResumeContactRecordingCommandInput | SearchAvailablePhoneNumbersCommandInput | SearchHoursOfOperationsCommandInput | SearchPromptsCommandInput | SearchQueuesCommandInput | SearchQuickConnectsCommandInput | SearchResourceTagsCommandInput | SearchRoutingProfilesCommandInput | SearchSecurityProfilesCommandInput | SearchUsersCommandInput | SearchVocabulariesCommandInput | StartChatContactCommandInput | StartContactEvaluationCommandInput | StartContactRecordingCommandInput | StartContactStreamingCommandInput | StartOutboundVoiceContactCommandInput | StartTaskContactCommandInput | StopContactCommandInput | StopContactRecordingCommandInput | StopContactStreamingCommandInput | SubmitContactEvaluationCommandInput | SuspendContactRecordingCommandInput | TagResourceCommandInput | TransferContactCommandInput | UntagResourceCommandInput | UpdateAgentStatusCommandInput | UpdateContactAttributesCommandInput | UpdateContactCommandInput | UpdateContactEvaluationCommandInput | UpdateContactFlowContentCommandInput | UpdateContactFlowMetadataCommandInput | UpdateContactFlowModuleContentCommandInput | UpdateContactFlowModuleMetadataCommandInput | UpdateContactFlowNameCommandInput | UpdateContactScheduleCommandInput | UpdateEvaluationFormCommandInput | UpdateHoursOfOperationCommandInput | UpdateInstanceAttributeCommandInput | UpdateInstanceStorageConfigCommandInput | UpdateParticipantRoleConfigCommandInput | UpdatePhoneNumberCommandInput | UpdatePhoneNumberMetadataCommandInput | UpdatePromptCommandInput | UpdateQueueHoursOfOperationCommandInput | UpdateQueueMaxContactsCommandInput | UpdateQueueNameCommandInput | UpdateQueueOutboundCallerConfigCommandInput | UpdateQueueStatusCommandInput | UpdateQuickConnectConfigCommandInput | UpdateQuickConnectNameCommandInput | UpdateRoutingProfileAgentAvailabilityTimerCommandInput | UpdateRoutingProfileConcurrencyCommandInput | UpdateRoutingProfileDefaultOutboundQueueCommandInput | UpdateRoutingProfileNameCommandInput | UpdateRoutingProfileQueuesCommandInput | UpdateRuleCommandInput | UpdateSecurityProfileCommandInput | UpdateTaskTemplateCommandInput | UpdateTrafficDistributionCommandInput | UpdateUserHierarchyCommandInput | UpdateUserHierarchyGroupNameCommandInput | UpdateUserHierarchyStructureCommandInput | UpdateUserIdentityInfoCommandInput | UpdateUserPhoneConfigCommandInput | UpdateUserRoutingProfileCommandInput | UpdateUserSecurityProfilesCommandInput | UpdateViewContentCommandInput | UpdateViewMetadataCommandInput;
|
|
230
232
|
/**
|
|
231
233
|
* @public
|
|
232
234
|
*/
|
|
233
|
-
export type ServiceOutputTypes = ActivateEvaluationFormCommandOutput | AssociateApprovedOriginCommandOutput | AssociateBotCommandOutput | AssociateDefaultVocabularyCommandOutput | AssociateInstanceStorageConfigCommandOutput | AssociateLambdaFunctionCommandOutput | AssociateLexBotCommandOutput | AssociatePhoneNumberContactFlowCommandOutput | AssociateQueueQuickConnectsCommandOutput | AssociateRoutingProfileQueuesCommandOutput | AssociateSecurityKeyCommandOutput | AssociateTrafficDistributionGroupUserCommandOutput | BatchGetFlowAssociationCommandOutput | ClaimPhoneNumberCommandOutput | CreateAgentStatusCommandOutput | CreateContactFlowCommandOutput | CreateContactFlowModuleCommandOutput | CreateEvaluationFormCommandOutput | CreateHoursOfOperationCommandOutput | CreateInstanceCommandOutput | CreateIntegrationAssociationCommandOutput | CreateParticipantCommandOutput | CreatePromptCommandOutput | CreateQueueCommandOutput | CreateQuickConnectCommandOutput | CreateRoutingProfileCommandOutput | CreateRuleCommandOutput | CreateSecurityProfileCommandOutput | CreateTaskTemplateCommandOutput | CreateTrafficDistributionGroupCommandOutput | CreateUseCaseCommandOutput | CreateUserCommandOutput | CreateUserHierarchyGroupCommandOutput | CreateViewCommandOutput | CreateViewVersionCommandOutput | CreateVocabularyCommandOutput | DeactivateEvaluationFormCommandOutput | DeleteContactEvaluationCommandOutput | DeleteContactFlowCommandOutput | DeleteContactFlowModuleCommandOutput | DeleteEvaluationFormCommandOutput | DeleteHoursOfOperationCommandOutput | DeleteInstanceCommandOutput | DeleteIntegrationAssociationCommandOutput | DeletePromptCommandOutput | DeleteQueueCommandOutput | DeleteQuickConnectCommandOutput | DeleteRoutingProfileCommandOutput | DeleteRuleCommandOutput | DeleteSecurityProfileCommandOutput | DeleteTaskTemplateCommandOutput | DeleteTrafficDistributionGroupCommandOutput | DeleteUseCaseCommandOutput | DeleteUserCommandOutput | DeleteUserHierarchyGroupCommandOutput | DeleteViewCommandOutput | DeleteViewVersionCommandOutput | DeleteVocabularyCommandOutput | DescribeAgentStatusCommandOutput | DescribeContactCommandOutput | DescribeContactEvaluationCommandOutput | DescribeContactFlowCommandOutput | DescribeContactFlowModuleCommandOutput | DescribeEvaluationFormCommandOutput | DescribeHoursOfOperationCommandOutput | DescribeInstanceAttributeCommandOutput | DescribeInstanceCommandOutput | DescribeInstanceStorageConfigCommandOutput | DescribePhoneNumberCommandOutput | DescribePromptCommandOutput | DescribeQueueCommandOutput | DescribeQuickConnectCommandOutput | DescribeRoutingProfileCommandOutput | DescribeRuleCommandOutput | DescribeSecurityProfileCommandOutput | DescribeTrafficDistributionGroupCommandOutput | DescribeUserCommandOutput | DescribeUserHierarchyGroupCommandOutput | DescribeUserHierarchyStructureCommandOutput | DescribeViewCommandOutput | DescribeVocabularyCommandOutput | DisassociateApprovedOriginCommandOutput | DisassociateBotCommandOutput | DisassociateInstanceStorageConfigCommandOutput | DisassociateLambdaFunctionCommandOutput | DisassociateLexBotCommandOutput | DisassociatePhoneNumberContactFlowCommandOutput | DisassociateQueueQuickConnectsCommandOutput | DisassociateRoutingProfileQueuesCommandOutput | DisassociateSecurityKeyCommandOutput | DisassociateTrafficDistributionGroupUserCommandOutput | DismissUserContactCommandOutput | GetContactAttributesCommandOutput | GetCurrentMetricDataCommandOutput | GetCurrentUserDataCommandOutput | GetFederationTokenCommandOutput | GetMetricDataCommandOutput | GetMetricDataV2CommandOutput | GetPromptFileCommandOutput | GetTaskTemplateCommandOutput | GetTrafficDistributionCommandOutput | ListAgentStatusesCommandOutput | ListApprovedOriginsCommandOutput | ListBotsCommandOutput | ListContactEvaluationsCommandOutput | ListContactFlowModulesCommandOutput | ListContactFlowsCommandOutput | ListContactReferencesCommandOutput | ListDefaultVocabulariesCommandOutput | ListEvaluationFormVersionsCommandOutput | ListEvaluationFormsCommandOutput | ListHoursOfOperationsCommandOutput | ListInstanceAttributesCommandOutput | ListInstanceStorageConfigsCommandOutput | ListInstancesCommandOutput | ListIntegrationAssociationsCommandOutput | ListLambdaFunctionsCommandOutput | ListLexBotsCommandOutput | ListPhoneNumbersCommandOutput | ListPhoneNumbersV2CommandOutput | ListPromptsCommandOutput | ListQueueQuickConnectsCommandOutput | ListQueuesCommandOutput | ListQuickConnectsCommandOutput | ListRoutingProfileQueuesCommandOutput | ListRoutingProfilesCommandOutput | ListRulesCommandOutput | ListSecurityKeysCommandOutput | ListSecurityProfileApplicationsCommandOutput | ListSecurityProfilePermissionsCommandOutput | ListSecurityProfilesCommandOutput | ListTagsForResourceCommandOutput | ListTaskTemplatesCommandOutput | ListTrafficDistributionGroupUsersCommandOutput | ListTrafficDistributionGroupsCommandOutput | ListUseCasesCommandOutput | ListUserHierarchyGroupsCommandOutput | ListUsersCommandOutput | ListViewVersionsCommandOutput | ListViewsCommandOutput | MonitorContactCommandOutput | PutUserStatusCommandOutput | ReleasePhoneNumberCommandOutput | ReplicateInstanceCommandOutput | ResumeContactRecordingCommandOutput | SearchAvailablePhoneNumbersCommandOutput | SearchHoursOfOperationsCommandOutput | SearchPromptsCommandOutput | SearchQueuesCommandOutput | SearchQuickConnectsCommandOutput | SearchResourceTagsCommandOutput | SearchRoutingProfilesCommandOutput | SearchSecurityProfilesCommandOutput | SearchUsersCommandOutput | SearchVocabulariesCommandOutput | StartChatContactCommandOutput | StartContactEvaluationCommandOutput | StartContactRecordingCommandOutput | StartContactStreamingCommandOutput | StartOutboundVoiceContactCommandOutput | StartTaskContactCommandOutput | StopContactCommandOutput | StopContactRecordingCommandOutput | StopContactStreamingCommandOutput | SubmitContactEvaluationCommandOutput | SuspendContactRecordingCommandOutput | TagResourceCommandOutput | TransferContactCommandOutput | UntagResourceCommandOutput | UpdateAgentStatusCommandOutput | UpdateContactAttributesCommandOutput | UpdateContactCommandOutput | UpdateContactEvaluationCommandOutput | UpdateContactFlowContentCommandOutput | UpdateContactFlowMetadataCommandOutput | UpdateContactFlowModuleContentCommandOutput | UpdateContactFlowModuleMetadataCommandOutput | UpdateContactFlowNameCommandOutput | UpdateContactScheduleCommandOutput | UpdateEvaluationFormCommandOutput | UpdateHoursOfOperationCommandOutput | UpdateInstanceAttributeCommandOutput | UpdateInstanceStorageConfigCommandOutput | UpdateParticipantRoleConfigCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePhoneNumberMetadataCommandOutput | UpdatePromptCommandOutput | UpdateQueueHoursOfOperationCommandOutput | UpdateQueueMaxContactsCommandOutput | UpdateQueueNameCommandOutput | UpdateQueueOutboundCallerConfigCommandOutput | UpdateQueueStatusCommandOutput | UpdateQuickConnectConfigCommandOutput | UpdateQuickConnectNameCommandOutput | UpdateRoutingProfileAgentAvailabilityTimerCommandOutput | UpdateRoutingProfileConcurrencyCommandOutput | UpdateRoutingProfileDefaultOutboundQueueCommandOutput | UpdateRoutingProfileNameCommandOutput | UpdateRoutingProfileQueuesCommandOutput | UpdateRuleCommandOutput | UpdateSecurityProfileCommandOutput | UpdateTaskTemplateCommandOutput | UpdateTrafficDistributionCommandOutput | UpdateUserHierarchyCommandOutput | UpdateUserHierarchyGroupNameCommandOutput | UpdateUserHierarchyStructureCommandOutput | UpdateUserIdentityInfoCommandOutput | UpdateUserPhoneConfigCommandOutput | UpdateUserRoutingProfileCommandOutput | UpdateUserSecurityProfilesCommandOutput | UpdateViewContentCommandOutput | UpdateViewMetadataCommandOutput;
|
|
235
|
+
export type ServiceOutputTypes = ActivateEvaluationFormCommandOutput | AssociateApprovedOriginCommandOutput | AssociateBotCommandOutput | AssociateDefaultVocabularyCommandOutput | AssociateInstanceStorageConfigCommandOutput | AssociateLambdaFunctionCommandOutput | AssociateLexBotCommandOutput | AssociatePhoneNumberContactFlowCommandOutput | AssociateQueueQuickConnectsCommandOutput | AssociateRoutingProfileQueuesCommandOutput | AssociateSecurityKeyCommandOutput | AssociateTrafficDistributionGroupUserCommandOutput | BatchGetFlowAssociationCommandOutput | BatchPutContactCommandOutput | ClaimPhoneNumberCommandOutput | CreateAgentStatusCommandOutput | CreateContactFlowCommandOutput | CreateContactFlowModuleCommandOutput | CreateEvaluationFormCommandOutput | CreateHoursOfOperationCommandOutput | CreateInstanceCommandOutput | CreateIntegrationAssociationCommandOutput | CreateParticipantCommandOutput | CreatePersistentContactAssociationCommandOutput | CreatePromptCommandOutput | CreateQueueCommandOutput | CreateQuickConnectCommandOutput | CreateRoutingProfileCommandOutput | CreateRuleCommandOutput | CreateSecurityProfileCommandOutput | CreateTaskTemplateCommandOutput | CreateTrafficDistributionGroupCommandOutput | CreateUseCaseCommandOutput | CreateUserCommandOutput | CreateUserHierarchyGroupCommandOutput | CreateViewCommandOutput | CreateViewVersionCommandOutput | CreateVocabularyCommandOutput | DeactivateEvaluationFormCommandOutput | DeleteContactEvaluationCommandOutput | DeleteContactFlowCommandOutput | DeleteContactFlowModuleCommandOutput | DeleteEvaluationFormCommandOutput | DeleteHoursOfOperationCommandOutput | DeleteInstanceCommandOutput | DeleteIntegrationAssociationCommandOutput | DeletePromptCommandOutput | DeleteQueueCommandOutput | DeleteQuickConnectCommandOutput | DeleteRoutingProfileCommandOutput | DeleteRuleCommandOutput | DeleteSecurityProfileCommandOutput | DeleteTaskTemplateCommandOutput | DeleteTrafficDistributionGroupCommandOutput | DeleteUseCaseCommandOutput | DeleteUserCommandOutput | DeleteUserHierarchyGroupCommandOutput | DeleteViewCommandOutput | DeleteViewVersionCommandOutput | DeleteVocabularyCommandOutput | DescribeAgentStatusCommandOutput | DescribeContactCommandOutput | DescribeContactEvaluationCommandOutput | DescribeContactFlowCommandOutput | DescribeContactFlowModuleCommandOutput | DescribeEvaluationFormCommandOutput | DescribeHoursOfOperationCommandOutput | DescribeInstanceAttributeCommandOutput | DescribeInstanceCommandOutput | DescribeInstanceStorageConfigCommandOutput | DescribePhoneNumberCommandOutput | DescribePromptCommandOutput | DescribeQueueCommandOutput | DescribeQuickConnectCommandOutput | DescribeRoutingProfileCommandOutput | DescribeRuleCommandOutput | DescribeSecurityProfileCommandOutput | DescribeTrafficDistributionGroupCommandOutput | DescribeUserCommandOutput | DescribeUserHierarchyGroupCommandOutput | DescribeUserHierarchyStructureCommandOutput | DescribeViewCommandOutput | DescribeVocabularyCommandOutput | DisassociateApprovedOriginCommandOutput | DisassociateBotCommandOutput | DisassociateInstanceStorageConfigCommandOutput | DisassociateLambdaFunctionCommandOutput | DisassociateLexBotCommandOutput | DisassociatePhoneNumberContactFlowCommandOutput | DisassociateQueueQuickConnectsCommandOutput | DisassociateRoutingProfileQueuesCommandOutput | DisassociateSecurityKeyCommandOutput | DisassociateTrafficDistributionGroupUserCommandOutput | DismissUserContactCommandOutput | GetContactAttributesCommandOutput | GetCurrentMetricDataCommandOutput | GetCurrentUserDataCommandOutput | GetFederationTokenCommandOutput | GetMetricDataCommandOutput | GetMetricDataV2CommandOutput | GetPromptFileCommandOutput | GetTaskTemplateCommandOutput | GetTrafficDistributionCommandOutput | ListAgentStatusesCommandOutput | ListApprovedOriginsCommandOutput | ListBotsCommandOutput | ListContactEvaluationsCommandOutput | ListContactFlowModulesCommandOutput | ListContactFlowsCommandOutput | ListContactReferencesCommandOutput | ListDefaultVocabulariesCommandOutput | ListEvaluationFormVersionsCommandOutput | ListEvaluationFormsCommandOutput | ListHoursOfOperationsCommandOutput | ListInstanceAttributesCommandOutput | ListInstanceStorageConfigsCommandOutput | ListInstancesCommandOutput | ListIntegrationAssociationsCommandOutput | ListLambdaFunctionsCommandOutput | ListLexBotsCommandOutput | ListPhoneNumbersCommandOutput | ListPhoneNumbersV2CommandOutput | ListPromptsCommandOutput | ListQueueQuickConnectsCommandOutput | ListQueuesCommandOutput | ListQuickConnectsCommandOutput | ListRoutingProfileQueuesCommandOutput | ListRoutingProfilesCommandOutput | ListRulesCommandOutput | ListSecurityKeysCommandOutput | ListSecurityProfileApplicationsCommandOutput | ListSecurityProfilePermissionsCommandOutput | ListSecurityProfilesCommandOutput | ListTagsForResourceCommandOutput | ListTaskTemplatesCommandOutput | ListTrafficDistributionGroupUsersCommandOutput | ListTrafficDistributionGroupsCommandOutput | ListUseCasesCommandOutput | ListUserHierarchyGroupsCommandOutput | ListUsersCommandOutput | ListViewVersionsCommandOutput | ListViewsCommandOutput | MonitorContactCommandOutput | PutUserStatusCommandOutput | ReleasePhoneNumberCommandOutput | ReplicateInstanceCommandOutput | ResumeContactRecordingCommandOutput | SearchAvailablePhoneNumbersCommandOutput | SearchHoursOfOperationsCommandOutput | SearchPromptsCommandOutput | SearchQueuesCommandOutput | SearchQuickConnectsCommandOutput | SearchResourceTagsCommandOutput | SearchRoutingProfilesCommandOutput | SearchSecurityProfilesCommandOutput | SearchUsersCommandOutput | SearchVocabulariesCommandOutput | StartChatContactCommandOutput | StartContactEvaluationCommandOutput | StartContactRecordingCommandOutput | StartContactStreamingCommandOutput | StartOutboundVoiceContactCommandOutput | StartTaskContactCommandOutput | StopContactCommandOutput | StopContactRecordingCommandOutput | StopContactStreamingCommandOutput | SubmitContactEvaluationCommandOutput | SuspendContactRecordingCommandOutput | TagResourceCommandOutput | TransferContactCommandOutput | UntagResourceCommandOutput | UpdateAgentStatusCommandOutput | UpdateContactAttributesCommandOutput | UpdateContactCommandOutput | UpdateContactEvaluationCommandOutput | UpdateContactFlowContentCommandOutput | UpdateContactFlowMetadataCommandOutput | UpdateContactFlowModuleContentCommandOutput | UpdateContactFlowModuleMetadataCommandOutput | UpdateContactFlowNameCommandOutput | UpdateContactScheduleCommandOutput | UpdateEvaluationFormCommandOutput | UpdateHoursOfOperationCommandOutput | UpdateInstanceAttributeCommandOutput | UpdateInstanceStorageConfigCommandOutput | UpdateParticipantRoleConfigCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePhoneNumberMetadataCommandOutput | UpdatePromptCommandOutput | UpdateQueueHoursOfOperationCommandOutput | UpdateQueueMaxContactsCommandOutput | UpdateQueueNameCommandOutput | UpdateQueueOutboundCallerConfigCommandOutput | UpdateQueueStatusCommandOutput | UpdateQuickConnectConfigCommandOutput | UpdateQuickConnectNameCommandOutput | UpdateRoutingProfileAgentAvailabilityTimerCommandOutput | UpdateRoutingProfileConcurrencyCommandOutput | UpdateRoutingProfileDefaultOutboundQueueCommandOutput | UpdateRoutingProfileNameCommandOutput | UpdateRoutingProfileQueuesCommandOutput | UpdateRuleCommandOutput | UpdateSecurityProfileCommandOutput | UpdateTaskTemplateCommandOutput | UpdateTrafficDistributionCommandOutput | UpdateUserHierarchyCommandOutput | UpdateUserHierarchyGroupNameCommandOutput | UpdateUserHierarchyStructureCommandOutput | UpdateUserIdentityInfoCommandOutput | UpdateUserPhoneConfigCommandOutput | UpdateUserRoutingProfileCommandOutput | UpdateUserSecurityProfilesCommandOutput | UpdateViewContentCommandOutput | UpdateViewMetadataCommandOutput;
|
|
234
236
|
/**
|
|
235
237
|
* @public
|
|
236
238
|
*/
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
|
|
5
|
+
import { BatchPutContactRequest, BatchPutContactResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchPutContactCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchPutContactCommandInput extends BatchPutContactRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchPutContactCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchPutContactCommandOutput extends BatchPutContactResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <note>
|
|
27
|
+
* <p>Only the Amazon Connect outbound campaigns service principal is allowed to assume a
|
|
28
|
+
* role in your account and call this API.</p>
|
|
29
|
+
* </note>
|
|
30
|
+
* <p>Allows you to create a batch of contacts in Amazon Connect. The outbound campaigns
|
|
31
|
+
* capability ingests dial requests via the <a href="https://docs.aws.amazon.com/connect-outbound/latest/APIReference/API_PutDialRequestBatch.html">PutDialRequestBatch</a>
|
|
32
|
+
* API. It then uses BatchPutContact to create contacts corresponding to those
|
|
33
|
+
* dial requests. If agents are available, the dial requests are dialed out, which results in a
|
|
34
|
+
* voice call. The resulting voice call uses the same contactId that was created by BatchPutContact.
|
|
35
|
+
* </p>
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { ConnectClient, BatchPutContactCommand } from "@aws-sdk/client-connect"; // ES Modules import
|
|
40
|
+
* // const { ConnectClient, BatchPutContactCommand } = require("@aws-sdk/client-connect"); // CommonJS import
|
|
41
|
+
* const client = new ConnectClient(config);
|
|
42
|
+
* const input = { // BatchPutContactRequest
|
|
43
|
+
* ClientToken: "STRING_VALUE",
|
|
44
|
+
* InstanceId: "STRING_VALUE", // required
|
|
45
|
+
* ContactDataRequestList: [ // ContactDataRequestList // required
|
|
46
|
+
* { // ContactDataRequest
|
|
47
|
+
* SystemEndpoint: { // Endpoint
|
|
48
|
+
* Type: "TELEPHONE_NUMBER" || "VOIP" || "CONTACT_FLOW",
|
|
49
|
+
* Address: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* CustomerEndpoint: {
|
|
52
|
+
* Type: "TELEPHONE_NUMBER" || "VOIP" || "CONTACT_FLOW",
|
|
53
|
+
* Address: "STRING_VALUE",
|
|
54
|
+
* },
|
|
55
|
+
* RequestIdentifier: "STRING_VALUE",
|
|
56
|
+
* QueueId: "STRING_VALUE",
|
|
57
|
+
* Attributes: { // Attributes
|
|
58
|
+
* "<keys>": "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* Campaign: { // Campaign
|
|
61
|
+
* CampaignId: "STRING_VALUE",
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* };
|
|
66
|
+
* const command = new BatchPutContactCommand(input);
|
|
67
|
+
* const response = await client.send(command);
|
|
68
|
+
* // { // BatchPutContactResponse
|
|
69
|
+
* // SuccessfulRequestList: [ // SuccessfulRequestList
|
|
70
|
+
* // { // SuccessfulRequest
|
|
71
|
+
* // RequestIdentifier: "STRING_VALUE",
|
|
72
|
+
* // ContactId: "STRING_VALUE",
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // FailedRequestList: [ // FailedRequestList
|
|
76
|
+
* // { // FailedRequest
|
|
77
|
+
* // RequestIdentifier: "STRING_VALUE",
|
|
78
|
+
* // FailureReasonCode: "INVALID_ATTRIBUTE_KEY" || "INVALID_CUSTOMER_ENDPOINT" || "INVALID_SYSTEM_ENDPOINT" || "INVALID_QUEUE" || "MISSING_CAMPAIGN" || "MISSING_CUSTOMER_ENDPOINT" || "MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT" || "REQUEST_THROTTLED" || "IDEMPOTENCY_EXCEPTION" || "INTERNAL_ERROR",
|
|
79
|
+
* // FailureReasonMessage: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // ],
|
|
82
|
+
* // };
|
|
83
|
+
*
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* @param BatchPutContactCommandInput - {@link BatchPutContactCommandInput}
|
|
87
|
+
* @returns {@link BatchPutContactCommandOutput}
|
|
88
|
+
* @see {@link BatchPutContactCommandInput} for command's `input` shape.
|
|
89
|
+
* @see {@link BatchPutContactCommandOutput} for command's `response` shape.
|
|
90
|
+
* @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
93
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link IdempotencyException} (client fault)
|
|
96
|
+
* <p>An entity with the same name already exists.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
99
|
+
* <p>Request processing failed because of an error or failure with the service.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
102
|
+
* <p>The request is not valid.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
105
|
+
* <p>The allowed limit for the resource has been exceeded.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
108
|
+
* <p>The specified resource was not found.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ConnectServiceException}
|
|
111
|
+
* <p>Base exception class for all service exceptions from Connect service.</p>
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
export declare class BatchPutContactCommand extends $Command<BatchPutContactCommandInput, BatchPutContactCommandOutput, ConnectClientResolvedConfig> {
|
|
115
|
+
readonly input: BatchPutContactCommandInput;
|
|
116
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
constructor(input: BatchPutContactCommandInput);
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchPutContactCommandInput, BatchPutContactCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
private serialize;
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
private deserialize;
|
|
133
|
+
}
|