Skip to content

Commit 970fe06

Browse files
author
awstools
committed
feat(client-connect): This release updates a set of Amazon Connect APIs that provides the ability to integrate third party applications in the Amazon Connect agent workspace.
1 parent ae29e55 commit 970fe06

20 files changed

+807
-115
lines changed

clients/client-connect/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,14 @@ ListSecurityKeys
12281228

12291229
[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)
12301230

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+
12311239
</details>
12321240
<details>
12331241
<summary>

clients/client-connect/src/Connect.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,11 @@ import {
585585
ListSecurityKeysCommandInput,
586586
ListSecurityKeysCommandOutput,
587587
} from "./commands/ListSecurityKeysCommand";
588+
import {
589+
ListSecurityProfileApplicationsCommand,
590+
ListSecurityProfileApplicationsCommandInput,
591+
ListSecurityProfileApplicationsCommandOutput,
592+
} from "./commands/ListSecurityProfileApplicationsCommand";
588593
import {
589594
ListSecurityProfilePermissionsCommand,
590595
ListSecurityProfilePermissionsCommandInput,
@@ -1101,6 +1106,7 @@ const commands = {
11011106
ListRoutingProfilesCommand,
11021107
ListRulesCommand,
11031108
ListSecurityKeysCommand,
1109+
ListSecurityProfileApplicationsCommand,
11041110
ListSecurityProfilePermissionsCommand,
11051111
ListSecurityProfilesCommand,
11061112
ListTagsForResourceCommand,
@@ -3171,6 +3177,23 @@ export interface Connect {
31713177
cb: (err: any, data?: ListSecurityKeysCommandOutput) => void
31723178
): void;
31733179

3180+
/**
3181+
* @see {@link ListSecurityProfileApplicationsCommand}
3182+
*/
3183+
listSecurityProfileApplications(
3184+
args: ListSecurityProfileApplicationsCommandInput,
3185+
options?: __HttpHandlerOptions
3186+
): Promise<ListSecurityProfileApplicationsCommandOutput>;
3187+
listSecurityProfileApplications(
3188+
args: ListSecurityProfileApplicationsCommandInput,
3189+
cb: (err: any, data?: ListSecurityProfileApplicationsCommandOutput) => void
3190+
): void;
3191+
listSecurityProfileApplications(
3192+
args: ListSecurityProfileApplicationsCommandInput,
3193+
options: __HttpHandlerOptions,
3194+
cb: (err: any, data?: ListSecurityProfileApplicationsCommandOutput) => void
3195+
): void;
3196+
31743197
/**
31753198
* @see {@link ListSecurityProfilePermissionsCommand}
31763199
*/

clients/client-connect/src/ConnectClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ import {
384384
} from "./commands/ListRoutingProfilesCommand";
385385
import { ListRulesCommandInput, ListRulesCommandOutput } from "./commands/ListRulesCommand";
386386
import { ListSecurityKeysCommandInput, ListSecurityKeysCommandOutput } from "./commands/ListSecurityKeysCommand";
387+
import {
388+
ListSecurityProfileApplicationsCommandInput,
389+
ListSecurityProfileApplicationsCommandOutput,
390+
} from "./commands/ListSecurityProfileApplicationsCommand";
387391
import {
388392
ListSecurityProfilePermissionsCommandInput,
389393
ListSecurityProfilePermissionsCommandOutput,
@@ -764,6 +768,7 @@ export type ServiceInputTypes =
764768
| ListRoutingProfilesCommandInput
765769
| ListRulesCommandInput
766770
| ListSecurityKeysCommandInput
771+
| ListSecurityProfileApplicationsCommandInput
767772
| ListSecurityProfilePermissionsCommandInput
768773
| ListSecurityProfilesCommandInput
769774
| ListTagsForResourceCommandInput
@@ -978,6 +983,7 @@ export type ServiceOutputTypes =
978983
| ListRoutingProfilesCommandOutput
979984
| ListRulesCommandOutput
980985
| ListSecurityKeysCommandOutput
986+
| ListSecurityProfileApplicationsCommandOutput
981987
| ListSecurityProfilePermissionsCommandOutput
982988
| ListSecurityProfilesCommandOutput
983989
| ListTagsForResourceCommandOutput

clients/client-connect/src/commands/CreateIntegrationAssociationCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface CreateIntegrationAssociationCommandOutput
5252
* const client = new ConnectClient(config);
5353
* const input = { // CreateIntegrationAssociationRequest
5454
* InstanceId: "STRING_VALUE", // required
55-
* IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "CASES_DOMAIN", // required
55+
* IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "CASES_DOMAIN" || "APPLICATION", // required
5656
* IntegrationArn: "STRING_VALUE", // required
5757
* SourceApplicationUrl: "STRING_VALUE",
5858
* SourceApplicationName: "STRING_VALUE",

clients/client-connect/src/commands/CreateSecurityProfileCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ export interface CreateSecurityProfileCommandOutput extends CreateSecurityProfil
6161
* TagRestrictedResources: [ // TagRestrictedResourceList
6262
* "STRING_VALUE",
6363
* ],
64+
* Applications: [ // Applications
65+
* { // Application
66+
* Namespace: "STRING_VALUE",
67+
* ApplicationPermissions: [ // ApplicationPermissions
68+
* "STRING_VALUE",
69+
* ],
70+
* },
71+
* ],
6472
* };
6573
* const command = new CreateSecurityProfileCommand(input);
6674
* const response = await client.send(command);

clients/client-connect/src/commands/DescribeVocabularyCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ import {
1515
} from "@smithy/types";
1616

1717
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
18-
import { DescribeVocabularyRequest } from "../models/models_0";
19-
import { DescribeVocabularyResponse } from "../models/models_1";
18+
import { DescribeVocabularyRequest, DescribeVocabularyResponse } from "../models/models_1";
2019
import { de_DescribeVocabularyCommand, se_DescribeVocabularyCommand } from "../protocols/Aws_restJson1";
2120

2221
/**

clients/client-connect/src/commands/ListIntegrationAssociationsCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface ListIntegrationAssociationsCommandOutput
5252
* const client = new ConnectClient(config);
5353
* const input = { // ListIntegrationAssociationsRequest
5454
* InstanceId: "STRING_VALUE", // required
55-
* IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "CASES_DOMAIN",
55+
* IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "CASES_DOMAIN" || "APPLICATION",
5656
* NextToken: "STRING_VALUE",
5757
* MaxResults: Number("int"),
5858
* };
@@ -64,7 +64,7 @@ export interface ListIntegrationAssociationsCommandOutput
6464
* // IntegrationAssociationId: "STRING_VALUE",
6565
* // IntegrationAssociationArn: "STRING_VALUE",
6666
* // InstanceId: "STRING_VALUE",
67-
* // IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "CASES_DOMAIN",
67+
* // IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "CASES_DOMAIN" || "APPLICATION",
6868
* // IntegrationArn: "STRING_VALUE",
6969
* // SourceApplicationUrl: "STRING_VALUE",
7070
* // SourceApplicationName: "STRING_VALUE",

clients/client-connect/src/commands/ListPhoneNumbersCommand.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ export interface ListPhoneNumbersCommandOutput extends ListPhoneNumbersResponse,
4646
* <li>
4747
* <p>We recommend using <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html">ListPhoneNumbersV2</a> to
4848
* return phone number types. ListPhoneNumbers doesn't support number types <code>UIFN</code>,
49-
* <code>SHARED</code>, <code>THIRD_PARTY_TF</code>, and <code>THIRD_PARTY_DID</code>. While it returns
50-
* numbers of those types, it incorrectly lists them as <code>TOLL_FREE</code> or <code>DID</code>. </p>
49+
* <code>SHARED</code>, <code>THIRD_PARTY_TF</code>, and <code>THIRD_PARTY_DID</code>. While it
50+
* returns numbers of those types, it incorrectly lists them as <code>TOLL_FREE</code> or
51+
* <code>DID</code>. </p>
5152
* </li>
5253
* <li>
5354
* <p>The phone number <code>Arn</code> value that is returned from each of the items in the
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5+
import { Command as $Command } from "@smithy/smithy-client";
6+
import {
7+
FinalizeHandlerArguments,
8+
Handler,
9+
HandlerExecutionContext,
10+
HttpHandlerOptions as __HttpHandlerOptions,
11+
MetadataBearer as __MetadataBearer,
12+
MiddlewareStack,
13+
SerdeContext as __SerdeContext,
14+
SMITHY_CONTEXT_KEY,
15+
} from "@smithy/types";
16+
17+
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
18+
import { ListSecurityProfileApplicationsRequest, ListSecurityProfileApplicationsResponse } from "../models/models_1";
19+
import {
20+
de_ListSecurityProfileApplicationsCommand,
21+
se_ListSecurityProfileApplicationsCommand,
22+
} from "../protocols/Aws_restJson1";
23+
24+
/**
25+
* @public
26+
*/
27+
export { __MetadataBearer, $Command };
28+
/**
29+
* @public
30+
*
31+
* The input for {@link ListSecurityProfileApplicationsCommand}.
32+
*/
33+
export interface ListSecurityProfileApplicationsCommandInput extends ListSecurityProfileApplicationsRequest {}
34+
/**
35+
* @public
36+
*
37+
* The output of {@link ListSecurityProfileApplicationsCommand}.
38+
*/
39+
export interface ListSecurityProfileApplicationsCommandOutput
40+
extends ListSecurityProfileApplicationsResponse,
41+
__MetadataBearer {}
42+
43+
/**
44+
* @public
45+
* <p>Returns a list of third party applications in a specific security profile.</p>
46+
* @example
47+
* Use a bare-bones client and the command you need to make an API call.
48+
* ```javascript
49+
* import { ConnectClient, ListSecurityProfileApplicationsCommand } from "@aws-sdk/client-connect"; // ES Modules import
50+
* // const { ConnectClient, ListSecurityProfileApplicationsCommand } = require("@aws-sdk/client-connect"); // CommonJS import
51+
* const client = new ConnectClient(config);
52+
* const input = { // ListSecurityProfileApplicationsRequest
53+
* SecurityProfileId: "STRING_VALUE", // required
54+
* InstanceId: "STRING_VALUE", // required
55+
* NextToken: "STRING_VALUE",
56+
* MaxResults: Number("int"),
57+
* };
58+
* const command = new ListSecurityProfileApplicationsCommand(input);
59+
* const response = await client.send(command);
60+
* // { // ListSecurityProfileApplicationsResponse
61+
* // Applications: [ // Applications
62+
* // { // Application
63+
* // Namespace: "STRING_VALUE",
64+
* // ApplicationPermissions: [ // ApplicationPermissions
65+
* // "STRING_VALUE",
66+
* // ],
67+
* // },
68+
* // ],
69+
* // NextToken: "STRING_VALUE",
70+
* // };
71+
*
72+
* ```
73+
*
74+
* @param ListSecurityProfileApplicationsCommandInput - {@link ListSecurityProfileApplicationsCommandInput}
75+
* @returns {@link ListSecurityProfileApplicationsCommandOutput}
76+
* @see {@link ListSecurityProfileApplicationsCommandInput} for command's `input` shape.
77+
* @see {@link ListSecurityProfileApplicationsCommandOutput} for command's `response` shape.
78+
* @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
79+
*
80+
* @throws {@link InternalServiceException} (server fault)
81+
* <p>Request processing failed because of an error or failure with the service.</p>
82+
*
83+
* @throws {@link InvalidParameterException} (client fault)
84+
* <p>One or more of the specified parameters are not valid.</p>
85+
*
86+
* @throws {@link InvalidRequestException} (client fault)
87+
* <p>The request is not valid.</p>
88+
*
89+
* @throws {@link ResourceNotFoundException} (client fault)
90+
* <p>The specified resource was not found.</p>
91+
*
92+
* @throws {@link ThrottlingException} (client fault)
93+
* <p>The throttling limit has been exceeded.</p>
94+
*
95+
* @throws {@link ConnectServiceException}
96+
* <p>Base exception class for all service exceptions from Connect service.</p>
97+
*
98+
*/
99+
export class ListSecurityProfileApplicationsCommand extends $Command<
100+
ListSecurityProfileApplicationsCommandInput,
101+
ListSecurityProfileApplicationsCommandOutput,
102+
ConnectClientResolvedConfig
103+
> {
104+
// Start section: command_properties
105+
// End section: command_properties
106+
107+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
108+
return {
109+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
110+
Endpoint: { type: "builtInParams", name: "endpoint" },
111+
Region: { type: "builtInParams", name: "region" },
112+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
113+
};
114+
}
115+
116+
/**
117+
* @public
118+
*/
119+
constructor(readonly input: ListSecurityProfileApplicationsCommandInput) {
120+
// Start section: command_constructor
121+
super();
122+
// End section: command_constructor
123+
}
124+
125+
/**
126+
* @internal
127+
*/
128+
resolveMiddleware(
129+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
130+
configuration: ConnectClientResolvedConfig,
131+
options?: __HttpHandlerOptions
132+
): Handler<ListSecurityProfileApplicationsCommandInput, ListSecurityProfileApplicationsCommandOutput> {
133+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
134+
this.middlewareStack.use(
135+
getEndpointPlugin(configuration, ListSecurityProfileApplicationsCommand.getEndpointParameterInstructions())
136+
);
137+
138+
const stack = clientStack.concat(this.middlewareStack);
139+
140+
const { logger } = configuration;
141+
const clientName = "ConnectClient";
142+
const commandName = "ListSecurityProfileApplicationsCommand";
143+
const handlerExecutionContext: HandlerExecutionContext = {
144+
logger,
145+
clientName,
146+
commandName,
147+
inputFilterSensitiveLog: (_: any) => _,
148+
outputFilterSensitiveLog: (_: any) => _,
149+
[SMITHY_CONTEXT_KEY]: {
150+
service: "AmazonConnectService",
151+
operation: "ListSecurityProfileApplications",
152+
},
153+
};
154+
const { requestHandler } = configuration;
155+
return stack.resolve(
156+
(request: FinalizeHandlerArguments<any>) =>
157+
requestHandler.handle(request.request as __HttpRequest, options || {}),
158+
handlerExecutionContext
159+
);
160+
}
161+
162+
/**
163+
* @internal
164+
*/
165+
private serialize(
166+
input: ListSecurityProfileApplicationsCommandInput,
167+
context: __SerdeContext
168+
): Promise<__HttpRequest> {
169+
return se_ListSecurityProfileApplicationsCommand(input, context);
170+
}
171+
172+
/**
173+
* @internal
174+
*/
175+
private deserialize(
176+
output: __HttpResponse,
177+
context: __SerdeContext
178+
): Promise<ListSecurityProfileApplicationsCommandOutput> {
179+
return de_ListSecurityProfileApplicationsCommand(output, context);
180+
}
181+
182+
// Start section: command_body_extra
183+
// End section: command_body_extra
184+
}

clients/client-connect/src/commands/UpdatePhoneNumberCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@smithy/types";
1616

1717
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
18-
import { UpdatePhoneNumberRequest, UpdatePhoneNumberResponse } from "../models/models_1";
18+
import { UpdatePhoneNumberRequest, UpdatePhoneNumberResponse } from "../models/models_2";
1919
import { de_UpdatePhoneNumberCommand, se_UpdatePhoneNumberCommand } from "../protocols/Aws_restJson1";
2020

2121
/**

clients/client-connect/src/commands/UpdatePromptCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ import {
1515
} from "@smithy/types";
1616

1717
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
18-
import { UpdatePromptRequest } from "../models/models_1";
19-
import { UpdatePromptResponse } from "../models/models_2";
18+
import { UpdatePromptRequest, UpdatePromptResponse } from "../models/models_2";
2019
import { de_UpdatePromptCommand, se_UpdatePromptCommand } from "../protocols/Aws_restJson1";
2120

2221
/**

clients/client-connect/src/commands/UpdateSecurityProfileCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ export interface UpdateSecurityProfileCommandOutput extends __MetadataBearer {}
5858
* TagRestrictedResources: [ // TagRestrictedResourceList
5959
* "STRING_VALUE",
6060
* ],
61+
* Applications: [ // Applications
62+
* { // Application
63+
* Namespace: "STRING_VALUE",
64+
* ApplicationPermissions: [ // ApplicationPermissions
65+
* "STRING_VALUE",
66+
* ],
67+
* },
68+
* ],
6169
* };
6270
* const command = new UpdateSecurityProfileCommand(input);
6371
* const response = await client.send(command);

clients/client-connect/src/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export * from "./ListRoutingProfileQueuesCommand";
126126
export * from "./ListRoutingProfilesCommand";
127127
export * from "./ListRulesCommand";
128128
export * from "./ListSecurityKeysCommand";
129+
export * from "./ListSecurityProfileApplicationsCommand";
129130
export * from "./ListSecurityProfilePermissionsCommand";
130131
export * from "./ListSecurityProfilesCommand";
131132
export * from "./ListTagsForResourceCommand";

0 commit comments

Comments
 (0)