@aws-sdk/client-connect 3.418.0 → 3.420.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 +8 -0
- package/dist-cjs/Connect.js +2 -0
- package/dist-cjs/commands/ListSecurityProfileApplicationsCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/pagination/ListSecurityProfileApplicationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +80 -7
- package/dist-es/Connect.js +2 -0
- package/dist-es/commands/ListSecurityProfileApplicationsCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/ListSecurityProfileApplicationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +71 -0
- package/dist-types/Connect.d.ts +7 -0
- package/dist-types/ConnectClient.d.ts +3 -2
- package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
- package/dist-types/commands/CreateSecurityProfileCommand.d.ts +8 -0
- package/dist-types/commands/DescribeVocabularyCommand.d.ts +1 -2
- package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +2 -2
- package/dist-types/commands/ListPhoneNumbersCommand.d.ts +3 -2
- package/dist-types/commands/ListSecurityProfileApplicationsCommand.d.ts +99 -0
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePromptCommand.d.ts +1 -2
- package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +8 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +42 -18
- package/dist-types/models/models_1.d.ts +64 -69
- package/dist-types/models/models_2.d.ts +75 -1
- package/dist-types/pagination/ListSecurityProfileApplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- 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/DescribeVocabularyCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListSecurityProfileApplicationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePhoneNumberCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +6 -4
- package/dist-types/ts3.4/models/models_1.d.ts +15 -16
- package/dist-types/ts3.4/models/models_2.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListSecurityProfileApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1228,6 +1228,14 @@ ListSecurityKeys
|
|
|
1228
1228
|
|
|
1229
1229
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/listsecuritykeyscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listsecuritykeyscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listsecuritykeyscommandoutput.html)
|
|
1230
1230
|
|
|
1231
|
+
</details>
|
|
1232
|
+
<details>
|
|
1233
|
+
<summary>
|
|
1234
|
+
ListSecurityProfileApplications
|
|
1235
|
+
</summary>
|
|
1236
|
+
|
|
1237
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/listsecurityprofileapplicationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listsecurityprofileapplicationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listsecurityprofileapplicationscommandoutput.html)
|
|
1238
|
+
|
|
1231
1239
|
</details>
|
|
1232
1240
|
<details>
|
|
1233
1241
|
<summary>
|
package/dist-cjs/Connect.js
CHANGED
|
@@ -129,6 +129,7 @@ const ListRoutingProfileQueuesCommand_1 = require("./commands/ListRoutingProfile
|
|
|
129
129
|
const ListRoutingProfilesCommand_1 = require("./commands/ListRoutingProfilesCommand");
|
|
130
130
|
const ListRulesCommand_1 = require("./commands/ListRulesCommand");
|
|
131
131
|
const ListSecurityKeysCommand_1 = require("./commands/ListSecurityKeysCommand");
|
|
132
|
+
const ListSecurityProfileApplicationsCommand_1 = require("./commands/ListSecurityProfileApplicationsCommand");
|
|
132
133
|
const ListSecurityProfilePermissionsCommand_1 = require("./commands/ListSecurityProfilePermissionsCommand");
|
|
133
134
|
const ListSecurityProfilesCommand_1 = require("./commands/ListSecurityProfilesCommand");
|
|
134
135
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
@@ -340,6 +341,7 @@ const commands = {
|
|
|
340
341
|
ListRoutingProfilesCommand: ListRoutingProfilesCommand_1.ListRoutingProfilesCommand,
|
|
341
342
|
ListRulesCommand: ListRulesCommand_1.ListRulesCommand,
|
|
342
343
|
ListSecurityKeysCommand: ListSecurityKeysCommand_1.ListSecurityKeysCommand,
|
|
344
|
+
ListSecurityProfileApplicationsCommand: ListSecurityProfileApplicationsCommand_1.ListSecurityProfileApplicationsCommand,
|
|
343
345
|
ListSecurityProfilePermissionsCommand: ListSecurityProfilePermissionsCommand_1.ListSecurityProfilePermissionsCommand,
|
|
344
346
|
ListSecurityProfilesCommand: ListSecurityProfilesCommand_1.ListSecurityProfilesCommand,
|
|
345
347
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSecurityProfileApplicationsCommand = 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 ListSecurityProfileApplicationsCommand 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, ListSecurityProfileApplicationsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "ConnectClient";
|
|
29
|
+
const commandName = "ListSecurityProfileApplicationsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonConnectService",
|
|
38
|
+
operation: "ListSecurityProfileApplications",
|
|
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_ListSecurityProfileApplicationsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_ListSecurityProfileApplicationsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ListSecurityProfileApplicationsCommand = ListSecurityProfileApplicationsCommand;
|
|
@@ -128,6 +128,7 @@ tslib_1.__exportStar(require("./ListRoutingProfileQueuesCommand"), exports);
|
|
|
128
128
|
tslib_1.__exportStar(require("./ListRoutingProfilesCommand"), exports);
|
|
129
129
|
tslib_1.__exportStar(require("./ListRulesCommand"), exports);
|
|
130
130
|
tslib_1.__exportStar(require("./ListSecurityKeysCommand"), exports);
|
|
131
|
+
tslib_1.__exportStar(require("./ListSecurityProfileApplicationsCommand"), exports);
|
|
131
132
|
tslib_1.__exportStar(require("./ListSecurityProfilePermissionsCommand"), exports);
|
|
132
133
|
tslib_1.__exportStar(require("./ListSecurityProfilesCommand"), exports);
|
|
133
134
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListSecurityProfileApplications = void 0;
|
|
4
|
+
const ListSecurityProfileApplicationsCommand_1 = require("../commands/ListSecurityProfileApplicationsCommand");
|
|
5
|
+
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListSecurityProfileApplicationsCommand_1.ListSecurityProfileApplicationsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListSecurityProfileApplications(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListSecurityProfileApplications = paginateListSecurityProfileApplications;
|
|
@@ -33,6 +33,7 @@ tslib_1.__exportStar(require("./ListRoutingProfileQueuesPaginator"), exports);
|
|
|
33
33
|
tslib_1.__exportStar(require("./ListRoutingProfilesPaginator"), exports);
|
|
34
34
|
tslib_1.__exportStar(require("./ListRulesPaginator"), exports);
|
|
35
35
|
tslib_1.__exportStar(require("./ListSecurityKeysPaginator"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListSecurityProfileApplicationsPaginator"), exports);
|
|
36
37
|
tslib_1.__exportStar(require("./ListSecurityProfilePermissionsPaginator"), exports);
|
|
37
38
|
tslib_1.__exportStar(require("./ListSecurityProfilesPaginator"), exports);
|
|
38
39
|
tslib_1.__exportStar(require("./ListTaskTemplatesPaginator"), exports);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
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
|
-
exports.
|
|
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 = void 0;
|
|
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.se_UpdateTaskTemplateCommand = 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_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_DeleteEvaluationFormCommand = 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 = void 0;
|
|
8
|
+
exports.de_DisassociateTrafficDistributionGroupUserCommand = 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 = void 0;
|
|
9
|
+
exports.de_MonitorContactCommand = 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 = void 0;
|
|
10
|
+
exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePromptCommand = 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 = 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 = void 0;
|
|
12
12
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
13
13
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
14
|
const uuid_1 = require("uuid");
|
|
@@ -670,6 +670,7 @@ const se_CreateSecurityProfileCommand = async (input, context) => {
|
|
|
670
670
|
let body;
|
|
671
671
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
672
672
|
AllowedAccessControlTags: (_) => (0, smithy_client_1._json)(_),
|
|
673
|
+
Applications: (_) => (0, smithy_client_1._json)(_),
|
|
673
674
|
Description: [],
|
|
674
675
|
Permissions: (_) => (0, smithy_client_1._json)(_),
|
|
675
676
|
SecurityProfileName: [],
|
|
@@ -2834,6 +2835,30 @@ const se_ListSecurityKeysCommand = async (input, context) => {
|
|
|
2834
2835
|
});
|
|
2835
2836
|
};
|
|
2836
2837
|
exports.se_ListSecurityKeysCommand = se_ListSecurityKeysCommand;
|
|
2838
|
+
const se_ListSecurityProfileApplicationsCommand = async (input, context) => {
|
|
2839
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2840
|
+
const headers = {};
|
|
2841
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2842
|
+
"/security-profiles-applications/{InstanceId}/{SecurityProfileId}";
|
|
2843
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SecurityProfileId", () => input.SecurityProfileId, "{SecurityProfileId}", false);
|
|
2844
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
2845
|
+
const query = (0, smithy_client_1.map)({
|
|
2846
|
+
nextToken: [, input.NextToken],
|
|
2847
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
2848
|
+
});
|
|
2849
|
+
let body;
|
|
2850
|
+
return new protocol_http_1.HttpRequest({
|
|
2851
|
+
protocol,
|
|
2852
|
+
hostname,
|
|
2853
|
+
port,
|
|
2854
|
+
method: "GET",
|
|
2855
|
+
headers,
|
|
2856
|
+
path: resolvedPath,
|
|
2857
|
+
query,
|
|
2858
|
+
body,
|
|
2859
|
+
});
|
|
2860
|
+
};
|
|
2861
|
+
exports.se_ListSecurityProfileApplicationsCommand = se_ListSecurityProfileApplicationsCommand;
|
|
2837
2862
|
const se_ListSecurityProfilePermissionsCommand = async (input, context) => {
|
|
2838
2863
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2839
2864
|
const headers = {};
|
|
@@ -4558,6 +4583,7 @@ const se_UpdateSecurityProfileCommand = async (input, context) => {
|
|
|
4558
4583
|
let body;
|
|
4559
4584
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
4560
4585
|
AllowedAccessControlTags: (_) => (0, smithy_client_1._json)(_),
|
|
4586
|
+
Applications: (_) => (0, smithy_client_1._json)(_),
|
|
4561
4587
|
Description: [],
|
|
4562
4588
|
Permissions: (_) => (0, smithy_client_1._json)(_),
|
|
4563
4589
|
TagRestrictedResources: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -10765,6 +10791,53 @@ const de_ListSecurityKeysCommandError = async (output, context) => {
|
|
|
10765
10791
|
});
|
|
10766
10792
|
}
|
|
10767
10793
|
};
|
|
10794
|
+
const de_ListSecurityProfileApplicationsCommand = async (output, context) => {
|
|
10795
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10796
|
+
return de_ListSecurityProfileApplicationsCommandError(output, context);
|
|
10797
|
+
}
|
|
10798
|
+
const contents = (0, smithy_client_1.map)({
|
|
10799
|
+
$metadata: deserializeMetadata(output),
|
|
10800
|
+
});
|
|
10801
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
10802
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
10803
|
+
Applications: smithy_client_1._json,
|
|
10804
|
+
NextToken: smithy_client_1.expectString,
|
|
10805
|
+
});
|
|
10806
|
+
Object.assign(contents, doc);
|
|
10807
|
+
return contents;
|
|
10808
|
+
};
|
|
10809
|
+
exports.de_ListSecurityProfileApplicationsCommand = de_ListSecurityProfileApplicationsCommand;
|
|
10810
|
+
const de_ListSecurityProfileApplicationsCommandError = async (output, context) => {
|
|
10811
|
+
const parsedOutput = {
|
|
10812
|
+
...output,
|
|
10813
|
+
body: await parseErrorBody(output.body, context),
|
|
10814
|
+
};
|
|
10815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10816
|
+
switch (errorCode) {
|
|
10817
|
+
case "InternalServiceException":
|
|
10818
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10819
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
10820
|
+
case "InvalidParameterException":
|
|
10821
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10822
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
10823
|
+
case "InvalidRequestException":
|
|
10824
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
10825
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
10826
|
+
case "ResourceNotFoundException":
|
|
10827
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10828
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10829
|
+
case "ThrottlingException":
|
|
10830
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10831
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
10832
|
+
default:
|
|
10833
|
+
const parsedBody = parsedOutput.body;
|
|
10834
|
+
return throwDefaultError({
|
|
10835
|
+
output,
|
|
10836
|
+
parsedBody,
|
|
10837
|
+
errorCode,
|
|
10838
|
+
});
|
|
10839
|
+
}
|
|
10840
|
+
};
|
|
10768
10841
|
const de_ListSecurityProfilePermissionsCommand = async (output, context) => {
|
|
10769
10842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10770
10843
|
return de_ListSecurityProfilePermissionsCommandError(output, context);
|
package/dist-es/Connect.js
CHANGED
|
@@ -126,6 +126,7 @@ import { ListRoutingProfileQueuesCommand, } from "./commands/ListRoutingProfileQ
|
|
|
126
126
|
import { ListRoutingProfilesCommand, } from "./commands/ListRoutingProfilesCommand";
|
|
127
127
|
import { ListRulesCommand } from "./commands/ListRulesCommand";
|
|
128
128
|
import { ListSecurityKeysCommand, } from "./commands/ListSecurityKeysCommand";
|
|
129
|
+
import { ListSecurityProfileApplicationsCommand, } from "./commands/ListSecurityProfileApplicationsCommand";
|
|
129
130
|
import { ListSecurityProfilePermissionsCommand, } from "./commands/ListSecurityProfilePermissionsCommand";
|
|
130
131
|
import { ListSecurityProfilesCommand, } from "./commands/ListSecurityProfilesCommand";
|
|
131
132
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
@@ -337,6 +338,7 @@ const commands = {
|
|
|
337
338
|
ListRoutingProfilesCommand,
|
|
338
339
|
ListRulesCommand,
|
|
339
340
|
ListSecurityKeysCommand,
|
|
341
|
+
ListSecurityProfileApplicationsCommand,
|
|
340
342
|
ListSecurityProfilePermissionsCommand,
|
|
341
343
|
ListSecurityProfilesCommand,
|
|
342
344
|
ListTagsForResourceCommand,
|
|
@@ -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_ListSecurityProfileApplicationsCommand, se_ListSecurityProfileApplicationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListSecurityProfileApplicationsCommand 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, ListSecurityProfileApplicationsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ConnectClient";
|
|
26
|
+
const commandName = "ListSecurityProfileApplicationsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonConnectService",
|
|
35
|
+
operation: "ListSecurityProfileApplications",
|
|
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_ListSecurityProfileApplicationsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListSecurityProfileApplicationsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -125,6 +125,7 @@ export * from "./ListRoutingProfileQueuesCommand";
|
|
|
125
125
|
export * from "./ListRoutingProfilesCommand";
|
|
126
126
|
export * from "./ListRulesCommand";
|
|
127
127
|
export * from "./ListSecurityKeysCommand";
|
|
128
|
+
export * from "./ListSecurityProfileApplicationsCommand";
|
|
128
129
|
export * from "./ListSecurityProfilePermissionsCommand";
|
|
129
130
|
export * from "./ListSecurityProfilesCommand";
|
|
130
131
|
export * from "./ListTagsForResourceCommand";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListSecurityProfileApplicationsCommand, } from "../commands/ListSecurityProfileApplicationsCommand";
|
|
2
|
+
import { ConnectClient } from "../ConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListSecurityProfileApplicationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListSecurityProfileApplications(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -30,6 +30,7 @@ export * from "./ListRoutingProfileQueuesPaginator";
|
|
|
30
30
|
export * from "./ListRoutingProfilesPaginator";
|
|
31
31
|
export * from "./ListRulesPaginator";
|
|
32
32
|
export * from "./ListSecurityKeysPaginator";
|
|
33
|
+
export * from "./ListSecurityProfileApplicationsPaginator";
|
|
33
34
|
export * from "./ListSecurityProfilePermissionsPaginator";
|
|
34
35
|
export * from "./ListSecurityProfilesPaginator";
|
|
35
36
|
export * from "./ListTaskTemplatesPaginator";
|
|
@@ -633,6 +633,7 @@ export const se_CreateSecurityProfileCommand = async (input, context) => {
|
|
|
633
633
|
let body;
|
|
634
634
|
body = JSON.stringify(take(input, {
|
|
635
635
|
AllowedAccessControlTags: (_) => _json(_),
|
|
636
|
+
Applications: (_) => _json(_),
|
|
636
637
|
Description: [],
|
|
637
638
|
Permissions: (_) => _json(_),
|
|
638
639
|
SecurityProfileName: [],
|
|
@@ -2696,6 +2697,29 @@ export const se_ListSecurityKeysCommand = async (input, context) => {
|
|
|
2696
2697
|
body,
|
|
2697
2698
|
});
|
|
2698
2699
|
};
|
|
2700
|
+
export const se_ListSecurityProfileApplicationsCommand = async (input, context) => {
|
|
2701
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2702
|
+
const headers = {};
|
|
2703
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2704
|
+
"/security-profiles-applications/{InstanceId}/{SecurityProfileId}";
|
|
2705
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SecurityProfileId", () => input.SecurityProfileId, "{SecurityProfileId}", false);
|
|
2706
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
2707
|
+
const query = map({
|
|
2708
|
+
nextToken: [, input.NextToken],
|
|
2709
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
2710
|
+
});
|
|
2711
|
+
let body;
|
|
2712
|
+
return new __HttpRequest({
|
|
2713
|
+
protocol,
|
|
2714
|
+
hostname,
|
|
2715
|
+
port,
|
|
2716
|
+
method: "GET",
|
|
2717
|
+
headers,
|
|
2718
|
+
path: resolvedPath,
|
|
2719
|
+
query,
|
|
2720
|
+
body,
|
|
2721
|
+
});
|
|
2722
|
+
};
|
|
2699
2723
|
export const se_ListSecurityProfilePermissionsCommand = async (input, context) => {
|
|
2700
2724
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2701
2725
|
const headers = {};
|
|
@@ -4350,6 +4374,7 @@ export const se_UpdateSecurityProfileCommand = async (input, context) => {
|
|
|
4350
4374
|
let body;
|
|
4351
4375
|
body = JSON.stringify(take(input, {
|
|
4352
4376
|
AllowedAccessControlTags: (_) => _json(_),
|
|
4377
|
+
Applications: (_) => _json(_),
|
|
4353
4378
|
Description: [],
|
|
4354
4379
|
Permissions: (_) => _json(_),
|
|
4355
4380
|
TagRestrictedResources: (_) => _json(_),
|
|
@@ -10418,6 +10443,52 @@ const de_ListSecurityKeysCommandError = async (output, context) => {
|
|
|
10418
10443
|
});
|
|
10419
10444
|
}
|
|
10420
10445
|
};
|
|
10446
|
+
export const de_ListSecurityProfileApplicationsCommand = async (output, context) => {
|
|
10447
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10448
|
+
return de_ListSecurityProfileApplicationsCommandError(output, context);
|
|
10449
|
+
}
|
|
10450
|
+
const contents = map({
|
|
10451
|
+
$metadata: deserializeMetadata(output),
|
|
10452
|
+
});
|
|
10453
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
10454
|
+
const doc = take(data, {
|
|
10455
|
+
Applications: _json,
|
|
10456
|
+
NextToken: __expectString,
|
|
10457
|
+
});
|
|
10458
|
+
Object.assign(contents, doc);
|
|
10459
|
+
return contents;
|
|
10460
|
+
};
|
|
10461
|
+
const de_ListSecurityProfileApplicationsCommandError = async (output, context) => {
|
|
10462
|
+
const parsedOutput = {
|
|
10463
|
+
...output,
|
|
10464
|
+
body: await parseErrorBody(output.body, context),
|
|
10465
|
+
};
|
|
10466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10467
|
+
switch (errorCode) {
|
|
10468
|
+
case "InternalServiceException":
|
|
10469
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10470
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
10471
|
+
case "InvalidParameterException":
|
|
10472
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10473
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
10474
|
+
case "InvalidRequestException":
|
|
10475
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
10476
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
10477
|
+
case "ResourceNotFoundException":
|
|
10478
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10479
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10480
|
+
case "ThrottlingException":
|
|
10481
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10482
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
10483
|
+
default:
|
|
10484
|
+
const parsedBody = parsedOutput.body;
|
|
10485
|
+
return throwDefaultError({
|
|
10486
|
+
output,
|
|
10487
|
+
parsedBody,
|
|
10488
|
+
errorCode,
|
|
10489
|
+
});
|
|
10490
|
+
}
|
|
10491
|
+
};
|
|
10421
10492
|
export const de_ListSecurityProfilePermissionsCommand = async (output, context) => {
|
|
10422
10493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10423
10494
|
return de_ListSecurityProfilePermissionsCommandError(output, context);
|
package/dist-types/Connect.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ import { ListRoutingProfileQueuesCommandInput, ListRoutingProfileQueuesCommandOu
|
|
|
126
126
|
import { ListRoutingProfilesCommandInput, ListRoutingProfilesCommandOutput } from "./commands/ListRoutingProfilesCommand";
|
|
127
127
|
import { ListRulesCommandInput, ListRulesCommandOutput } from "./commands/ListRulesCommand";
|
|
128
128
|
import { ListSecurityKeysCommandInput, ListSecurityKeysCommandOutput } from "./commands/ListSecurityKeysCommand";
|
|
129
|
+
import { ListSecurityProfileApplicationsCommandInput, ListSecurityProfileApplicationsCommandOutput } from "./commands/ListSecurityProfileApplicationsCommand";
|
|
129
130
|
import { ListSecurityProfilePermissionsCommandInput, ListSecurityProfilePermissionsCommandOutput } from "./commands/ListSecurityProfilePermissionsCommand";
|
|
130
131
|
import { ListSecurityProfilesCommandInput, ListSecurityProfilesCommandOutput } from "./commands/ListSecurityProfilesCommand";
|
|
131
132
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
@@ -972,6 +973,12 @@ export interface Connect {
|
|
|
972
973
|
listSecurityKeys(args: ListSecurityKeysCommandInput, options?: __HttpHandlerOptions): Promise<ListSecurityKeysCommandOutput>;
|
|
973
974
|
listSecurityKeys(args: ListSecurityKeysCommandInput, cb: (err: any, data?: ListSecurityKeysCommandOutput) => void): void;
|
|
974
975
|
listSecurityKeys(args: ListSecurityKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSecurityKeysCommandOutput) => void): void;
|
|
976
|
+
/**
|
|
977
|
+
* @see {@link ListSecurityProfileApplicationsCommand}
|
|
978
|
+
*/
|
|
979
|
+
listSecurityProfileApplications(args: ListSecurityProfileApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSecurityProfileApplicationsCommandOutput>;
|
|
980
|
+
listSecurityProfileApplications(args: ListSecurityProfileApplicationsCommandInput, cb: (err: any, data?: ListSecurityProfileApplicationsCommandOutput) => void): void;
|
|
981
|
+
listSecurityProfileApplications(args: ListSecurityProfileApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSecurityProfileApplicationsCommandOutput) => void): void;
|
|
975
982
|
/**
|
|
976
983
|
* @see {@link ListSecurityProfilePermissionsCommand}
|
|
977
984
|
*/
|