@aws-sdk/client-connect 3.142.0 → 3.154.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/CHANGELOG.md +27 -0
- package/README.md +1 -1
- package/dist-cjs/Connect.js +15 -0
- package/dist-cjs/commands/SearchSecurityProfilesCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_1.js +32 -12
- package/dist-cjs/pagination/SearchSecurityProfilesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +134 -5
- package/dist-es/Connect.js +15 -0
- package/dist-es/commands/SearchSecurityProfilesCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_1.js +11 -6
- package/dist-es/pagination/SearchSecurityProfilesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +148 -0
- package/dist-types/Connect.d.ts +46 -46
- package/dist-types/ConnectClient.d.ts +4 -3
- package/dist-types/commands/AssociatePhoneNumberContactFlowCommand.d.ts +1 -1
- package/dist-types/commands/CreateContactFlowCommand.d.ts +2 -2
- package/dist-types/commands/CreateContactFlowModuleCommand.d.ts +1 -1
- package/dist-types/commands/DeleteContactFlowCommand.d.ts +1 -1
- package/dist-types/commands/DeleteContactFlowModuleCommand.d.ts +1 -1
- package/dist-types/commands/DescribeContactFlowCommand.d.ts +2 -2
- package/dist-types/commands/DescribeContactFlowModuleCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
- package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +2 -2
- package/dist-types/commands/ListContactFlowModulesCommand.d.ts +1 -1
- package/dist-types/commands/ListContactFlowsCommand.d.ts +3 -3
- package/dist-types/commands/ListLambdaFunctionsCommand.d.ts +1 -1
- package/dist-types/commands/SearchSecurityProfilesCommand.d.ts +36 -0
- package/dist-types/commands/StartChatContactCommand.d.ts +1 -1
- package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +5 -5
- package/dist-types/commands/StartTaskContactCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/TransferContactCommand.d.ts +2 -2
- package/dist-types/commands/UpdateContactAttributesCommand.d.ts +1 -9
- package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +2 -2
- package/dist-types/commands/UpdateContactFlowMetadataCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowModuleMetadataCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactFlowNameCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +91 -88
- package/dist-types/models/models_1.d.ts +185 -61
- package/dist-types/pagination/SearchSecurityProfilesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Connect.d.ts +5 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/SearchSecurityProfilesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +72 -13
- package/dist-types/ts3.4/pagination/SearchSecurityProfilesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +9 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.154.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.153.0...v3.154.0) (2022-08-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-connect:** This release adds SearchSecurityProfiles API which can be used to search for Security Profile resources within a Connect Instance. ([9a021ff](https://github.com/aws/aws-sdk-js-v3/commit/9a021ff73ad092b31866bca5cafb840828547cf5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-connect
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-connect
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
34
|
|
|
8
35
|
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Service Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
|
|
|
20
20
|
<p>You can connect programmatically to an Amazon Web Services service by using an endpoint. For
|
|
21
21
|
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>
|
|
22
22
|
<note>
|
|
23
|
-
<p>Working with
|
|
23
|
+
<p>Working with flows? Check out the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect Flow language</a>.</p>
|
|
24
24
|
</note>
|
|
25
25
|
|
|
26
26
|
## Installing
|
package/dist-cjs/Connect.js
CHANGED
|
@@ -105,6 +105,7 @@ const PutUserStatusCommand_1 = require("./commands/PutUserStatusCommand");
|
|
|
105
105
|
const ReleasePhoneNumberCommand_1 = require("./commands/ReleasePhoneNumberCommand");
|
|
106
106
|
const ResumeContactRecordingCommand_1 = require("./commands/ResumeContactRecordingCommand");
|
|
107
107
|
const SearchAvailablePhoneNumbersCommand_1 = require("./commands/SearchAvailablePhoneNumbersCommand");
|
|
108
|
+
const SearchSecurityProfilesCommand_1 = require("./commands/SearchSecurityProfilesCommand");
|
|
108
109
|
const SearchUsersCommand_1 = require("./commands/SearchUsersCommand");
|
|
109
110
|
const SearchVocabulariesCommand_1 = require("./commands/SearchVocabulariesCommand");
|
|
110
111
|
const StartChatContactCommand_1 = require("./commands/StartChatContactCommand");
|
|
@@ -1610,6 +1611,20 @@ class Connect extends ConnectClient_1.ConnectClient {
|
|
|
1610
1611
|
return this.send(command, optionsOrCb);
|
|
1611
1612
|
}
|
|
1612
1613
|
}
|
|
1614
|
+
searchSecurityProfiles(args, optionsOrCb, cb) {
|
|
1615
|
+
const command = new SearchSecurityProfilesCommand_1.SearchSecurityProfilesCommand(args);
|
|
1616
|
+
if (typeof optionsOrCb === "function") {
|
|
1617
|
+
this.send(command, optionsOrCb);
|
|
1618
|
+
}
|
|
1619
|
+
else if (typeof cb === "function") {
|
|
1620
|
+
if (typeof optionsOrCb !== "object")
|
|
1621
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1622
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1623
|
+
}
|
|
1624
|
+
else {
|
|
1625
|
+
return this.send(command, optionsOrCb);
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1613
1628
|
searchUsers(args, optionsOrCb, cb) {
|
|
1614
1629
|
const command = new SearchUsersCommand_1.SearchUsersCommand(args);
|
|
1615
1630
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchSecurityProfilesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_1_1 = require("../models/models_1");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class SearchSecurityProfilesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ConnectClient";
|
|
18
|
+
const commandName = "SearchSecurityProfilesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_1_1.SearchSecurityProfilesRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_1_1.SearchSecurityProfilesResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1SearchSecurityProfilesCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1SearchSecurityProfilesCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.SearchSecurityProfilesCommand = SearchSecurityProfilesCommand;
|
|
@@ -105,6 +105,7 @@ tslib_1.__exportStar(require("./PutUserStatusCommand"), exports);
|
|
|
105
105
|
tslib_1.__exportStar(require("./ReleasePhoneNumberCommand"), exports);
|
|
106
106
|
tslib_1.__exportStar(require("./ResumeContactRecordingCommand"), exports);
|
|
107
107
|
tslib_1.__exportStar(require("./SearchAvailablePhoneNumbersCommand"), exports);
|
|
108
|
+
tslib_1.__exportStar(require("./SearchSecurityProfilesCommand"), exports);
|
|
108
109
|
tslib_1.__exportStar(require("./SearchUsersCommand"), exports);
|
|
109
110
|
tslib_1.__exportStar(require("./SearchVocabulariesCommand"), exports);
|
|
110
111
|
tslib_1.__exportStar(require("./StartChatContactCommand"), exports);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.SearchUsersRequestFilterSensitiveLog = exports.UserSearchCriteriaFilterSensitiveLog = exports.UpdateUserSecurityProfilesRequestFilterSensitiveLog = exports.UpdateUserRoutingProfileRequestFilterSensitiveLog = exports.UpdateUserPhoneConfigRequestFilterSensitiveLog = exports.UpdateUserIdentityInfoRequestFilterSensitiveLog = exports.UpdateUserHierarchyStructureRequestFilterSensitiveLog = exports.HierarchyStructureUpdateFilterSensitiveLog = exports.HierarchyLevelUpdateFilterSensitiveLog = exports.UpdateUserHierarchyGroupNameRequestFilterSensitiveLog = exports.UpdateUserHierarchyRequestFilterSensitiveLog = exports.UpdateTaskTemplateResponseFilterSensitiveLog = exports.UpdateTaskTemplateRequestFilterSensitiveLog = exports.UpdateSecurityProfileRequestFilterSensitiveLog = exports.UpdateRoutingProfileQueuesRequestFilterSensitiveLog = exports.UpdateRoutingProfileNameRequestFilterSensitiveLog = exports.UpdateRoutingProfileDefaultOutboundQueueRequestFilterSensitiveLog = exports.UpdateRoutingProfileConcurrencyRequestFilterSensitiveLog = exports.UpdateQuickConnectNameRequestFilterSensitiveLog = exports.UpdateQuickConnectConfigRequestFilterSensitiveLog = exports.UpdateQueueStatusRequestFilterSensitiveLog = exports.UpdateQueueOutboundCallerConfigRequestFilterSensitiveLog = exports.UpdateQueueNameRequestFilterSensitiveLog = exports.UpdateQueueMaxContactsRequestFilterSensitiveLog = exports.UpdateQueueHoursOfOperationRequestFilterSensitiveLog = exports.UpdatePhoneNumberResponseFilterSensitiveLog = exports.UpdatePhoneNumberRequestFilterSensitiveLog = exports.UpdateInstanceStorageConfigRequestFilterSensitiveLog = exports.UpdateInstanceAttributeRequestFilterSensitiveLog = exports.UpdateHoursOfOperationRequestFilterSensitiveLog = exports.UpdateContactScheduleResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.TagConditionFilterSensitiveLog = exports.StringConditionFilterSensitiveLog = exports.SearchAvailablePhoneNumbersResponseFilterSensitiveLog = exports.AvailableNumberSummaryFilterSensitiveLog = exports.SearchAvailablePhoneNumbersRequestFilterSensitiveLog = exports.ResumeContactRecordingResponseFilterSensitiveLog = exports.ResumeContactRecordingRequestFilterSensitiveLog = exports.ReleasePhoneNumberRequestFilterSensitiveLog = exports.PutUserStatusResponseFilterSensitiveLog = exports.PutUserStatusRequestFilterSensitiveLog = exports.ListUsersResponseFilterSensitiveLog = exports.UserSummaryFilterSensitiveLog = exports.ListUsersRequestFilterSensitiveLog = exports.ListUserHierarchyGroupsResponseFilterSensitiveLog = exports.ListUserHierarchyGroupsRequestFilterSensitiveLog = exports.ListUseCasesResponseFilterSensitiveLog = exports.UseCaseFilterSensitiveLog = exports.ListUseCasesRequestFilterSensitiveLog = exports.ListTaskTemplatesResponseFilterSensitiveLog = exports.TaskTemplateMetadataFilterSensitiveLog = exports.ListTaskTemplatesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSecurityProfilesResponseFilterSensitiveLog = exports.SecurityProfileSummaryFilterSensitiveLog = exports.ListSecurityProfilesRequestFilterSensitiveLog = exports.ListSecurityProfilePermissionsResponseFilterSensitiveLog = exports.ListSecurityProfilePermissionsRequestFilterSensitiveLog = exports.ListSecurityKeysResponseFilterSensitiveLog = exports.SecurityKeyFilterSensitiveLog = exports.ListSecurityKeysRequestFilterSensitiveLog = exports.ListRoutingProfilesResponseFilterSensitiveLog = exports.RoutingProfileSummaryFilterSensitiveLog = exports.ListRoutingProfilesRequestFilterSensitiveLog = exports.ListRoutingProfileQueuesResponseFilterSensitiveLog = exports.RoutingProfileQueueConfigSummaryFilterSensitiveLog = exports.ListRoutingProfileQueuesRequestFilterSensitiveLog = exports.ListQuickConnectsResponseFilterSensitiveLog = exports.ListQuickConnectsRequestFilterSensitiveLog = exports.ListQueuesResponseFilterSensitiveLog = exports.QueueSummaryFilterSensitiveLog = exports.ListQueuesRequestFilterSensitiveLog = exports.ContactNotFoundException = exports.TrafficType = exports.OutboundContactNotPermittedException = exports.DestinationNotAllowedException = exports.VoiceRecordingTrack = exports.HierarchyGroupMatchType = exports.StringComparisonType = exports.QueueType = void 0;
|
|
4
|
+
exports.UpdateContactFlowModuleMetadataRequestFilterSensitiveLog = exports.UpdateContactFlowModuleContentResponseFilterSensitiveLog = exports.UpdateContactFlowModuleContentRequestFilterSensitiveLog = exports.UpdateContactFlowMetadataRequestFilterSensitiveLog = exports.UpdateContactFlowContentRequestFilterSensitiveLog = exports.UpdateContactAttributesResponseFilterSensitiveLog = exports.UpdateContactAttributesRequestFilterSensitiveLog = exports.UpdateContactResponseFilterSensitiveLog = exports.UpdateContactRequestFilterSensitiveLog = exports.UpdateAgentStatusRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TransferContactResponseFilterSensitiveLog = exports.TransferContactRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SuspendContactRecordingResponseFilterSensitiveLog = exports.SuspendContactRecordingRequestFilterSensitiveLog = exports.StopContactStreamingResponseFilterSensitiveLog = exports.StopContactStreamingRequestFilterSensitiveLog = exports.StopContactRecordingResponseFilterSensitiveLog = exports.StopContactRecordingRequestFilterSensitiveLog = exports.StopContactResponseFilterSensitiveLog = exports.StopContactRequestFilterSensitiveLog = exports.StartTaskContactResponseFilterSensitiveLog = exports.StartTaskContactRequestFilterSensitiveLog = exports.ReferenceFilterSensitiveLog = exports.StartOutboundVoiceContactResponseFilterSensitiveLog = exports.StartOutboundVoiceContactRequestFilterSensitiveLog = exports.AnswerMachineDetectionConfigFilterSensitiveLog = exports.StartContactStreamingResponseFilterSensitiveLog = exports.StartContactStreamingRequestFilterSensitiveLog = exports.ChatStreamingConfigurationFilterSensitiveLog = exports.StartContactRecordingResponseFilterSensitiveLog = exports.StartContactRecordingRequestFilterSensitiveLog = exports.VoiceRecordingConfigurationFilterSensitiveLog = exports.StartChatContactResponseFilterSensitiveLog = exports.StartChatContactRequestFilterSensitiveLog = exports.ParticipantDetailsFilterSensitiveLog = exports.ChatMessageFilterSensitiveLog = exports.SearchVocabulariesResponseFilterSensitiveLog = exports.VocabularySummaryFilterSensitiveLog = exports.SearchVocabulariesRequestFilterSensitiveLog = exports.SearchUsersResponseFilterSensitiveLog = exports.UserSearchSummaryFilterSensitiveLog = exports.UserIdentityInfoLiteFilterSensitiveLog = exports.UserSearchFilterFilterSensitiveLog = exports.HierarchyGroupConditionFilterSensitiveLog = exports.SearchSecurityProfilesResponseFilterSensitiveLog = exports.SecurityProfileSearchSummaryFilterSensitiveLog = exports.SecurityProfilesSearchFilterFilterSensitiveLog = exports.ControlPlaneTagFilterFilterSensitiveLog = void 0;
|
|
5
|
+
exports.SearchUsersRequestFilterSensitiveLog = exports.SearchSecurityProfilesRequestFilterSensitiveLog = exports.UserSearchCriteriaFilterSensitiveLog = exports.SecurityProfileSearchCriteriaFilterSensitiveLog = exports.UpdateUserSecurityProfilesRequestFilterSensitiveLog = exports.UpdateUserRoutingProfileRequestFilterSensitiveLog = exports.UpdateUserPhoneConfigRequestFilterSensitiveLog = exports.UpdateUserIdentityInfoRequestFilterSensitiveLog = exports.UpdateUserHierarchyStructureRequestFilterSensitiveLog = exports.HierarchyStructureUpdateFilterSensitiveLog = exports.HierarchyLevelUpdateFilterSensitiveLog = exports.UpdateUserHierarchyGroupNameRequestFilterSensitiveLog = exports.UpdateUserHierarchyRequestFilterSensitiveLog = exports.UpdateTaskTemplateResponseFilterSensitiveLog = exports.UpdateTaskTemplateRequestFilterSensitiveLog = exports.UpdateSecurityProfileRequestFilterSensitiveLog = exports.UpdateRoutingProfileQueuesRequestFilterSensitiveLog = exports.UpdateRoutingProfileNameRequestFilterSensitiveLog = exports.UpdateRoutingProfileDefaultOutboundQueueRequestFilterSensitiveLog = exports.UpdateRoutingProfileConcurrencyRequestFilterSensitiveLog = exports.UpdateQuickConnectNameRequestFilterSensitiveLog = exports.UpdateQuickConnectConfigRequestFilterSensitiveLog = exports.UpdateQueueStatusRequestFilterSensitiveLog = exports.UpdateQueueOutboundCallerConfigRequestFilterSensitiveLog = exports.UpdateQueueNameRequestFilterSensitiveLog = exports.UpdateQueueMaxContactsRequestFilterSensitiveLog = exports.UpdateQueueHoursOfOperationRequestFilterSensitiveLog = exports.UpdatePhoneNumberResponseFilterSensitiveLog = exports.UpdatePhoneNumberRequestFilterSensitiveLog = exports.UpdateInstanceStorageConfigRequestFilterSensitiveLog = exports.UpdateInstanceAttributeRequestFilterSensitiveLog = exports.UpdateHoursOfOperationRequestFilterSensitiveLog = exports.UpdateContactScheduleResponseFilterSensitiveLog = exports.UpdateContactScheduleRequestFilterSensitiveLog = exports.UpdateContactFlowNameRequestFilterSensitiveLog = exports.UpdateContactFlowModuleMetadataResponseFilterSensitiveLog = void 0;
|
|
6
6
|
const ConnectServiceException_1 = require("./ConnectServiceException");
|
|
7
7
|
var QueueType;
|
|
8
8
|
(function (QueueType) {
|
|
9
9
|
QueueType["AGENT"] = "AGENT";
|
|
10
10
|
QueueType["STANDARD"] = "STANDARD";
|
|
11
11
|
})(QueueType = exports.QueueType || (exports.QueueType = {}));
|
|
12
|
-
var HierarchyGroupMatchType;
|
|
13
|
-
(function (HierarchyGroupMatchType) {
|
|
14
|
-
HierarchyGroupMatchType["EXACT"] = "EXACT";
|
|
15
|
-
HierarchyGroupMatchType["WITH_CHILD_GROUPS"] = "WITH_CHILD_GROUPS";
|
|
16
|
-
})(HierarchyGroupMatchType = exports.HierarchyGroupMatchType || (exports.HierarchyGroupMatchType = {}));
|
|
17
12
|
var StringComparisonType;
|
|
18
13
|
(function (StringComparisonType) {
|
|
19
14
|
StringComparisonType["CONTAINS"] = "CONTAINS";
|
|
20
15
|
StringComparisonType["EXACT"] = "EXACT";
|
|
21
16
|
StringComparisonType["STARTS_WITH"] = "STARTS_WITH";
|
|
22
17
|
})(StringComparisonType = exports.StringComparisonType || (exports.StringComparisonType = {}));
|
|
18
|
+
var HierarchyGroupMatchType;
|
|
19
|
+
(function (HierarchyGroupMatchType) {
|
|
20
|
+
HierarchyGroupMatchType["EXACT"] = "EXACT";
|
|
21
|
+
HierarchyGroupMatchType["WITH_CHILD_GROUPS"] = "WITH_CHILD_GROUPS";
|
|
22
|
+
})(HierarchyGroupMatchType = exports.HierarchyGroupMatchType || (exports.HierarchyGroupMatchType = {}));
|
|
23
23
|
var VoiceRecordingTrack;
|
|
24
24
|
(function (VoiceRecordingTrack) {
|
|
25
25
|
VoiceRecordingTrack["ALL"] = "ALL";
|
|
@@ -233,10 +233,6 @@ const SearchAvailablePhoneNumbersResponseFilterSensitiveLog = (obj) => ({
|
|
|
233
233
|
...obj,
|
|
234
234
|
});
|
|
235
235
|
exports.SearchAvailablePhoneNumbersResponseFilterSensitiveLog = SearchAvailablePhoneNumbersResponseFilterSensitiveLog;
|
|
236
|
-
const HierarchyGroupConditionFilterSensitiveLog = (obj) => ({
|
|
237
|
-
...obj,
|
|
238
|
-
});
|
|
239
|
-
exports.HierarchyGroupConditionFilterSensitiveLog = HierarchyGroupConditionFilterSensitiveLog;
|
|
240
236
|
const StringConditionFilterSensitiveLog = (obj) => ({
|
|
241
237
|
...obj,
|
|
242
238
|
});
|
|
@@ -249,6 +245,22 @@ const ControlPlaneTagFilterFilterSensitiveLog = (obj) => ({
|
|
|
249
245
|
...obj,
|
|
250
246
|
});
|
|
251
247
|
exports.ControlPlaneTagFilterFilterSensitiveLog = ControlPlaneTagFilterFilterSensitiveLog;
|
|
248
|
+
const SecurityProfilesSearchFilterFilterSensitiveLog = (obj) => ({
|
|
249
|
+
...obj,
|
|
250
|
+
});
|
|
251
|
+
exports.SecurityProfilesSearchFilterFilterSensitiveLog = SecurityProfilesSearchFilterFilterSensitiveLog;
|
|
252
|
+
const SecurityProfileSearchSummaryFilterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
});
|
|
255
|
+
exports.SecurityProfileSearchSummaryFilterSensitiveLog = SecurityProfileSearchSummaryFilterSensitiveLog;
|
|
256
|
+
const SearchSecurityProfilesResponseFilterSensitiveLog = (obj) => ({
|
|
257
|
+
...obj,
|
|
258
|
+
});
|
|
259
|
+
exports.SearchSecurityProfilesResponseFilterSensitiveLog = SearchSecurityProfilesResponseFilterSensitiveLog;
|
|
260
|
+
const HierarchyGroupConditionFilterSensitiveLog = (obj) => ({
|
|
261
|
+
...obj,
|
|
262
|
+
});
|
|
263
|
+
exports.HierarchyGroupConditionFilterSensitiveLog = HierarchyGroupConditionFilterSensitiveLog;
|
|
252
264
|
const UserSearchFilterFilterSensitiveLog = (obj) => ({
|
|
253
265
|
...obj,
|
|
254
266
|
});
|
|
@@ -557,10 +569,18 @@ const UpdateUserSecurityProfilesRequestFilterSensitiveLog = (obj) => ({
|
|
|
557
569
|
...obj,
|
|
558
570
|
});
|
|
559
571
|
exports.UpdateUserSecurityProfilesRequestFilterSensitiveLog = UpdateUserSecurityProfilesRequestFilterSensitiveLog;
|
|
572
|
+
const SecurityProfileSearchCriteriaFilterSensitiveLog = (obj) => ({
|
|
573
|
+
...obj,
|
|
574
|
+
});
|
|
575
|
+
exports.SecurityProfileSearchCriteriaFilterSensitiveLog = SecurityProfileSearchCriteriaFilterSensitiveLog;
|
|
560
576
|
const UserSearchCriteriaFilterSensitiveLog = (obj) => ({
|
|
561
577
|
...obj,
|
|
562
578
|
});
|
|
563
579
|
exports.UserSearchCriteriaFilterSensitiveLog = UserSearchCriteriaFilterSensitiveLog;
|
|
580
|
+
const SearchSecurityProfilesRequestFilterSensitiveLog = (obj) => ({
|
|
581
|
+
...obj,
|
|
582
|
+
});
|
|
583
|
+
exports.SearchSecurityProfilesRequestFilterSensitiveLog = SearchSecurityProfilesRequestFilterSensitiveLog;
|
|
564
584
|
const SearchUsersRequestFilterSensitiveLog = (obj) => ({
|
|
565
585
|
...obj,
|
|
566
586
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateSearchSecurityProfiles = void 0;
|
|
4
|
+
const SearchSecurityProfilesCommand_1 = require("../commands/SearchSecurityProfilesCommand");
|
|
5
|
+
const Connect_1 = require("../Connect");
|
|
6
|
+
const ConnectClient_1 = require("../ConnectClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new SearchSecurityProfilesCommand_1.SearchSecurityProfilesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.searchSecurityProfiles(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateSearchSecurityProfiles(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Connect_1.Connect) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateSearchSecurityProfiles = paginateSearchSecurityProfiles;
|
|
@@ -35,5 +35,6 @@ tslib_1.__exportStar(require("./ListUseCasesPaginator"), exports);
|
|
|
35
35
|
tslib_1.__exportStar(require("./ListUserHierarchyGroupsPaginator"), exports);
|
|
36
36
|
tslib_1.__exportStar(require("./ListUsersPaginator"), exports);
|
|
37
37
|
tslib_1.__exportStar(require("./SearchAvailablePhoneNumbersPaginator"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./SearchSecurityProfilesPaginator"), exports);
|
|
38
39
|
tslib_1.__exportStar(require("./SearchUsersPaginator"), exports);
|
|
39
40
|
tslib_1.__exportStar(require("./SearchVocabulariesPaginator"), exports);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteTaskTemplateCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateTaskTemplateCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
|
|
4
4
|
exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentUserDataCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = void 0;
|
|
5
|
+
exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TransferContactCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchSecurityProfilesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentUserDataCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = void 0;
|
|
8
|
+
exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TransferContactCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchSecurityProfilesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = void 0;
|
|
9
|
+
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = void 0;
|
|
10
10
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const uuid_1 = require("uuid");
|
|
@@ -2382,6 +2382,35 @@ const serializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (input, c
|
|
|
2382
2382
|
});
|
|
2383
2383
|
};
|
|
2384
2384
|
exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = serializeAws_restJson1SearchAvailablePhoneNumbersCommand;
|
|
2385
|
+
const serializeAws_restJson1SearchSecurityProfilesCommand = async (input, context) => {
|
|
2386
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2387
|
+
const headers = {
|
|
2388
|
+
"content-type": "application/json",
|
|
2389
|
+
};
|
|
2390
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-security-profiles";
|
|
2391
|
+
let body;
|
|
2392
|
+
body = JSON.stringify({
|
|
2393
|
+
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
2394
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2395
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2396
|
+
...(input.SearchCriteria != null && {
|
|
2397
|
+
SearchCriteria: serializeAws_restJson1SecurityProfileSearchCriteria(input.SearchCriteria, context),
|
|
2398
|
+
}),
|
|
2399
|
+
...(input.SearchFilter != null && {
|
|
2400
|
+
SearchFilter: serializeAws_restJson1SecurityProfilesSearchFilter(input.SearchFilter, context),
|
|
2401
|
+
}),
|
|
2402
|
+
});
|
|
2403
|
+
return new protocol_http_1.HttpRequest({
|
|
2404
|
+
protocol,
|
|
2405
|
+
hostname,
|
|
2406
|
+
port,
|
|
2407
|
+
method: "POST",
|
|
2408
|
+
headers,
|
|
2409
|
+
path: resolvedPath,
|
|
2410
|
+
body,
|
|
2411
|
+
});
|
|
2412
|
+
};
|
|
2413
|
+
exports.serializeAws_restJson1SearchSecurityProfilesCommand = serializeAws_restJson1SearchSecurityProfilesCommand;
|
|
2385
2414
|
const serializeAws_restJson1SearchUsersCommand = async (input, context) => {
|
|
2386
2415
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2387
2416
|
const headers = {
|
|
@@ -8572,6 +8601,58 @@ const deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = async (o
|
|
|
8572
8601
|
});
|
|
8573
8602
|
}
|
|
8574
8603
|
};
|
|
8604
|
+
const deserializeAws_restJson1SearchSecurityProfilesCommand = async (output, context) => {
|
|
8605
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8606
|
+
return deserializeAws_restJson1SearchSecurityProfilesCommandError(output, context);
|
|
8607
|
+
}
|
|
8608
|
+
const contents = map({
|
|
8609
|
+
$metadata: deserializeMetadata(output),
|
|
8610
|
+
});
|
|
8611
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
8612
|
+
if (data.ApproximateTotalCount != null) {
|
|
8613
|
+
contents.ApproximateTotalCount = (0, smithy_client_1.expectLong)(data.ApproximateTotalCount);
|
|
8614
|
+
}
|
|
8615
|
+
if (data.NextToken != null) {
|
|
8616
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
8617
|
+
}
|
|
8618
|
+
if (data.SecurityProfiles != null) {
|
|
8619
|
+
contents.SecurityProfiles = deserializeAws_restJson1SecurityProfilesSearchSummaryList(data.SecurityProfiles, context);
|
|
8620
|
+
}
|
|
8621
|
+
return contents;
|
|
8622
|
+
};
|
|
8623
|
+
exports.deserializeAws_restJson1SearchSecurityProfilesCommand = deserializeAws_restJson1SearchSecurityProfilesCommand;
|
|
8624
|
+
const deserializeAws_restJson1SearchSecurityProfilesCommandError = async (output, context) => {
|
|
8625
|
+
const parsedOutput = {
|
|
8626
|
+
...output,
|
|
8627
|
+
body: await parseBody(output.body, context),
|
|
8628
|
+
};
|
|
8629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8630
|
+
switch (errorCode) {
|
|
8631
|
+
case "InternalServiceException":
|
|
8632
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8633
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
8634
|
+
case "InvalidParameterException":
|
|
8635
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8636
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
8637
|
+
case "InvalidRequestException":
|
|
8638
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8639
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
8640
|
+
case "ResourceNotFoundException":
|
|
8641
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8642
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
8643
|
+
case "ThrottlingException":
|
|
8644
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
8645
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
8646
|
+
default:
|
|
8647
|
+
const parsedBody = parsedOutput.body;
|
|
8648
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
8649
|
+
output,
|
|
8650
|
+
parsedBody,
|
|
8651
|
+
exceptionCtor: ConnectServiceException_1.ConnectServiceException,
|
|
8652
|
+
errorCode,
|
|
8653
|
+
});
|
|
8654
|
+
}
|
|
8655
|
+
};
|
|
8575
8656
|
const deserializeAws_restJson1SearchUsersCommand = async (output, context) => {
|
|
8576
8657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8577
8658
|
return deserializeAws_restJson1SearchUsersCommandError(output, context);
|
|
@@ -11350,6 +11431,33 @@ const serializeAws_restJson1SecurityProfileIds = (input, context) => {
|
|
|
11350
11431
|
return entry;
|
|
11351
11432
|
});
|
|
11352
11433
|
};
|
|
11434
|
+
const serializeAws_restJson1SecurityProfileSearchConditionList = (input, context) => {
|
|
11435
|
+
return input
|
|
11436
|
+
.filter((e) => e != null)
|
|
11437
|
+
.map((entry) => {
|
|
11438
|
+
return serializeAws_restJson1SecurityProfileSearchCriteria(entry, context);
|
|
11439
|
+
});
|
|
11440
|
+
};
|
|
11441
|
+
const serializeAws_restJson1SecurityProfileSearchCriteria = (input, context) => {
|
|
11442
|
+
return {
|
|
11443
|
+
...(input.AndConditions != null && {
|
|
11444
|
+
AndConditions: serializeAws_restJson1SecurityProfileSearchConditionList(input.AndConditions, context),
|
|
11445
|
+
}),
|
|
11446
|
+
...(input.OrConditions != null && {
|
|
11447
|
+
OrConditions: serializeAws_restJson1SecurityProfileSearchConditionList(input.OrConditions, context),
|
|
11448
|
+
}),
|
|
11449
|
+
...(input.StringCondition != null && {
|
|
11450
|
+
StringCondition: serializeAws_restJson1StringCondition(input.StringCondition, context),
|
|
11451
|
+
}),
|
|
11452
|
+
};
|
|
11453
|
+
};
|
|
11454
|
+
const serializeAws_restJson1SecurityProfilesSearchFilter = (input, context) => {
|
|
11455
|
+
return {
|
|
11456
|
+
...(input.TagFilter != null && {
|
|
11457
|
+
TagFilter: serializeAws_restJson1ControlPlaneTagFilter(input.TagFilter, context),
|
|
11458
|
+
}),
|
|
11459
|
+
};
|
|
11460
|
+
};
|
|
11353
11461
|
const serializeAws_restJson1SingleSelectOptions = (input, context) => {
|
|
11354
11462
|
return input
|
|
11355
11463
|
.filter((e) => e != null)
|
|
@@ -12666,6 +12774,27 @@ const deserializeAws_restJson1SecurityProfileIds = (output, context) => {
|
|
|
12666
12774
|
});
|
|
12667
12775
|
return retVal;
|
|
12668
12776
|
};
|
|
12777
|
+
const deserializeAws_restJson1SecurityProfileSearchSummary = (output, context) => {
|
|
12778
|
+
return {
|
|
12779
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
12780
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
12781
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
12782
|
+
OrganizationResourceId: (0, smithy_client_1.expectString)(output.OrganizationResourceId),
|
|
12783
|
+
SecurityProfileName: (0, smithy_client_1.expectString)(output.SecurityProfileName),
|
|
12784
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
12785
|
+
};
|
|
12786
|
+
};
|
|
12787
|
+
const deserializeAws_restJson1SecurityProfilesSearchSummaryList = (output, context) => {
|
|
12788
|
+
const retVal = (output || [])
|
|
12789
|
+
.filter((e) => e != null)
|
|
12790
|
+
.map((entry) => {
|
|
12791
|
+
if (entry === null) {
|
|
12792
|
+
return null;
|
|
12793
|
+
}
|
|
12794
|
+
return deserializeAws_restJson1SecurityProfileSearchSummary(entry, context);
|
|
12795
|
+
});
|
|
12796
|
+
return retVal;
|
|
12797
|
+
};
|
|
12669
12798
|
const deserializeAws_restJson1SecurityProfileSummary = (output, context) => {
|
|
12670
12799
|
return {
|
|
12671
12800
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
package/dist-es/Connect.js
CHANGED
|
@@ -103,6 +103,7 @@ import { PutUserStatusCommand, } from "./commands/PutUserStatusCommand";
|
|
|
103
103
|
import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
|
|
104
104
|
import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
|
|
105
105
|
import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
|
|
106
|
+
import { SearchSecurityProfilesCommand, } from "./commands/SearchSecurityProfilesCommand";
|
|
106
107
|
import { SearchUsersCommand } from "./commands/SearchUsersCommand";
|
|
107
108
|
import { SearchVocabulariesCommand, } from "./commands/SearchVocabulariesCommand";
|
|
108
109
|
import { StartChatContactCommand, } from "./commands/StartChatContactCommand";
|
|
@@ -1612,6 +1613,20 @@ var Connect = (function (_super) {
|
|
|
1612
1613
|
return this.send(command, optionsOrCb);
|
|
1613
1614
|
}
|
|
1614
1615
|
};
|
|
1616
|
+
Connect.prototype.searchSecurityProfiles = function (args, optionsOrCb, cb) {
|
|
1617
|
+
var command = new SearchSecurityProfilesCommand(args);
|
|
1618
|
+
if (typeof optionsOrCb === "function") {
|
|
1619
|
+
this.send(command, optionsOrCb);
|
|
1620
|
+
}
|
|
1621
|
+
else if (typeof cb === "function") {
|
|
1622
|
+
if (typeof optionsOrCb !== "object")
|
|
1623
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1624
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1625
|
+
}
|
|
1626
|
+
else {
|
|
1627
|
+
return this.send(command, optionsOrCb);
|
|
1628
|
+
}
|
|
1629
|
+
};
|
|
1615
1630
|
Connect.prototype.searchUsers = function (args, optionsOrCb, cb) {
|
|
1616
1631
|
var command = new SearchUsersCommand(args);
|
|
1617
1632
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { SearchSecurityProfilesRequestFilterSensitiveLog, SearchSecurityProfilesResponseFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restJson1SearchSecurityProfilesCommand, serializeAws_restJson1SearchSecurityProfilesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var SearchSecurityProfilesCommand = (function (_super) {
|
|
7
|
+
__extends(SearchSecurityProfilesCommand, _super);
|
|
8
|
+
function SearchSecurityProfilesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
SearchSecurityProfilesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConnectClient";
|
|
18
|
+
var commandName = "SearchSecurityProfilesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: SearchSecurityProfilesRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: SearchSecurityProfilesResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
SearchSecurityProfilesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1SearchSecurityProfilesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
SearchSecurityProfilesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1SearchSecurityProfilesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return SearchSecurityProfilesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SearchSecurityProfilesCommand };
|
|
@@ -102,6 +102,7 @@ export * from "./PutUserStatusCommand";
|
|
|
102
102
|
export * from "./ReleasePhoneNumberCommand";
|
|
103
103
|
export * from "./ResumeContactRecordingCommand";
|
|
104
104
|
export * from "./SearchAvailablePhoneNumbersCommand";
|
|
105
|
+
export * from "./SearchSecurityProfilesCommand";
|
|
105
106
|
export * from "./SearchUsersCommand";
|
|
106
107
|
export * from "./SearchVocabulariesCommand";
|
|
107
108
|
export * from "./StartChatContactCommand";
|