@aws-sdk/client-connect 3.431.0 → 3.433.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 +11 -3
- package/dist-cjs/Connect.js +2 -0
- package/dist-cjs/commands/UpdatePhoneNumberMetadataCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/protocols/Aws_restJson1.js +80 -6
- package/dist-es/Connect.js +2 -0
- package/dist-es/commands/UpdatePhoneNumberMetadataCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +72 -0
- package/dist-types/Connect.d.ts +10 -3
- package/dist-types/ConnectClient.d.ts +6 -5
- package/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserCommand.d.ts +6 -0
- package/dist-types/commands/GetFederationTokenCommand.d.ts +7 -1
- package/dist-types/commands/GetMetricDataCommand.d.ts +9 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +1 -1
- package/dist-types/commands/StartTaskContactCommand.d.ts +51 -1
- package/dist-types/commands/UpdatePhoneNumberMetadataCommand.d.ts +100 -0
- package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +23 -29
- package/dist-types/models/models_1.d.ts +36 -20
- package/dist-types/models/models_2.d.ts +28 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Connect.d.ts +17 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdatePhoneNumberMetadataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +3 -3
- package/dist-types/ts3.4/models/models_2.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +32 -32
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@ manage a customer contact center and provide reliable customer engagement at any
|
|
|
12
12
|
contact routing. You can also resolve customer issues more efficiently by getting customers in
|
|
13
13
|
touch with the appropriate agents.</p>
|
|
14
14
|
<p>There are limits to the number of Amazon Connect resources that you can create. There
|
|
15
|
-
are also limits to the number of requests that you can make per second. For more information,
|
|
16
|
-
<a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service
|
|
17
|
-
Guide</i>.</p>
|
|
15
|
+
are also limits to the number of requests that you can make per second. For more information,
|
|
16
|
+
seeP98941055 <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service
|
|
17
|
+
Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
|
|
18
18
|
<p>You can connect programmatically to an Amazon Web Services service by using an endpoint. For
|
|
19
19
|
a list of Amazon Connect endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/connect_region.html">Amazon Connect Endpoints</a>.</p>
|
|
20
20
|
|
|
@@ -1684,6 +1684,14 @@ UpdatePhoneNumber
|
|
|
1684
1684
|
|
|
1685
1685
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/updatephonenumbercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updatephonenumbercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updatephonenumbercommandoutput.html)
|
|
1686
1686
|
|
|
1687
|
+
</details>
|
|
1688
|
+
<details>
|
|
1689
|
+
<summary>
|
|
1690
|
+
UpdatePhoneNumberMetadata
|
|
1691
|
+
</summary>
|
|
1692
|
+
|
|
1693
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/updatephonenumbermetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updatephonenumbermetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updatephonenumbermetadatacommandoutput.html)
|
|
1694
|
+
|
|
1687
1695
|
</details>
|
|
1688
1696
|
<details>
|
|
1689
1697
|
<summary>
|
package/dist-cjs/Connect.js
CHANGED
|
@@ -186,6 +186,7 @@ const UpdateInstanceAttributeCommand_1 = require("./commands/UpdateInstanceAttri
|
|
|
186
186
|
const UpdateInstanceStorageConfigCommand_1 = require("./commands/UpdateInstanceStorageConfigCommand");
|
|
187
187
|
const UpdateParticipantRoleConfigCommand_1 = require("./commands/UpdateParticipantRoleConfigCommand");
|
|
188
188
|
const UpdatePhoneNumberCommand_1 = require("./commands/UpdatePhoneNumberCommand");
|
|
189
|
+
const UpdatePhoneNumberMetadataCommand_1 = require("./commands/UpdatePhoneNumberMetadataCommand");
|
|
189
190
|
const UpdatePromptCommand_1 = require("./commands/UpdatePromptCommand");
|
|
190
191
|
const UpdateQueueHoursOfOperationCommand_1 = require("./commands/UpdateQueueHoursOfOperationCommand");
|
|
191
192
|
const UpdateQueueMaxContactsCommand_1 = require("./commands/UpdateQueueMaxContactsCommand");
|
|
@@ -398,6 +399,7 @@ const commands = {
|
|
|
398
399
|
UpdateInstanceStorageConfigCommand: UpdateInstanceStorageConfigCommand_1.UpdateInstanceStorageConfigCommand,
|
|
399
400
|
UpdateParticipantRoleConfigCommand: UpdateParticipantRoleConfigCommand_1.UpdateParticipantRoleConfigCommand,
|
|
400
401
|
UpdatePhoneNumberCommand: UpdatePhoneNumberCommand_1.UpdatePhoneNumberCommand,
|
|
402
|
+
UpdatePhoneNumberMetadataCommand: UpdatePhoneNumberMetadataCommand_1.UpdatePhoneNumberMetadataCommand,
|
|
401
403
|
UpdatePromptCommand: UpdatePromptCommand_1.UpdatePromptCommand,
|
|
402
404
|
UpdateQueueHoursOfOperationCommand: UpdateQueueHoursOfOperationCommand_1.UpdateQueueHoursOfOperationCommand,
|
|
403
405
|
UpdateQueueMaxContactsCommand: UpdateQueueMaxContactsCommand_1.UpdateQueueMaxContactsCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePhoneNumberMetadataCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class UpdatePhoneNumberMetadataCommand extends smithy_client_1.Command {
|
|
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
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePhoneNumberMetadataCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "ConnectClient";
|
|
29
|
+
const commandName = "UpdatePhoneNumberMetadataCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonConnectService",
|
|
38
|
+
operation: "UpdatePhoneNumberMetadata",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_UpdatePhoneNumberMetadataCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_UpdatePhoneNumberMetadataCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.UpdatePhoneNumberMetadataCommand = UpdatePhoneNumberMetadataCommand;
|
|
@@ -185,6 +185,7 @@ tslib_1.__exportStar(require("./UpdateInstanceAttributeCommand"), exports);
|
|
|
185
185
|
tslib_1.__exportStar(require("./UpdateInstanceStorageConfigCommand"), exports);
|
|
186
186
|
tslib_1.__exportStar(require("./UpdateParticipantRoleConfigCommand"), exports);
|
|
187
187
|
tslib_1.__exportStar(require("./UpdatePhoneNumberCommand"), exports);
|
|
188
|
+
tslib_1.__exportStar(require("./UpdatePhoneNumberMetadataCommand"), exports);
|
|
188
189
|
tslib_1.__exportStar(require("./UpdatePromptCommand"), exports);
|
|
189
190
|
tslib_1.__exportStar(require("./UpdateQueueHoursOfOperationCommand"), exports);
|
|
190
191
|
tslib_1.__exportStar(require("./UpdateQueueMaxContactsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "isSet",
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://connect.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://connect-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://connect.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://connect.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteRoutingProfileCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeleteQueueCommand = exports.se_DeletePromptCommand = exports.se_DeleteIntegrationAssociationCommand = exports.se_DeleteInstanceCommand = exports.se_DeleteHoursOfOperationCommand = exports.se_DeleteEvaluationFormCommand = exports.se_DeleteContactFlowModuleCommand = exports.se_DeleteContactFlowCommand = exports.se_DeleteContactEvaluationCommand = exports.se_DeactivateEvaluationFormCommand = exports.se_CreateVocabularyCommand = exports.se_CreateViewVersionCommand = exports.se_CreateViewCommand = exports.se_CreateUserHierarchyGroupCommand = exports.se_CreateUserCommand = exports.se_CreateUseCaseCommand = exports.se_CreateTrafficDistributionGroupCommand = exports.se_CreateTaskTemplateCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateRuleCommand = exports.se_CreateRoutingProfileCommand = exports.se_CreateQuickConnectCommand = exports.se_CreateQueueCommand = exports.se_CreatePromptCommand = exports.se_CreateParticipantCommand = exports.se_CreateIntegrationAssociationCommand = exports.se_CreateInstanceCommand = exports.se_CreateHoursOfOperationCommand = exports.se_CreateEvaluationFormCommand = exports.se_CreateContactFlowModuleCommand = exports.se_CreateContactFlowCommand = exports.se_CreateAgentStatusCommand = exports.se_ClaimPhoneNumberCommand = exports.se_AssociateTrafficDistributionGroupUserCommand = exports.se_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_ActivateEvaluationFormCommand = void 0;
|
|
4
4
|
exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetPromptFileCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = exports.se_DismissUserContactCommand = exports.se_DisassociateTrafficDistributionGroupUserCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DescribeVocabularyCommand = exports.se_DescribeViewCommand = exports.se_DescribeUserHierarchyStructureCommand = exports.se_DescribeUserHierarchyGroupCommand = exports.se_DescribeUserCommand = exports.se_DescribeTrafficDistributionGroupCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeRuleCommand = exports.se_DescribeRoutingProfileCommand = exports.se_DescribeQuickConnectCommand = exports.se_DescribeQueueCommand = exports.se_DescribePromptCommand = exports.se_DescribePhoneNumberCommand = exports.se_DescribeInstanceStorageConfigCommand = exports.se_DescribeInstanceAttributeCommand = exports.se_DescribeInstanceCommand = exports.se_DescribeHoursOfOperationCommand = exports.se_DescribeEvaluationFormCommand = exports.se_DescribeContactFlowModuleCommand = exports.se_DescribeContactFlowCommand = exports.se_DescribeContactEvaluationCommand = exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteViewVersionCommand = exports.se_DeleteViewCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = void 0;
|
|
5
5
|
exports.se_SearchResourceTagsCommand = exports.se_SearchQuickConnectsCommand = exports.se_SearchQueuesCommand = exports.se_SearchPromptsCommand = exports.se_SearchHoursOfOperationsCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_MonitorContactCommand = exports.se_ListViewVersionsCommand = exports.se_ListViewsCommand = exports.se_ListUsersCommand = exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupUsersCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityProfileApplicationsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = exports.se_ListQuickConnectsCommand = exports.se_ListQueuesCommand = exports.se_ListQueueQuickConnectsCommand = exports.se_ListPromptsCommand = exports.se_ListPhoneNumbersV2Command = exports.se_ListPhoneNumbersCommand = exports.se_ListLexBotsCommand = exports.se_ListLambdaFunctionsCommand = exports.se_ListIntegrationAssociationsCommand = exports.se_ListInstanceStorageConfigsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = exports.se_ListEvaluationFormVersionsCommand = exports.se_ListEvaluationFormsCommand = exports.se_ListDefaultVocabulariesCommand = exports.se_ListContactReferencesCommand = exports.se_ListContactFlowsCommand = exports.se_ListContactFlowModulesCommand = exports.se_ListContactEvaluationsCommand = exports.se_ListBotsCommand = exports.se_ListApprovedOriginsCommand = exports.se_ListAgentStatusesCommand = void 0;
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = void 0;
|
|
6
|
+
exports.se_UpdateSecurityProfileCommand = exports.se_UpdateRuleCommand = exports.se_UpdateRoutingProfileQueuesCommand = exports.se_UpdateRoutingProfileNameCommand = exports.se_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.se_UpdateRoutingProfileConcurrencyCommand = exports.se_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.se_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePromptCommand = exports.se_UpdatePhoneNumberMetadataCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = exports.se_UpdateHoursOfOperationCommand = exports.se_UpdateEvaluationFormCommand = exports.se_UpdateContactScheduleCommand = exports.se_UpdateContactFlowNameCommand = exports.se_UpdateContactFlowModuleMetadataCommand = exports.se_UpdateContactFlowModuleContentCommand = exports.se_UpdateContactFlowMetadataCommand = exports.se_UpdateContactFlowContentCommand = exports.se_UpdateContactEvaluationCommand = exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = void 0;
|
|
7
|
+
exports.de_DeleteContactFlowModuleCommand = exports.de_DeleteContactFlowCommand = exports.de_DeleteContactEvaluationCommand = exports.de_DeactivateEvaluationFormCommand = exports.de_CreateVocabularyCommand = exports.de_CreateViewVersionCommand = exports.de_CreateViewCommand = exports.de_CreateUserHierarchyGroupCommand = exports.de_CreateUserCommand = exports.de_CreateUseCaseCommand = exports.de_CreateTrafficDistributionGroupCommand = exports.de_CreateTaskTemplateCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateRuleCommand = exports.de_CreateRoutingProfileCommand = exports.de_CreateQuickConnectCommand = exports.de_CreateQueueCommand = exports.de_CreatePromptCommand = exports.de_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = exports.de_ClaimPhoneNumberCommand = exports.de_AssociateTrafficDistributionGroupUserCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_ActivateEvaluationFormCommand = exports.se_UpdateViewMetadataCommand = exports.se_UpdateViewContentCommand = exports.se_UpdateUserSecurityProfilesCommand = exports.se_UpdateUserRoutingProfileCommand = exports.se_UpdateUserPhoneConfigCommand = exports.se_UpdateUserIdentityInfoCommand = exports.se_UpdateUserHierarchyStructureCommand = exports.se_UpdateUserHierarchyGroupNameCommand = exports.se_UpdateUserHierarchyCommand = exports.se_UpdateTrafficDistributionCommand = exports.se_UpdateTaskTemplateCommand = void 0;
|
|
8
|
+
exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeViewCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePromptCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteViewVersionCommand = exports.de_DeleteViewCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteRoutingProfileCommand = exports.de_DeleteQuickConnectCommand = exports.de_DeleteQueueCommand = exports.de_DeletePromptCommand = exports.de_DeleteIntegrationAssociationCommand = exports.de_DeleteInstanceCommand = exports.de_DeleteHoursOfOperationCommand = exports.de_DeleteEvaluationFormCommand = void 0;
|
|
9
|
+
exports.de_ListViewVersionsCommand = exports.de_ListViewsCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupUsersCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityProfileApplicationsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = exports.de_ListPhoneNumbersV2Command = exports.de_ListPhoneNumbersCommand = exports.de_ListLexBotsCommand = exports.de_ListLambdaFunctionsCommand = exports.de_ListIntegrationAssociationsCommand = exports.de_ListInstanceStorageConfigsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceAttributesCommand = exports.de_ListHoursOfOperationsCommand = exports.de_ListEvaluationFormVersionsCommand = exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAgentStatusesCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetPromptFileCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateTrafficDistributionGroupUserCommand = void 0;
|
|
10
|
+
exports.de_UpdateQueueNameCommand = exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePromptCommand = exports.de_UpdatePhoneNumberMetadataCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateEvaluationFormCommand = exports.de_UpdateContactScheduleCommand = exports.de_UpdateContactFlowNameCommand = exports.de_UpdateContactFlowModuleMetadataCommand = exports.de_UpdateContactFlowModuleContentCommand = exports.de_UpdateContactFlowMetadataCommand = exports.de_UpdateContactFlowContentCommand = exports.de_UpdateContactEvaluationCommand = exports.de_UpdateContactAttributesCommand = exports.de_UpdateContactCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_TransferContactCommand = exports.de_TagResourceCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SearchVocabulariesCommand = exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchResourceTagsCommand = exports.de_SearchQuickConnectsCommand = exports.de_SearchQueuesCommand = exports.de_SearchPromptsCommand = exports.de_SearchHoursOfOperationsCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_MonitorContactCommand = void 0;
|
|
11
|
+
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = void 0;
|
|
12
12
|
const core_1 = require("@aws-sdk/core");
|
|
13
13
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
14
14
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -4233,6 +4233,29 @@ const se_UpdatePhoneNumberCommand = async (input, context) => {
|
|
|
4233
4233
|
});
|
|
4234
4234
|
};
|
|
4235
4235
|
exports.se_UpdatePhoneNumberCommand = se_UpdatePhoneNumberCommand;
|
|
4236
|
+
const se_UpdatePhoneNumberMetadataCommand = async (input, context) => {
|
|
4237
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4238
|
+
const headers = {
|
|
4239
|
+
"content-type": "application/json",
|
|
4240
|
+
};
|
|
4241
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}/metadata";
|
|
4242
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
|
|
4243
|
+
let body;
|
|
4244
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
4245
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4246
|
+
PhoneNumberDescription: [],
|
|
4247
|
+
}));
|
|
4248
|
+
return new protocol_http_1.HttpRequest({
|
|
4249
|
+
protocol,
|
|
4250
|
+
hostname,
|
|
4251
|
+
port,
|
|
4252
|
+
method: "PUT",
|
|
4253
|
+
headers,
|
|
4254
|
+
path: resolvedPath,
|
|
4255
|
+
body,
|
|
4256
|
+
});
|
|
4257
|
+
};
|
|
4258
|
+
exports.se_UpdatePhoneNumberMetadataCommand = se_UpdatePhoneNumberMetadataCommand;
|
|
4236
4259
|
const se_UpdatePromptCommand = async (input, context) => {
|
|
4237
4260
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4238
4261
|
const headers = {
|
|
@@ -13417,6 +13440,57 @@ const de_UpdatePhoneNumberCommandError = async (output, context) => {
|
|
|
13417
13440
|
});
|
|
13418
13441
|
}
|
|
13419
13442
|
};
|
|
13443
|
+
const de_UpdatePhoneNumberMetadataCommand = async (output, context) => {
|
|
13444
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13445
|
+
return de_UpdatePhoneNumberMetadataCommandError(output, context);
|
|
13446
|
+
}
|
|
13447
|
+
const contents = (0, smithy_client_1.map)({
|
|
13448
|
+
$metadata: deserializeMetadata(output),
|
|
13449
|
+
});
|
|
13450
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
13451
|
+
return contents;
|
|
13452
|
+
};
|
|
13453
|
+
exports.de_UpdatePhoneNumberMetadataCommand = de_UpdatePhoneNumberMetadataCommand;
|
|
13454
|
+
const de_UpdatePhoneNumberMetadataCommandError = async (output, context) => {
|
|
13455
|
+
const parsedOutput = {
|
|
13456
|
+
...output,
|
|
13457
|
+
body: await parseErrorBody(output.body, context),
|
|
13458
|
+
};
|
|
13459
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13460
|
+
switch (errorCode) {
|
|
13461
|
+
case "AccessDeniedException":
|
|
13462
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
13463
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
13464
|
+
case "IdempotencyException":
|
|
13465
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
13466
|
+
throw await de_IdempotencyExceptionRes(parsedOutput, context);
|
|
13467
|
+
case "InternalServiceException":
|
|
13468
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
13469
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
13470
|
+
case "InvalidParameterException":
|
|
13471
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
13472
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
13473
|
+
case "InvalidRequestException":
|
|
13474
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
13475
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
13476
|
+
case "ResourceInUseException":
|
|
13477
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
13478
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
13479
|
+
case "ResourceNotFoundException":
|
|
13480
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
13481
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
13482
|
+
case "ThrottlingException":
|
|
13483
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
13484
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
13485
|
+
default:
|
|
13486
|
+
const parsedBody = parsedOutput.body;
|
|
13487
|
+
return throwDefaultError({
|
|
13488
|
+
output,
|
|
13489
|
+
parsedBody,
|
|
13490
|
+
errorCode,
|
|
13491
|
+
});
|
|
13492
|
+
}
|
|
13493
|
+
};
|
|
13420
13494
|
const de_UpdatePromptCommand = async (output, context) => {
|
|
13421
13495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13422
13496
|
return de_UpdatePromptCommandError(output, context);
|
package/dist-es/Connect.js
CHANGED
|
@@ -183,6 +183,7 @@ import { UpdateInstanceAttributeCommand, } from "./commands/UpdateInstanceAttrib
|
|
|
183
183
|
import { UpdateInstanceStorageConfigCommand, } from "./commands/UpdateInstanceStorageConfigCommand";
|
|
184
184
|
import { UpdateParticipantRoleConfigCommand, } from "./commands/UpdateParticipantRoleConfigCommand";
|
|
185
185
|
import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
|
|
186
|
+
import { UpdatePhoneNumberMetadataCommand, } from "./commands/UpdatePhoneNumberMetadataCommand";
|
|
186
187
|
import { UpdatePromptCommand, } from "./commands/UpdatePromptCommand";
|
|
187
188
|
import { UpdateQueueHoursOfOperationCommand, } from "./commands/UpdateQueueHoursOfOperationCommand";
|
|
188
189
|
import { UpdateQueueMaxContactsCommand, } from "./commands/UpdateQueueMaxContactsCommand";
|
|
@@ -395,6 +396,7 @@ const commands = {
|
|
|
395
396
|
UpdateInstanceStorageConfigCommand,
|
|
396
397
|
UpdateParticipantRoleConfigCommand,
|
|
397
398
|
UpdatePhoneNumberCommand,
|
|
399
|
+
UpdatePhoneNumberMetadataCommand,
|
|
398
400
|
UpdatePromptCommand,
|
|
399
401
|
UpdateQueueHoursOfOperationCommand,
|
|
400
402
|
UpdateQueueMaxContactsCommand,
|
|
@@ -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_UpdatePhoneNumberMetadataCommand, se_UpdatePhoneNumberMetadataCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdatePhoneNumberMetadataCommand 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, UpdatePhoneNumberMetadataCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "UpdatePhoneNumberMetadataCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "UpdatePhoneNumberMetadata",
|
|
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_UpdatePhoneNumberMetadataCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdatePhoneNumberMetadataCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -182,6 +182,7 @@ export * from "./UpdateInstanceAttributeCommand";
|
|
|
182
182
|
export * from "./UpdateInstanceStorageConfigCommand";
|
|
183
183
|
export * from "./UpdateParticipantRoleConfigCommand";
|
|
184
184
|
export * from "./UpdatePhoneNumberCommand";
|
|
185
|
+
export * from "./UpdatePhoneNumberMetadataCommand";
|
|
185
186
|
export * from "./UpdatePromptCommand";
|
|
186
187
|
export * from "./UpdateQueueHoursOfOperationCommand";
|
|
187
188
|
export * from "./UpdateQueueMaxContactsCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet",
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://connect.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://connect-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://connect.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://connect.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -4038,6 +4038,28 @@ export const se_UpdatePhoneNumberCommand = async (input, context) => {
|
|
|
4038
4038
|
body,
|
|
4039
4039
|
});
|
|
4040
4040
|
};
|
|
4041
|
+
export const se_UpdatePhoneNumberMetadataCommand = async (input, context) => {
|
|
4042
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4043
|
+
const headers = {
|
|
4044
|
+
"content-type": "application/json",
|
|
4045
|
+
};
|
|
4046
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}/metadata";
|
|
4047
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
|
|
4048
|
+
let body;
|
|
4049
|
+
body = JSON.stringify(take(input, {
|
|
4050
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
4051
|
+
PhoneNumberDescription: [],
|
|
4052
|
+
}));
|
|
4053
|
+
return new __HttpRequest({
|
|
4054
|
+
protocol,
|
|
4055
|
+
hostname,
|
|
4056
|
+
port,
|
|
4057
|
+
method: "PUT",
|
|
4058
|
+
headers,
|
|
4059
|
+
path: resolvedPath,
|
|
4060
|
+
body,
|
|
4061
|
+
});
|
|
4062
|
+
};
|
|
4041
4063
|
export const se_UpdatePromptCommand = async (input, context) => {
|
|
4042
4064
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4043
4065
|
const headers = {
|
|
@@ -13012,6 +13034,56 @@ const de_UpdatePhoneNumberCommandError = async (output, context) => {
|
|
|
13012
13034
|
});
|
|
13013
13035
|
}
|
|
13014
13036
|
};
|
|
13037
|
+
export const de_UpdatePhoneNumberMetadataCommand = async (output, context) => {
|
|
13038
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13039
|
+
return de_UpdatePhoneNumberMetadataCommandError(output, context);
|
|
13040
|
+
}
|
|
13041
|
+
const contents = map({
|
|
13042
|
+
$metadata: deserializeMetadata(output),
|
|
13043
|
+
});
|
|
13044
|
+
await collectBody(output.body, context);
|
|
13045
|
+
return contents;
|
|
13046
|
+
};
|
|
13047
|
+
const de_UpdatePhoneNumberMetadataCommandError = async (output, context) => {
|
|
13048
|
+
const parsedOutput = {
|
|
13049
|
+
...output,
|
|
13050
|
+
body: await parseErrorBody(output.body, context),
|
|
13051
|
+
};
|
|
13052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13053
|
+
switch (errorCode) {
|
|
13054
|
+
case "AccessDeniedException":
|
|
13055
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
13056
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
13057
|
+
case "IdempotencyException":
|
|
13058
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
13059
|
+
throw await de_IdempotencyExceptionRes(parsedOutput, context);
|
|
13060
|
+
case "InternalServiceException":
|
|
13061
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
13062
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
13063
|
+
case "InvalidParameterException":
|
|
13064
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
13065
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
13066
|
+
case "InvalidRequestException":
|
|
13067
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
13068
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
13069
|
+
case "ResourceInUseException":
|
|
13070
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
13071
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
13072
|
+
case "ResourceNotFoundException":
|
|
13073
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
13074
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
13075
|
+
case "ThrottlingException":
|
|
13076
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
13077
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
13078
|
+
default:
|
|
13079
|
+
const parsedBody = parsedOutput.body;
|
|
13080
|
+
return throwDefaultError({
|
|
13081
|
+
output,
|
|
13082
|
+
parsedBody,
|
|
13083
|
+
errorCode,
|
|
13084
|
+
});
|
|
13085
|
+
}
|
|
13086
|
+
};
|
|
13015
13087
|
export const de_UpdatePromptCommand = async (output, context) => {
|
|
13016
13088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13017
13089
|
return de_UpdatePromptCommandError(output, context);
|
package/dist-types/Connect.d.ts
CHANGED
|
@@ -183,6 +183,7 @@ import { UpdateInstanceAttributeCommandInput, UpdateInstanceAttributeCommandOutp
|
|
|
183
183
|
import { UpdateInstanceStorageConfigCommandInput, UpdateInstanceStorageConfigCommandOutput } from "./commands/UpdateInstanceStorageConfigCommand";
|
|
184
184
|
import { UpdateParticipantRoleConfigCommandInput, UpdateParticipantRoleConfigCommandOutput } from "./commands/UpdateParticipantRoleConfigCommand";
|
|
185
185
|
import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
|
|
186
|
+
import { UpdatePhoneNumberMetadataCommandInput, UpdatePhoneNumberMetadataCommandOutput } from "./commands/UpdatePhoneNumberMetadataCommand";
|
|
186
187
|
import { UpdatePromptCommandInput, UpdatePromptCommandOutput } from "./commands/UpdatePromptCommand";
|
|
187
188
|
import { UpdateQueueHoursOfOperationCommandInput, UpdateQueueHoursOfOperationCommandOutput } from "./commands/UpdateQueueHoursOfOperationCommand";
|
|
188
189
|
import { UpdateQueueMaxContactsCommandInput, UpdateQueueMaxContactsCommandOutput } from "./commands/UpdateQueueMaxContactsCommand";
|
|
@@ -1315,6 +1316,12 @@ export interface Connect {
|
|
|
1315
1316
|
updatePhoneNumber(args: UpdatePhoneNumberCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePhoneNumberCommandOutput>;
|
|
1316
1317
|
updatePhoneNumber(args: UpdatePhoneNumberCommandInput, cb: (err: any, data?: UpdatePhoneNumberCommandOutput) => void): void;
|
|
1317
1318
|
updatePhoneNumber(args: UpdatePhoneNumberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePhoneNumberCommandOutput) => void): void;
|
|
1319
|
+
/**
|
|
1320
|
+
* @see {@link UpdatePhoneNumberMetadataCommand}
|
|
1321
|
+
*/
|
|
1322
|
+
updatePhoneNumberMetadata(args: UpdatePhoneNumberMetadataCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePhoneNumberMetadataCommandOutput>;
|
|
1323
|
+
updatePhoneNumberMetadata(args: UpdatePhoneNumberMetadataCommandInput, cb: (err: any, data?: UpdatePhoneNumberMetadataCommandOutput) => void): void;
|
|
1324
|
+
updatePhoneNumberMetadata(args: UpdatePhoneNumberMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePhoneNumberMetadataCommandOutput) => void): void;
|
|
1318
1325
|
/**
|
|
1319
1326
|
* @see {@link UpdatePromptCommand}
|
|
1320
1327
|
*/
|
|
@@ -1480,9 +1487,9 @@ export interface Connect {
|
|
|
1480
1487
|
* contact routing. You can also resolve customer issues more efficiently by getting customers in
|
|
1481
1488
|
* touch with the appropriate agents.</p>
|
|
1482
1489
|
* <p>There are limits to the number of Amazon Connect resources that you can create. There
|
|
1483
|
-
* are also limits to the number of requests that you can make per second. For more information,
|
|
1484
|
-
*
|
|
1485
|
-
* Guide</i>.</p>
|
|
1490
|
+
* are also limits to the number of requests that you can make per second. For more information,
|
|
1491
|
+
* seeP98941055 <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service
|
|
1492
|
+
* Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
|
|
1486
1493
|
* <p>You can connect programmatically to an Amazon Web Services service by using an endpoint. For
|
|
1487
1494
|
* a list of Amazon Connect endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/connect_region.html">Amazon Connect Endpoints</a>.</p>
|
|
1488
1495
|
*/
|