UNPKG

59.2 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Connect extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Connect.Types.ClientConfiguration)
13 config: Config & Connect.Types.ClientConfiguration;
14 /**
15 * Creates a new user account in your Amazon Connect instance.
16 */
17 createUser(params: Connect.Types.CreateUserRequest, callback?: (err: AWSError, data: Connect.Types.CreateUserResponse) => void): Request<Connect.Types.CreateUserResponse, AWSError>;
18 /**
19 * Creates a new user account in your Amazon Connect instance.
20 */
21 createUser(callback?: (err: AWSError, data: Connect.Types.CreateUserResponse) => void): Request<Connect.Types.CreateUserResponse, AWSError>;
22 /**
23 * Deletes a user account from Amazon Connect.
24 */
25 deleteUser(params: Connect.Types.DeleteUserRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
26 /**
27 * Deletes a user account from Amazon Connect.
28 */
29 deleteUser(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
30 /**
31 * Returns a User object that contains information about the user account specified by the UserId.
32 */
33 describeUser(params: Connect.Types.DescribeUserRequest, callback?: (err: AWSError, data: Connect.Types.DescribeUserResponse) => void): Request<Connect.Types.DescribeUserResponse, AWSError>;
34 /**
35 * Returns a User object that contains information about the user account specified by the UserId.
36 */
37 describeUser(callback?: (err: AWSError, data: Connect.Types.DescribeUserResponse) => void): Request<Connect.Types.DescribeUserResponse, AWSError>;
38 /**
39 * Returns a HierarchyGroup object that includes information about a hierarchy group in your instance.
40 */
41 describeUserHierarchyGroup(params: Connect.Types.DescribeUserHierarchyGroupRequest, callback?: (err: AWSError, data: Connect.Types.DescribeUserHierarchyGroupResponse) => void): Request<Connect.Types.DescribeUserHierarchyGroupResponse, AWSError>;
42 /**
43 * Returns a HierarchyGroup object that includes information about a hierarchy group in your instance.
44 */
45 describeUserHierarchyGroup(callback?: (err: AWSError, data: Connect.Types.DescribeUserHierarchyGroupResponse) => void): Request<Connect.Types.DescribeUserHierarchyGroupResponse, AWSError>;
46 /**
47 * Returns a HiearchyGroupStructure object, which contains data about the levels in the agent hierarchy.
48 */
49 describeUserHierarchyStructure(params: Connect.Types.DescribeUserHierarchyStructureRequest, callback?: (err: AWSError, data: Connect.Types.DescribeUserHierarchyStructureResponse) => void): Request<Connect.Types.DescribeUserHierarchyStructureResponse, AWSError>;
50 /**
51 * Returns a HiearchyGroupStructure object, which contains data about the levels in the agent hierarchy.
52 */
53 describeUserHierarchyStructure(callback?: (err: AWSError, data: Connect.Types.DescribeUserHierarchyStructureResponse) => void): Request<Connect.Types.DescribeUserHierarchyStructureResponse, AWSError>;
54 /**
55 * Retrieves the contact attributes associated with a contact.
56 */
57 getContactAttributes(params: Connect.Types.GetContactAttributesRequest, callback?: (err: AWSError, data: Connect.Types.GetContactAttributesResponse) => void): Request<Connect.Types.GetContactAttributesResponse, AWSError>;
58 /**
59 * Retrieves the contact attributes associated with a contact.
60 */
61 getContactAttributes(callback?: (err: AWSError, data: Connect.Types.GetContactAttributesResponse) => void): Request<Connect.Types.GetContactAttributesResponse, AWSError>;
62 /**
63 * The GetCurrentMetricData operation retrieves current metric data from your Amazon Connect instance. If you are using an IAM account, it must have permission to the connect:GetCurrentMetricData action.
64 */
65 getCurrentMetricData(params: Connect.Types.GetCurrentMetricDataRequest, callback?: (err: AWSError, data: Connect.Types.GetCurrentMetricDataResponse) => void): Request<Connect.Types.GetCurrentMetricDataResponse, AWSError>;
66 /**
67 * The GetCurrentMetricData operation retrieves current metric data from your Amazon Connect instance. If you are using an IAM account, it must have permission to the connect:GetCurrentMetricData action.
68 */
69 getCurrentMetricData(callback?: (err: AWSError, data: Connect.Types.GetCurrentMetricDataResponse) => void): Request<Connect.Types.GetCurrentMetricDataResponse, AWSError>;
70 /**
71 * Retrieves a token for federation.
72 */
73 getFederationToken(params: Connect.Types.GetFederationTokenRequest, callback?: (err: AWSError, data: Connect.Types.GetFederationTokenResponse) => void): Request<Connect.Types.GetFederationTokenResponse, AWSError>;
74 /**
75 * Retrieves a token for federation.
76 */
77 getFederationToken(callback?: (err: AWSError, data: Connect.Types.GetFederationTokenResponse) => void): Request<Connect.Types.GetFederationTokenResponse, AWSError>;
78 /**
79 * The GetMetricData operation retrieves historical metrics data from your Amazon Connect instance. If you are using an IAM account, it must have permission to the connect:GetMetricData action.
80 */
81 getMetricData(params: Connect.Types.GetMetricDataRequest, callback?: (err: AWSError, data: Connect.Types.GetMetricDataResponse) => void): Request<Connect.Types.GetMetricDataResponse, AWSError>;
82 /**
83 * The GetMetricData operation retrieves historical metrics data from your Amazon Connect instance. If you are using an IAM account, it must have permission to the connect:GetMetricData action.
84 */
85 getMetricData(callback?: (err: AWSError, data: Connect.Types.GetMetricDataResponse) => void): Request<Connect.Types.GetMetricDataResponse, AWSError>;
86 /**
87 * Returns an array of RoutingProfileSummary objects that includes information about the routing profiles in your instance.
88 */
89 listRoutingProfiles(params: Connect.Types.ListRoutingProfilesRequest, callback?: (err: AWSError, data: Connect.Types.ListRoutingProfilesResponse) => void): Request<Connect.Types.ListRoutingProfilesResponse, AWSError>;
90 /**
91 * Returns an array of RoutingProfileSummary objects that includes information about the routing profiles in your instance.
92 */
93 listRoutingProfiles(callback?: (err: AWSError, data: Connect.Types.ListRoutingProfilesResponse) => void): Request<Connect.Types.ListRoutingProfilesResponse, AWSError>;
94 /**
95 * Returns an array of SecurityProfileSummary objects that contain information about the security profiles in your instance, including the ARN, Id, and Name of the security profile.
96 */
97 listSecurityProfiles(params: Connect.Types.ListSecurityProfilesRequest, callback?: (err: AWSError, data: Connect.Types.ListSecurityProfilesResponse) => void): Request<Connect.Types.ListSecurityProfilesResponse, AWSError>;
98 /**
99 * Returns an array of SecurityProfileSummary objects that contain information about the security profiles in your instance, including the ARN, Id, and Name of the security profile.
100 */
101 listSecurityProfiles(callback?: (err: AWSError, data: Connect.Types.ListSecurityProfilesResponse) => void): Request<Connect.Types.ListSecurityProfilesResponse, AWSError>;
102 /**
103 * Returns a UserHierarchyGroupSummaryList, which is an array of HierarchyGroupSummary objects that contain information about the hierarchy groups in your instance.
104 */
105 listUserHierarchyGroups(params: Connect.Types.ListUserHierarchyGroupsRequest, callback?: (err: AWSError, data: Connect.Types.ListUserHierarchyGroupsResponse) => void): Request<Connect.Types.ListUserHierarchyGroupsResponse, AWSError>;
106 /**
107 * Returns a UserHierarchyGroupSummaryList, which is an array of HierarchyGroupSummary objects that contain information about the hierarchy groups in your instance.
108 */
109 listUserHierarchyGroups(callback?: (err: AWSError, data: Connect.Types.ListUserHierarchyGroupsResponse) => void): Request<Connect.Types.ListUserHierarchyGroupsResponse, AWSError>;
110 /**
111 * Returns a UserSummaryList, which is an array of UserSummary objects.
112 */
113 listUsers(params: Connect.Types.ListUsersRequest, callback?: (err: AWSError, data: Connect.Types.ListUsersResponse) => void): Request<Connect.Types.ListUsersResponse, AWSError>;
114 /**
115 * Returns a UserSummaryList, which is an array of UserSummary objects.
116 */
117 listUsers(callback?: (err: AWSError, data: Connect.Types.ListUsersResponse) => void): Request<Connect.Types.ListUsersResponse, AWSError>;
118 /**
119 * The StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a customer. If you are using an IAM account, it must have permission to the connect:StartOutboundVoiceContact action. There is a 60 second dialing timeout for this operation. If the call is not connected after 60 seconds, the call fails.
120 */
121 startOutboundVoiceContact(params: Connect.Types.StartOutboundVoiceContactRequest, callback?: (err: AWSError, data: Connect.Types.StartOutboundVoiceContactResponse) => void): Request<Connect.Types.StartOutboundVoiceContactResponse, AWSError>;
122 /**
123 * The StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a customer. If you are using an IAM account, it must have permission to the connect:StartOutboundVoiceContact action. There is a 60 second dialing timeout for this operation. If the call is not connected after 60 seconds, the call fails.
124 */
125 startOutboundVoiceContact(callback?: (err: AWSError, data: Connect.Types.StartOutboundVoiceContactResponse) => void): Request<Connect.Types.StartOutboundVoiceContactResponse, AWSError>;
126 /**
127 * Ends the contact initiated by the StartOutboundVoiceContact operation. If you are using an IAM account, it must have permission to the connect:StopContact action.
128 */
129 stopContact(params: Connect.Types.StopContactRequest, callback?: (err: AWSError, data: Connect.Types.StopContactResponse) => void): Request<Connect.Types.StopContactResponse, AWSError>;
130 /**
131 * Ends the contact initiated by the StartOutboundVoiceContact operation. If you are using an IAM account, it must have permission to the connect:StopContact action.
132 */
133 stopContact(callback?: (err: AWSError, data: Connect.Types.StopContactResponse) => void): Request<Connect.Types.StopContactResponse, AWSError>;
134 /**
135 * The UpdateContactAttributes operation lets you programmatically create new, or update existing, contact attributes associated with a contact. You can use the operation to add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed to the next agent that takes the call. You can also use the UpdateContactAttributes operation to update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or identifying abusive callers. Contact attributes are available in Amazon Connect for 24 months, and are then deleted. Important: You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.
136 */
137 updateContactAttributes(params: Connect.Types.UpdateContactAttributesRequest, callback?: (err: AWSError, data: Connect.Types.UpdateContactAttributesResponse) => void): Request<Connect.Types.UpdateContactAttributesResponse, AWSError>;
138 /**
139 * The UpdateContactAttributes operation lets you programmatically create new, or update existing, contact attributes associated with a contact. You can use the operation to add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed to the next agent that takes the call. You can also use the UpdateContactAttributes operation to update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or identifying abusive callers. Contact attributes are available in Amazon Connect for 24 months, and are then deleted. Important: You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.
140 */
141 updateContactAttributes(callback?: (err: AWSError, data: Connect.Types.UpdateContactAttributesResponse) => void): Request<Connect.Types.UpdateContactAttributesResponse, AWSError>;
142 /**
143 * Assigns the specified hierarchy group to the user.
144 */
145 updateUserHierarchy(params: Connect.Types.UpdateUserHierarchyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
146 /**
147 * Assigns the specified hierarchy group to the user.
148 */
149 updateUserHierarchy(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
150 /**
151 * Updates the identity information for the specified user in a UserIdentityInfo object, including email, first name, and last name.
152 */
153 updateUserIdentityInfo(params: Connect.Types.UpdateUserIdentityInfoRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
154 /**
155 * Updates the identity information for the specified user in a UserIdentityInfo object, including email, first name, and last name.
156 */
157 updateUserIdentityInfo(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
158 /**
159 * Updates the phone configuration settings in the UserPhoneConfig object for the specified user.
160 */
161 updateUserPhoneConfig(params: Connect.Types.UpdateUserPhoneConfigRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
162 /**
163 * Updates the phone configuration settings in the UserPhoneConfig object for the specified user.
164 */
165 updateUserPhoneConfig(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
166 /**
167 * Assigns the specified routing profile to a user.
168 */
169 updateUserRoutingProfile(params: Connect.Types.UpdateUserRoutingProfileRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
170 /**
171 * Assigns the specified routing profile to a user.
172 */
173 updateUserRoutingProfile(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
174 /**
175 * Updates the security profiles assigned to the user.
176 */
177 updateUserSecurityProfiles(params: Connect.Types.UpdateUserSecurityProfilesRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
178 /**
179 * Updates the security profiles assigned to the user.
180 */
181 updateUserSecurityProfiles(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
182}
183declare namespace Connect {
184 export type ARN = string;
185 export type AfterContactWorkTimeLimit = number;
186 export type AgentFirstName = string;
187 export type AgentLastName = string;
188 export type AgentUsername = string;
189 export type AttributeName = string;
190 export type AttributeValue = string;
191 export type Attributes = {[key: string]: AttributeValue};
192 export type AutoAccept = boolean;
193 export type Channel = "VOICE"|string;
194 export type Channels = Channel[];
195 export type ClientToken = string;
196 export type Comparison = "LT"|string;
197 export type ContactFlowId = string;
198 export type ContactId = string;
199 export interface CreateUserRequest {
200 /**
201 * The user name in Amazon Connect for the account to create. If you are using SAML for identity management in your Amazon Connect, the value for Username can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
202 */
203 Username: AgentUsername;
204 /**
205 * The password for the user account to create. This is required if you are using Amazon Connect for identity management. If you are using SAML for identity management and include this parameter, an InvalidRequestException is returned.
206 */
207 Password?: Password;
208 /**
209 * Information about the user, including email address, first name, and last name.
210 */
211 IdentityInfo?: UserIdentityInfo;
212 /**
213 * Specifies the phone settings for the user, including AfterContactWorkTimeLimit, AutoAccept, DeskPhoneNumber, and PhoneType.
214 */
215 PhoneConfig: UserPhoneConfig;
216 /**
217 * The unique identifier for the user account in the directory service directory used for identity management. If Amazon Connect is unable to access the existing directory, you can use the DirectoryUserId to authenticate users. If you include the parameter, it is assumed that Amazon Connect cannot access the directory. If the parameter is not included, the UserIdentityInfo is used to authenticate users from your existing directory. This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an InvalidRequestException is returned.
218 */
219 DirectoryUserId?: DirectoryUserId;
220 /**
221 * The unique identifier of the security profile to assign to the user created.
222 */
223 SecurityProfileIds: SecurityProfileIds;
224 /**
225 * The unique identifier for the routing profile to assign to the user created.
226 */
227 RoutingProfileId: RoutingProfileId;
228 /**
229 * The unique identifier for the hierarchy group to assign to the user created.
230 */
231 HierarchyGroupId?: HierarchyGroupId;
232 /**
233 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
234 */
235 InstanceId: InstanceId;
236 }
237 export interface CreateUserResponse {
238 /**
239 * The unique identifier for the user account in Amazon Connect
240 */
241 UserId?: UserId;
242 /**
243 * The Amazon Resource Name (ARN) of the user account created.
244 */
245 UserArn?: ARN;
246 }
247 export interface Credentials {
248 /**
249 * An access token generated for a federated user to access Amazon Connect
250 */
251 AccessToken?: SecurityToken;
252 /**
253 * A token generated with an expiration time for the session a user is logged in to Amazon Connect
254 */
255 AccessTokenExpiration?: timestamp;
256 /**
257 * Renews a token generated for a user to access the Amazon Connect instance.
258 */
259 RefreshToken?: SecurityToken;
260 /**
261 * Renews the expiration timer for a generated token.
262 */
263 RefreshTokenExpiration?: timestamp;
264 }
265 export interface CurrentMetric {
266 /**
267 * The name of the metric.
268 */
269 Name?: CurrentMetricName;
270 /**
271 * The unit for the metric.
272 */
273 Unit?: Unit;
274 }
275 export interface CurrentMetricData {
276 /**
277 * The metric in a CurrentMetricData object.
278 */
279 Metric?: CurrentMetric;
280 /**
281 * The value of the metric in the CurrentMetricData object.
282 */
283 Value?: Value;
284 }
285 export type CurrentMetricDataCollections = CurrentMetricData[];
286 export type CurrentMetricName = "AGENTS_ONLINE"|"AGENTS_AVAILABLE"|"AGENTS_ON_CALL"|"AGENTS_NON_PRODUCTIVE"|"AGENTS_AFTER_CONTACT_WORK"|"AGENTS_ERROR"|"AGENTS_STAFFED"|"CONTACTS_IN_QUEUE"|"OLDEST_CONTACT_AGE"|"CONTACTS_SCHEDULED"|string;
287 export interface CurrentMetricResult {
288 /**
289 * The Dimensions for the CurrentMetricResult object.
290 */
291 Dimensions?: Dimensions;
292 /**
293 * The Collections for the CurrentMetricResult object.
294 */
295 Collections?: CurrentMetricDataCollections;
296 }
297 export type CurrentMetricResults = CurrentMetricResult[];
298 export type CurrentMetrics = CurrentMetric[];
299 export interface DeleteUserRequest {
300 /**
301 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
302 */
303 InstanceId: InstanceId;
304 /**
305 * The unique identifier of the user to delete.
306 */
307 UserId: UserId;
308 }
309 export interface DescribeUserHierarchyGroupRequest {
310 /**
311 * The identifier for the hierarchy group to return.
312 */
313 HierarchyGroupId: HierarchyGroupId;
314 /**
315 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
316 */
317 InstanceId: InstanceId;
318 }
319 export interface DescribeUserHierarchyGroupResponse {
320 /**
321 * Returns a HierarchyGroup object.
322 */
323 HierarchyGroup?: HierarchyGroup;
324 }
325 export interface DescribeUserHierarchyStructureRequest {
326 /**
327 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
328 */
329 InstanceId: InstanceId;
330 }
331 export interface DescribeUserHierarchyStructureResponse {
332 /**
333 * A HierarchyStructure object.
334 */
335 HierarchyStructure?: HierarchyStructure;
336 }
337 export interface DescribeUserRequest {
338 /**
339 * Unique identifier for the user account to return.
340 */
341 UserId: UserId;
342 /**
343 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
344 */
345 InstanceId: InstanceId;
346 }
347 export interface DescribeUserResponse {
348 /**
349 * A User object that contains information about the user account and configuration settings.
350 */
351 User?: User;
352 }
353 export interface Dimensions {
354 /**
355 * A QueueReference object used as one part of dimension for the metrics results.
356 */
357 Queue?: QueueReference;
358 /**
359 * The channel used for grouping and filters. Only VOICE is supported.
360 */
361 Channel?: Channel;
362 }
363 export type DirectoryUserId = string;
364 export type Email = string;
365 export interface Filters {
366 /**
367 * A list of up to 100 queue IDs or queue ARNs to use to filter the metrics retrieved. You can include both IDs and ARNs in a request.
368 */
369 Queues?: Queues;
370 /**
371 * The Channel to use as a filter for the metrics returned. Only VOICE is supported.
372 */
373 Channels?: Channels;
374 }
375 export interface GetContactAttributesRequest {
376 /**
377 * The instance ID for the instance from which to retrieve contact attributes.
378 */
379 InstanceId: InstanceId;
380 /**
381 * The ID for the initial contact in Amazon Connect associated with the attributes to update.
382 */
383 InitialContactId: ContactId;
384 }
385 export interface GetContactAttributesResponse {
386 /**
387 * The attributes to update.
388 */
389 Attributes?: Attributes;
390 }
391 export interface GetCurrentMetricDataRequest {
392 /**
393 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
394 */
395 InstanceId: InstanceId;
396 /**
397 * A Filters object that contains a list of queue IDs or queue ARNs, up to 100, or list of Channels to use to filter the metrics returned in the response. Metric data is retrieved only for the resources associated with the queue IDs, ARNs, or Channels included in the filter. You can include both IDs and ARNs in the same request. To retrieve metrics for all queues, add the queue ID or ARN for each queue in your instance. Only VOICE is supported for Channels. To find the ARN for a queue, open the queue you want to use in the Amazon Connect Queue editor. The ARN for the queue is displayed in the address bar as part of the URL. For example, the queue ARN is the set of characters at the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. The queue ID is also included in the URL, and is the string after 'queue/'.
398 */
399 Filters: Filters;
400 /**
401 * The grouping applied to the metrics returned. For example, when grouped by QUEUE, the metrics returned apply to each queue rather than aggregated for all queues. If you group by CHANNEL, you should include a Channels filter. The only supported channel is VOICE. If no Grouping is included in the request, a summary of CurrentMetrics is returned.
402 */
403 Groupings?: Groupings;
404 /**
405 * A list of CurrentMetric objects for the metrics to retrieve. Each CurrentMetric includes a name of a metric to retrieve and the unit to use for it. You must list each metric to retrieve data for in the request. The following metrics are available: AGENTS_AVAILABLE Unit: COUNT AGENTS_ONLINE Unit: COUNT AGENTS_ON_CALL Unit: COUNT AGENTS_STAFFED Unit: COUNT AGENTS_AFTER_CONTACT_WORK Unit: COUNT AGENTS_NON_PRODUCTIVE Unit: COUNT AGENTS_ERROR Unit: COUNT CONTACTS_IN_QUEUE Unit: COUNT OLDEST_CONTACT_AGE Unit: SECONDS CONTACTS_SCHEDULED Unit: COUNT
406 */
407 CurrentMetrics: CurrentMetrics;
408 /**
409 * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.
410 */
411 NextToken?: NextToken;
412 /**
413 * MaxResults indicates the maximum number of results to return per page in the response, between 1 and 100.
414 */
415 MaxResults?: MaxResult100;
416 }
417 export interface GetCurrentMetricDataResponse {
418 /**
419 * A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results. The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.
420 */
421 NextToken?: NextToken;
422 /**
423 * A list of CurrentMetricResult objects organized by Dimensions combining with CurrentMetricDataCollections. Dimensions is the resourceId specified in the Filters of the request. Collections is a list of CurrentMetricData objects with corresponding values to the CurrentMetrics specified in the request. If no Grouping is specified in the request, Collections is a summary for the CurrentMetric returned.
424 */
425 MetricResults?: CurrentMetricResults;
426 /**
427 * The time at which CurrentMetricData was retrieved and cached for pagination.
428 */
429 DataSnapshotTime?: timestamp;
430 }
431 export interface GetFederationTokenRequest {
432 /**
433 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
434 */
435 InstanceId: InstanceId;
436 }
437 export interface GetFederationTokenResponse {
438 /**
439 * The credentials to use for federation.
440 */
441 Credentials?: Credentials;
442 }
443 export interface GetMetricDataRequest {
444 /**
445 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
446 */
447 InstanceId: InstanceId;
448 /**
449 * The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. StartTime cannot be earlier than 24 hours before the time of the request. Historical metrics are available in Amazon Connect only for 24 hours.
450 */
451 StartTime: timestamp;
452 /**
453 * The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be later than the StartTime timestamp. The time range between StartTime and EndTime must be less than 24 hours.
454 */
455 EndTime: timestamp;
456 /**
457 * A Filters object that contains a list of queue IDs or queue ARNs, up to 100, or a list of Channels to use to filter the metrics returned in the response. Metric data is retrieved only for the resources associated with the IDs, ARNs, or Channels included in the filter. You can use both IDs and ARNs together in a request. Only VOICE is supported for Channel. To find the ARN for a queue, open the queue you want to use in the Amazon Connect Queue editor. The ARN for the queue is displayed in the address bar as part of the URL. For example, the queue ARN is the set of characters at the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. The queue ID is also included in the URL, and is the string after 'queue/'.
458 */
459 Filters: Filters;
460 /**
461 * The grouping applied to the metrics returned. For example, when results are grouped by queueId, the metrics returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for all queues. The current version supports grouping by Queue If no Grouping is included in the request, a summary of HistoricalMetrics for all queues is returned.
462 */
463 Groupings?: Groupings;
464 /**
465 * A list of HistoricalMetric objects that contain the metrics to retrieve with the request. A HistoricalMetric object contains: HistoricalMetricName, Statistic, Threshold, and Unit. You must list each metric to retrieve data for in the request. For each historical metric you include in the request, you must include a Unit and a Statistic. The following historical metrics are available: CONTACTS_QUEUED Unit: COUNT Statistic: SUM CONTACTS_HANDLED Unit: COUNT Statistics: SUM CONTACTS_ABANDONED Unit: COUNT Statistics: SUM CONTACTS_CONSULTED Unit: COUNT Statistics: SUM CONTACTS_AGENT_HUNG_UP_FIRST Unit: COUNT Statistics: SUM CONTACTS_HANDLED_INCOMING Unit: COUNT Statistics: SUM CONTACTS_HANDLED_OUTBOUND Unit: COUNT Statistics: SUM CONTACTS_HOLD_ABANDONS Unit: COUNT Statistics: SUM CONTACTS_TRANSFERRED_IN Unit: COUNT Statistics: SUM CONTACTS_TRANSFERRED_OUT Unit: COUNT Statistics: SUM CONTACTS_TRANSFERRED_IN_FROM_QUEUE Unit: COUNT Statistics: SUM CONTACTS_TRANSFERRED_OUT_FROM_QUEUE Unit: COUNT Statistics: SUM CALLBACK_CONTACTS_HANDLED Unit: COUNT Statistics: SUM CALLBACK_CONTACTS_HANDLED Unit: COUNT Statistics: SUM API_CONTACTS_HANDLED Unit: COUNT Statistics: SUM CONTACTS_MISSED Unit: COUNT Statistics: SUM OCCUPANCY Unit: PERCENT Statistics: AVG HANDLE_TIME Unit: SECONDS Statistics: AVG AFTER_CONTACT_WORK_TIME Unit: SECONDS Statistics: AVG QUEUED_TIME Unit: SECONDS Statistics: MAX ABANDON_TIME Unit: COUNT Statistics: SUM QUEUE_ANSWER_TIME Unit: SECONDS Statistics: AVG HOLD_TIME Unit: SECONDS Statistics: AVG INTERACTION_TIME Unit: SECONDS Statistics: AVG INTERACTION_AND_HOLD_TIME Unit: SECONDS Statistics: AVG SERVICE_LEVEL Unit: PERCENT Statistics: AVG Threshold: Only "Less than" comparisons are supported, with the following service level thresholds: 15, 20, 25, 30, 45, 60, 90, 120, 180, 240, 300, 600
466 */
467 HistoricalMetrics: HistoricalMetrics;
468 /**
469 * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
470 */
471 NextToken?: NextToken;
472 /**
473 * Indicates the maximum number of results to return per page in the response, between 1-100.
474 */
475 MaxResults?: MaxResult100;
476 }
477 export interface GetMetricDataResponse {
478 /**
479 * A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results. The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.
480 */
481 NextToken?: NextToken;
482 /**
483 * A list of HistoricalMetricResult objects, organized by Dimensions, which is the ID of the resource specified in the Filters used for the request. The metrics are combined with the metrics included in Collections, which is a list of HisotricalMetricData objects. If no Grouping is specified in the request, Collections includes summary data for the HistoricalMetrics.
484 */
485 MetricResults?: HistoricalMetricResults;
486 }
487 export type Grouping = "QUEUE"|"CHANNEL"|string;
488 export type Groupings = Grouping[];
489 export interface HierarchyGroup {
490 /**
491 * The identifier for the hierarchy group.
492 */
493 Id?: HierarchyGroupId;
494 /**
495 * The Amazon Resource Name (ARN) for the hierarchy group.
496 */
497 Arn?: ARN;
498 /**
499 * The name of the hierarchy group in your instance.
500 */
501 Name?: HierarchyGroupName;
502 /**
503 * The identifier for the level in the hierarchy group.
504 */
505 LevelId?: HierarchyLevelId;
506 /**
507 * A HierarchyPath object that contains information about the levels in the hierarchy group.
508 */
509 HierarchyPath?: HierarchyPath;
510 }
511 export type HierarchyGroupId = string;
512 export type HierarchyGroupName = string;
513 export interface HierarchyGroupSummary {
514 /**
515 * The identifier of the hierarchy group.
516 */
517 Id?: HierarchyGroupId;
518 /**
519 * The ARN for the hierarchy group.
520 */
521 Arn?: ARN;
522 /**
523 * The name of the hierarchy group.
524 */
525 Name?: HierarchyGroupName;
526 }
527 export type HierarchyGroupSummaryList = HierarchyGroupSummary[];
528 export interface HierarchyLevel {
529 /**
530 * The identifier for the hierarchy group level.
531 */
532 Id?: HierarchyLevelId;
533 /**
534 * The ARN for the hierarchy group level.
535 */
536 Arn?: ARN;
537 /**
538 * The name of the hierarchy group level.
539 */
540 Name?: HierarchyLevelName;
541 }
542 export type HierarchyLevelId = string;
543 export type HierarchyLevelName = string;
544 export interface HierarchyPath {
545 /**
546 * A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.
547 */
548 LevelOne?: HierarchyGroupSummary;
549 /**
550 * A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.
551 */
552 LevelTwo?: HierarchyGroupSummary;
553 /**
554 * A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.
555 */
556 LevelThree?: HierarchyGroupSummary;
557 /**
558 * A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.
559 */
560 LevelFour?: HierarchyGroupSummary;
561 /**
562 * A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.
563 */
564 LevelFive?: HierarchyGroupSummary;
565 }
566 export interface HierarchyStructure {
567 /**
568 * A HierarchyLevel object that contains information about the hierarchy group level.
569 */
570 LevelOne?: HierarchyLevel;
571 /**
572 * A HierarchyLevel object that contains information about the hierarchy group level.
573 */
574 LevelTwo?: HierarchyLevel;
575 /**
576 * A HierarchyLevel object that contains information about the hierarchy group level.
577 */
578 LevelThree?: HierarchyLevel;
579 /**
580 * A HierarchyLevel object that contains information about the hierarchy group level.
581 */
582 LevelFour?: HierarchyLevel;
583 /**
584 * A HierarchyLevel object that contains information about the hierarchy group level.
585 */
586 LevelFive?: HierarchyLevel;
587 }
588 export interface HistoricalMetric {
589 /**
590 * The name of the historical metric.
591 */
592 Name?: HistoricalMetricName;
593 /**
594 * The threshold for the metric, used with service level metrics.
595 */
596 Threshold?: Threshold;
597 /**
598 * The statistic for the metric.
599 */
600 Statistic?: Statistic;
601 /**
602 * The unit for the metric.
603 */
604 Unit?: Unit;
605 }
606 export interface HistoricalMetricData {
607 /**
608 * A HistoricalMetric object.
609 */
610 Metric?: HistoricalMetric;
611 /**
612 * The Value of the metric.
613 */
614 Value?: Value;
615 }
616 export type HistoricalMetricDataCollections = HistoricalMetricData[];
617 export type HistoricalMetricName = "CONTACTS_QUEUED"|"CONTACTS_HANDLED"|"CONTACTS_ABANDONED"|"CONTACTS_CONSULTED"|"CONTACTS_AGENT_HUNG_UP_FIRST"|"CONTACTS_HANDLED_INCOMING"|"CONTACTS_HANDLED_OUTBOUND"|"CONTACTS_HOLD_ABANDONS"|"CONTACTS_TRANSFERRED_IN"|"CONTACTS_TRANSFERRED_OUT"|"CONTACTS_TRANSFERRED_IN_FROM_QUEUE"|"CONTACTS_TRANSFERRED_OUT_FROM_QUEUE"|"CONTACTS_MISSED"|"CALLBACK_CONTACTS_HANDLED"|"API_CONTACTS_HANDLED"|"OCCUPANCY"|"HANDLE_TIME"|"AFTER_CONTACT_WORK_TIME"|"QUEUED_TIME"|"ABANDON_TIME"|"QUEUE_ANSWER_TIME"|"HOLD_TIME"|"INTERACTION_TIME"|"INTERACTION_AND_HOLD_TIME"|"SERVICE_LEVEL"|string;
618 export interface HistoricalMetricResult {
619 /**
620 * The Dimensions for the metrics.
621 */
622 Dimensions?: Dimensions;
623 /**
624 * A list of HistoricalMetricData objects.
625 */
626 Collections?: HistoricalMetricDataCollections;
627 }
628 export type HistoricalMetricResults = HistoricalMetricResult[];
629 export type HistoricalMetrics = HistoricalMetric[];
630 export type InstanceId = string;
631 export interface ListRoutingProfilesRequest {
632 /**
633 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
634 */
635 InstanceId: InstanceId;
636 /**
637 * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
638 */
639 NextToken?: NextToken;
640 /**
641 * The maximum number of routing profiles to return in the response.
642 */
643 MaxResults?: MaxResult1000;
644 }
645 export interface ListRoutingProfilesResponse {
646 /**
647 * An array of RoutingProfileSummary objects that include the ARN, Id, and Name of the routing profile.
648 */
649 RoutingProfileSummaryList?: RoutingProfileSummaryList;
650 /**
651 * A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.
652 */
653 NextToken?: NextToken;
654 }
655 export interface ListSecurityProfilesRequest {
656 /**
657 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
658 */
659 InstanceId: InstanceId;
660 /**
661 * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
662 */
663 NextToken?: NextToken;
664 /**
665 * The maximum number of security profiles to return.
666 */
667 MaxResults?: MaxResult1000;
668 }
669 export interface ListSecurityProfilesResponse {
670 /**
671 * An array of SecurityProfileSummary objects.
672 */
673 SecurityProfileSummaryList?: SecurityProfileSummaryList;
674 /**
675 * A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.
676 */
677 NextToken?: NextToken;
678 }
679 export interface ListUserHierarchyGroupsRequest {
680 /**
681 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
682 */
683 InstanceId: InstanceId;
684 /**
685 * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
686 */
687 NextToken?: NextToken;
688 /**
689 * The maximum number of hierarchy groups to return.
690 */
691 MaxResults?: MaxResult1000;
692 }
693 export interface ListUserHierarchyGroupsResponse {
694 /**
695 * An array of HierarchyGroupSummary objects.
696 */
697 UserHierarchyGroupSummaryList?: HierarchyGroupSummaryList;
698 /**
699 * A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.
700 */
701 NextToken?: NextToken;
702 }
703 export interface ListUsersRequest {
704 /**
705 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
706 */
707 InstanceId: InstanceId;
708 /**
709 * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
710 */
711 NextToken?: NextToken;
712 /**
713 * The maximum number of results to return in the response.
714 */
715 MaxResults?: MaxResult1000;
716 }
717 export interface ListUsersResponse {
718 /**
719 * An array of UserSummary objects that contain information about the users in your instance.
720 */
721 UserSummaryList?: UserSummaryList;
722 /**
723 * A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.
724 */
725 NextToken?: NextToken;
726 }
727 export type MaxResult100 = number;
728 export type MaxResult1000 = number;
729 export type NextToken = string;
730 export type Password = string;
731 export type PhoneNumber = string;
732 export type PhoneType = "SOFT_PHONE"|"DESK_PHONE"|string;
733 export type QueueId = string;
734 export interface QueueReference {
735 /**
736 * The ID of the queue associated with the metrics returned.
737 */
738 Id?: QueueId;
739 /**
740 * The Amazon Resource Name (ARN) of queue.
741 */
742 Arn?: ARN;
743 }
744 export type Queues = QueueId[];
745 export type RoutingProfileId = string;
746 export type RoutingProfileName = string;
747 export interface RoutingProfileSummary {
748 /**
749 * The identifier of the routing profile.
750 */
751 Id?: RoutingProfileId;
752 /**
753 * The ARN of the routing profile.
754 */
755 Arn?: ARN;
756 /**
757 * The name of the routing profile.
758 */
759 Name?: RoutingProfileName;
760 }
761 export type RoutingProfileSummaryList = RoutingProfileSummary[];
762 export type SecurityProfileId = string;
763 export type SecurityProfileIds = SecurityProfileId[];
764 export type SecurityProfileName = string;
765 export interface SecurityProfileSummary {
766 /**
767 * The identifier of the security profile.
768 */
769 Id?: SecurityProfileId;
770 /**
771 * The ARN of the security profile.
772 */
773 Arn?: ARN;
774 /**
775 * The name of the security profile.
776 */
777 Name?: SecurityProfileName;
778 }
779 export type SecurityProfileSummaryList = SecurityProfileSummary[];
780 export type SecurityToken = string;
781 export interface StartOutboundVoiceContactRequest {
782 /**
783 * The phone number of the customer in E.164 format.
784 */
785 DestinationPhoneNumber: PhoneNumber;
786 /**
787 * The identifier for the contact flow to connect the outbound call to. To find the ContactFlowId, open the contact flow you want to use in the Amazon Connect contact flow editor. The ID for the contact flow is displayed in the address bar as part of the URL. For example, the contact flow ID is the set of characters at the end of the URL, after 'contact-flow/' such as 78ea8fd5-2659-4f2b-b528-699760ccfc1b.
788 */
789 ContactFlowId: ContactFlowId;
790 /**
791 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
792 */
793 InstanceId: InstanceId;
794 /**
795 * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned. If the contact is disconnected, a new contact is started.
796 */
797 ClientToken?: ClientToken;
798 /**
799 * The phone number, in E.164 format, associated with your Amazon Connect instance to use for the outbound call.
800 */
801 SourcePhoneNumber?: PhoneNumber;
802 /**
803 * The queue to add the call to. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue used will be the queue defined in the contact flow. To find the QueueId, open the queue you want to use in the Amazon Connect Queue editor. The ID for the queue is displayed in the address bar as part of the URL. For example, the queue ID is the set of characters at the end of the URL, after 'queue/' such as queue/aeg40574-2d01-51c3-73d6-bf8624d2168c.
804 */
805 QueueId?: QueueId;
806 /**
807 * Specify a custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes. There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters. For example, if you want play a greeting when the customer answers the call, you can pass the customer name in attributes similar to the following:
808 */
809 Attributes?: Attributes;
810 }
811 export interface StartOutboundVoiceContactResponse {
812 /**
813 * The unique identifier of this contact within your Amazon Connect instance.
814 */
815 ContactId?: ContactId;
816 }
817 export type Statistic = "SUM"|"MAX"|"AVG"|string;
818 export interface StopContactRequest {
819 /**
820 * The unique identifier of the contact to end.
821 */
822 ContactId: ContactId;
823 /**
824 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
825 */
826 InstanceId: InstanceId;
827 }
828 export interface StopContactResponse {
829 }
830 export interface Threshold {
831 /**
832 * The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.
833 */
834 Comparison?: Comparison;
835 /**
836 * The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.
837 */
838 ThresholdValue?: ThresholdValue;
839 }
840 export type ThresholdValue = number;
841 export type Unit = "SECONDS"|"COUNT"|"PERCENT"|string;
842 export interface UpdateContactAttributesRequest {
843 /**
844 * The unique identifier of the contact for which to update attributes. This is the identifier for the contact associated with the first interaction with the contact center.
845 */
846 InitialContactId: ContactId;
847 /**
848 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
849 */
850 InstanceId: InstanceId;
851 /**
852 * Specify a custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes. There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
853 */
854 Attributes: Attributes;
855 }
856 export interface UpdateContactAttributesResponse {
857 }
858 export interface UpdateUserHierarchyRequest {
859 /**
860 * The identifier for the hierarchy group to assign to the user.
861 */
862 HierarchyGroupId?: HierarchyGroupId;
863 /**
864 * The identifier of the user account to assign the hierarchy group to.
865 */
866 UserId: UserId;
867 /**
868 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
869 */
870 InstanceId: InstanceId;
871 }
872 export interface UpdateUserIdentityInfoRequest {
873 /**
874 * A UserIdentityInfo object.
875 */
876 IdentityInfo: UserIdentityInfo;
877 /**
878 * The identifier for the user account to update identity information for.
879 */
880 UserId: UserId;
881 /**
882 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
883 */
884 InstanceId: InstanceId;
885 }
886 export interface UpdateUserPhoneConfigRequest {
887 /**
888 * A UserPhoneConfig object that contains settings for AfterContactWorkTimeLimit, AutoAccept, DeskPhoneNumber, and PhoneType to assign to the user.
889 */
890 PhoneConfig: UserPhoneConfig;
891 /**
892 * The identifier for the user account to change phone settings for.
893 */
894 UserId: UserId;
895 /**
896 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
897 */
898 InstanceId: InstanceId;
899 }
900 export interface UpdateUserRoutingProfileRequest {
901 /**
902 * The identifier of the routing profile to assign to the user.
903 */
904 RoutingProfileId: RoutingProfileId;
905 /**
906 * The identifier for the user account to assign the routing profile to.
907 */
908 UserId: UserId;
909 /**
910 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
911 */
912 InstanceId: InstanceId;
913 }
914 export interface UpdateUserSecurityProfilesRequest {
915 /**
916 * The identifiers for the security profiles to assign to the user.
917 */
918 SecurityProfileIds: SecurityProfileIds;
919 /**
920 * The identifier of the user account to assign the security profiles.
921 */
922 UserId: UserId;
923 /**
924 * The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
925 */
926 InstanceId: InstanceId;
927 }
928 export interface User {
929 /**
930 * The identifier of the user account.
931 */
932 Id?: UserId;
933 /**
934 * The ARN of the user account.
935 */
936 Arn?: ARN;
937 /**
938 * The user name assigned to the user account.
939 */
940 Username?: AgentUsername;
941 /**
942 * A UserIdentityInfo object.
943 */
944 IdentityInfo?: UserIdentityInfo;
945 /**
946 * A UserPhoneConfig object.
947 */
948 PhoneConfig?: UserPhoneConfig;
949 /**
950 * The directory Id for the user account in the existing directory used for identity management.
951 */
952 DirectoryUserId?: DirectoryUserId;
953 /**
954 * The identifier(s) for the security profile assigned to the user.
955 */
956 SecurityProfileIds?: SecurityProfileIds;
957 /**
958 * The identifier of the routing profile assigned to the user.
959 */
960 RoutingProfileId?: RoutingProfileId;
961 /**
962 * The identifier for the hierarchy group assigned to the user.
963 */
964 HierarchyGroupId?: HierarchyGroupId;
965 }
966 export type UserId = string;
967 export interface UserIdentityInfo {
968 /**
969 * The first name used in the user account. This is required if you are using Amazon Connect or SAML for identity management.
970 */
971 FirstName?: AgentFirstName;
972 /**
973 * The last name used in the user account. This is required if you are using Amazon Connect or SAML for identity management.
974 */
975 LastName?: AgentLastName;
976 /**
977 * The email address added to the user account. If you are using SAML for identity management and include this parameter, an InvalidRequestException is returned.
978 */
979 Email?: Email;
980 }
981 export interface UserPhoneConfig {
982 /**
983 * The phone type selected for the user, either Soft phone or Desk phone.
984 */
985 PhoneType: PhoneType;
986 /**
987 * The Auto accept setting for the user, Yes or No.
988 */
989 AutoAccept?: AutoAccept;
990 /**
991 * The After Call Work (ACW) timeout setting, in seconds, for the user.
992 */
993 AfterContactWorkTimeLimit?: AfterContactWorkTimeLimit;
994 /**
995 * The phone number for the user's desk phone.
996 */
997 DeskPhoneNumber?: PhoneNumber;
998 }
999 export interface UserSummary {
1000 /**
1001 * The identifier for the user account.
1002 */
1003 Id?: UserId;
1004 /**
1005 * The ARN for the user account.
1006 */
1007 Arn?: ARN;
1008 /**
1009 * The Amazon Connect user name for the user account.
1010 */
1011 Username?: AgentUsername;
1012 }
1013 export type UserSummaryList = UserSummary[];
1014 export type Value = number;
1015 export type timestamp = Date;
1016 /**
1017 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1018 */
1019 export type apiVersion = "2017-08-08"|"latest"|string;
1020 export interface ClientApiVersions {
1021 /**
1022 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1023 */
1024 apiVersion?: apiVersion;
1025 }
1026 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1027 /**
1028 * Contains interfaces for use with the Connect client.
1029 */
1030 export import Types = Connect;
1031}
1032export = Connect;