Skip to content

Commit 9a021ff

Browse files
author
awstools
committed
feat(client-connect): This release adds SearchSecurityProfiles API which can be used to search for Security Profile resources within a Connect Instance.
1 parent d8ee980 commit 9a021ff

34 files changed

+1108
-392
lines changed

clients/client-connect/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Service Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
2020
<p>You can connect programmatically to an Amazon Web Services service by using an endpoint. For
2121
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>
2222
<note>
23-
<p>Working with contact flows? Check out the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect Flow language</a>.</p>
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>
2424
</note>
2525

2626
## Installing

clients/client-connect/src/Connect.ts

Lines changed: 76 additions & 46 deletions
Large diffs are not rendered by default.

clients/client-connect/src/ConnectClient.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ import {
331331
SearchAvailablePhoneNumbersCommandInput,
332332
SearchAvailablePhoneNumbersCommandOutput,
333333
} from "./commands/SearchAvailablePhoneNumbersCommand";
334+
import {
335+
SearchSecurityProfilesCommandInput,
336+
SearchSecurityProfilesCommandOutput,
337+
} from "./commands/SearchSecurityProfilesCommand";
334338
import { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
335339
import { SearchVocabulariesCommandInput, SearchVocabulariesCommandOutput } from "./commands/SearchVocabulariesCommand";
336340
import { StartChatContactCommandInput, StartChatContactCommandOutput } from "./commands/StartChatContactCommand";
@@ -584,6 +588,7 @@ export type ServiceInputTypes =
584588
| ReleasePhoneNumberCommandInput
585589
| ResumeContactRecordingCommandInput
586590
| SearchAvailablePhoneNumbersCommandInput
591+
| SearchSecurityProfilesCommandInput
587592
| SearchUsersCommandInput
588593
| SearchVocabulariesCommandInput
589594
| StartChatContactCommandInput
@@ -737,6 +742,7 @@ export type ServiceOutputTypes =
737742
| ReleasePhoneNumberCommandOutput
738743
| ResumeContactRecordingCommandOutput
739744
| SearchAvailablePhoneNumbersCommandOutput
745+
| SearchSecurityProfilesCommandOutput
740746
| SearchUsersCommandOutput
741747
| SearchVocabulariesCommandOutput
742748
| StartChatContactCommandOutput
@@ -950,7 +956,7 @@ export interface ConnectClientResolvedConfig extends ConnectClientResolvedConfig
950956
* <p>You can connect programmatically to an Amazon Web Services service by using an endpoint. For
951957
* 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>
952958
* <note>
953-
* <p>Working with contact flows? Check out the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect Flow language</a>.</p>
959+
* <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>
954960
* </note>
955961
*/
956962
export class ConnectClient extends __Client<

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface AssociatePhoneNumberContactFlowCommandInput extends AssociatePh
2626
export interface AssociatePhoneNumberContactFlowCommandOutput extends __MetadataBearer {}
2727

2828
/**
29-
* <p>Associates a contact flow with a phone number claimed to your Amazon Connect instance.</p>
29+
* <p>Associates a flow with a phone number claimed to your Amazon Connect instance.</p>
3030
* @example
3131
* Use a bare-bones client and the command you need to make an API call.
3232
* ```javascript

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export interface CreateContactFlowCommandInput extends CreateContactFlowRequest
2828
export interface CreateContactFlowCommandOutput extends CreateContactFlowResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Creates a contact flow for the specified Amazon Connect instance.</p>
32-
* <p>You can also create and update contact flows using the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect
31+
* <p>Creates a flow for the specified Amazon Connect instance.</p>
32+
* <p>You can also create and update flows using the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect
3333
* Flow language</a>.</p>
3434
* @example
3535
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface CreateContactFlowModuleCommandInput extends CreateContactFlowMo
2828
export interface CreateContactFlowModuleCommandOutput extends CreateContactFlowModuleResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Creates a contact flow module for the specified Amazon Connect instance. </p>
31+
* <p>Creates a flow module for the specified Amazon Connect instance. </p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface DeleteContactFlowCommandInput extends DeleteContactFlowRequest
2323
export interface DeleteContactFlowCommandOutput extends __MetadataBearer {}
2424

2525
/**
26-
* <p>Deletes a contact flow for the specified Amazon Connect instance.</p>
26+
* <p>Deletes a flow for the specified Amazon Connect instance.</p>
2727
* @example
2828
* Use a bare-bones client and the command you need to make an API call.
2929
* ```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface DeleteContactFlowModuleCommandInput extends DeleteContactFlowMo
2828
export interface DeleteContactFlowModuleCommandOutput extends DeleteContactFlowModuleResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Deletes the specified contact flow module.</p>
31+
* <p>Deletes the specified flow module.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export interface DescribeContactFlowCommandInput extends DescribeContactFlowRequ
2828
export interface DescribeContactFlowCommandOutput extends DescribeContactFlowResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Describes the specified contact flow.</p>
32-
* <p>You can also create and update contact flows using the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect
31+
* <p>Describes the specified flow.</p>
32+
* <p>You can also create and update flows using the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect
3333
* Flow language</a>.</p>
3434
* @example
3535
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface DescribeContactFlowModuleCommandInput extends DescribeContactFl
2828
export interface DescribeContactFlowModuleCommandOutput extends DescribeContactFlowModuleResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Describes the specified contact flow module.</p>
31+
* <p>Describes the specified flow module.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DisassociateLambdaFunctionCommandOutput extends __MetadataBeare
2727

2828
/**
2929
* <p>This API is in preview release for Amazon Connect and is subject to change.</p>
30-
* <p>Remove the Lambda function from the dropdown options available in the relevant contact flow
30+
* <p>Remove the Lambda function from the dropdown options available in the relevant flow
3131
* blocks.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export interface DisassociatePhoneNumberContactFlowCommandInput extends Disassoc
2626
export interface DisassociatePhoneNumberContactFlowCommandOutput extends __MetadataBearer {}
2727

2828
/**
29-
* <p>Removes the contact flow association from a phone number claimed to your Amazon Connect instance, if
30-
* a contact flow association exists.</p>
29+
* <p>Removes the flow association from a phone number claimed to your Amazon Connect instance, if
30+
* a flow association exists.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ListContactFlowModulesCommandInput extends ListContactFlowModul
2828
export interface ListContactFlowModulesCommandOutput extends ListContactFlowModulesResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Provides information about the contact flow modules for the specified Amazon Connect instance.</p>
31+
* <p>Provides information about the flow modules for the specified Amazon Connect instance.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export interface ListContactFlowsCommandInput extends ListContactFlowsRequest {}
2828
export interface ListContactFlowsCommandOutput extends ListContactFlowsResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Provides information about the contact flows for the specified Amazon Connect instance.</p>
32-
* <p>You can also create and update contact flows using the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect
31+
* <p>Provides information about the flows for the specified Amazon Connect instance.</p>
32+
* <p>You can also create and update flows using the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect
3333
* Flow language</a>.</p>
34-
* <p>For more information about contact flows, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/concepts-contact-flows.html">Contact Flows</a> in the
34+
* <p>For more information about flows, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/concepts-contact-flows.html">Flows</a> in the
3535
* <i>Amazon Connect Administrator Guide</i>.</p>
3636
* @example
3737
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface ListLambdaFunctionsCommandOutput extends ListLambdaFunctionsRes
3030
/**
3131
* <p>This API is in preview release for Amazon Connect and is subject to change.</p>
3232
* <p>Returns a paginated list of all Lambda functions that display in the dropdown options in the
33-
* relevant contact flow blocks.</p>
33+
* relevant flow blocks.</p>
3434
* @example
3535
* Use a bare-bones client and the command you need to make an API call.
3636
* ```javascript
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// smithy-typescript generated code
2+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4+
import { Command as $Command } from "@aws-sdk/smithy-client";
5+
import {
6+
FinalizeHandlerArguments,
7+
Handler,
8+
HandlerExecutionContext,
9+
HttpHandlerOptions as __HttpHandlerOptions,
10+
MetadataBearer as __MetadataBearer,
11+
MiddlewareStack,
12+
SerdeContext as __SerdeContext,
13+
} from "@aws-sdk/types";
14+
15+
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
16+
import {
17+
SearchSecurityProfilesRequest,
18+
SearchSecurityProfilesRequestFilterSensitiveLog,
19+
SearchSecurityProfilesResponse,
20+
SearchSecurityProfilesResponseFilterSensitiveLog,
21+
} from "../models/models_1";
22+
import {
23+
deserializeAws_restJson1SearchSecurityProfilesCommand,
24+
serializeAws_restJson1SearchSecurityProfilesCommand,
25+
} from "../protocols/Aws_restJson1";
26+
27+
export interface SearchSecurityProfilesCommandInput extends SearchSecurityProfilesRequest {}
28+
export interface SearchSecurityProfilesCommandOutput extends SearchSecurityProfilesResponse, __MetadataBearer {}
29+
30+
/**
31+
* <p>This API is in preview release for Amazon Connect and is subject to change.</p>
32+
* <p>Searches security profiles in an Amazon Connect instance, with optional filtering.</p>
33+
* @example
34+
* Use a bare-bones client and the command you need to make an API call.
35+
* ```javascript
36+
* import { ConnectClient, SearchSecurityProfilesCommand } from "@aws-sdk/client-connect"; // ES Modules import
37+
* // const { ConnectClient, SearchSecurityProfilesCommand } = require("@aws-sdk/client-connect"); // CommonJS import
38+
* const client = new ConnectClient(config);
39+
* const command = new SearchSecurityProfilesCommand(input);
40+
* const response = await client.send(command);
41+
* ```
42+
*
43+
* @see {@link SearchSecurityProfilesCommandInput} for command's `input` shape.
44+
* @see {@link SearchSecurityProfilesCommandOutput} for command's `response` shape.
45+
* @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
46+
*
47+
*/
48+
export class SearchSecurityProfilesCommand extends $Command<
49+
SearchSecurityProfilesCommandInput,
50+
SearchSecurityProfilesCommandOutput,
51+
ConnectClientResolvedConfig
52+
> {
53+
// Start section: command_properties
54+
// End section: command_properties
55+
56+
constructor(readonly input: SearchSecurityProfilesCommandInput) {
57+
// Start section: command_constructor
58+
super();
59+
// End section: command_constructor
60+
}
61+
62+
/**
63+
* @internal
64+
*/
65+
resolveMiddleware(
66+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67+
configuration: ConnectClientResolvedConfig,
68+
options?: __HttpHandlerOptions
69+
): Handler<SearchSecurityProfilesCommandInput, SearchSecurityProfilesCommandOutput> {
70+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71+
72+
const stack = clientStack.concat(this.middlewareStack);
73+
74+
const { logger } = configuration;
75+
const clientName = "ConnectClient";
76+
const commandName = "SearchSecurityProfilesCommand";
77+
const handlerExecutionContext: HandlerExecutionContext = {
78+
logger,
79+
clientName,
80+
commandName,
81+
inputFilterSensitiveLog: SearchSecurityProfilesRequestFilterSensitiveLog,
82+
outputFilterSensitiveLog: SearchSecurityProfilesResponseFilterSensitiveLog,
83+
};
84+
const { requestHandler } = configuration;
85+
return stack.resolve(
86+
(request: FinalizeHandlerArguments<any>) =>
87+
requestHandler.handle(request.request as __HttpRequest, options || {}),
88+
handlerExecutionContext
89+
);
90+
}
91+
92+
private serialize(input: SearchSecurityProfilesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93+
return serializeAws_restJson1SearchSecurityProfilesCommand(input, context);
94+
}
95+
96+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SearchSecurityProfilesCommandOutput> {
97+
return deserializeAws_restJson1SearchSecurityProfilesCommand(output, context);
98+
}
99+
100+
// Start section: command_body_extra
101+
// End section: command_body_extra
102+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface StartChatContactCommandInput extends StartChatContactRequest {}
2828
export interface StartChatContactCommandOutput extends StartChatContactResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Initiates a contact flow to start a new chat for the customer. Response of this API provides
31+
* <p>Initiates a flow to start a new chat for the customer. Response of this API provides
3232
* a token required to obtain credentials from the <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> API in the Amazon Connect Participant Service.</p>
3333
*
3434
* <p>When a new chat contact is successfully created, clients must subscribe to the participant’s

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ export interface StartOutboundVoiceContactCommandInput extends StartOutboundVoic
2828
export interface StartOutboundVoiceContactCommandOutput extends StartOutboundVoiceContactResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Places an outbound call to a contact, and then initiates the contact flow. It performs the
32-
* actions in the contact flow that's specified (in <code>ContactFlowId</code>).</p>
31+
* <p>Places an outbound call to a contact, and then initiates the flow. It performs the
32+
* actions in the flow that's specified (in <code>ContactFlowId</code>).</p>
3333
*
3434
* <p>Agents do not initiate the outbound API, which means that they do not dial the contact. If
35-
* the contact flow places an outbound call to a contact, and then puts the contact in queue, the
35+
* the flow places an outbound call to a contact, and then puts the contact in queue, the
3636
* call is then routed to the agent, like any other inbound case.</p>
3737
*
3838
* <p>There is a 60-second dialing timeout for this operation. If the call is not connected after
@@ -45,8 +45,8 @@ export interface StartOutboundVoiceContactCommandOutput extends StartOutboundVoi
4545
* <note>
4646
* <p>Campaign calls are not allowed by default. Before you can make a call with
4747
* <code>TrafficType</code> = <code>CAMPAIGN</code>, you must submit a service quota increase
48-
* request. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service Quotas</a>
49-
* in the <i>Amazon Connect Administrator Guide</i>. </p>
48+
* request to the quota <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#outbound-communications-quotas">Amazon Connect campaigns</a>.
49+
* </p>
5050
* </note>
5151
* @example
5252
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface StartTaskContactCommandInput extends StartTaskContactRequest {}
2828
export interface StartTaskContactCommandOutput extends StartTaskContactResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Initiates a contact flow to start a new task.</p>
31+
* <p>Initiates a flow to start a new task.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export interface TagResourceCommandOutput extends __MetadataBearer {}
2424

2525
/**
2626
* <p>Adds the specified tags to the specified resource.</p>
27-
* <p>The supported resource types are users, routing profiles, queues, quick connects, contact
28-
* flows, agent status, hours of operation, phone number, security profiles, and task
29-
* templates.</p>
27+
* <p>Some of the supported resource types are agents, routing profiles, queues, quick connects, contact
28+
* flows, agent statuses, hours of operation, phone numbers, security profiles, and task
29+
* templates. For a complete list, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/tagging.html">Tagging resources in Amazon Connect</a>.</p>
3030
* <p>For sample policies that use tags, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html">Amazon Connect Identity-Based
3131
* Policy Examples</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
3232
* @example

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface TransferContactCommandOutput extends TransferContactResponse, _
2929

3030
/**
3131
* <p>Transfers contacts from one agent or queue to another agent or queue at any point after a
32-
* contact is created. You can transfer a contact to another queue by providing the contact flow
32+
* contact is created. You can transfer a contact to another queue by providing the flow
3333
* which orchestrates the contact to the destination queue. This gives you more control over contact
3434
* handling and helps you adhere to the service level agreement (SLA) guaranteed to your
3535
* customers.</p>
@@ -42,7 +42,7 @@ export interface TransferContactCommandOutput extends TransferContactResponse, _
4242
* <p>Do not use both <code>QueueId</code> and <code>UserId</code> in the same call.</p>
4343
* </li>
4444
* <li>
45-
* <p>The following contact flow types are supported: Inbound contact flow, Transfer to agent
45+
* <p>The following flow types are supported: Inbound flow, Transfer to agent
4646
* flow, and Transfer to queue flow.</p>
4747
* </li>
4848
* <li>

0 commit comments

Comments
 (0)