@aws-sdk/client-connect 3.398.0 → 3.405.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/Connect.js +18 -0
  3. package/dist-cjs/commands/CreateViewCommand.js +47 -0
  4. package/dist-cjs/commands/CreateViewVersionCommand.js +47 -0
  5. package/dist-cjs/commands/DeleteViewCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteViewVersionCommand.js +46 -0
  7. package/dist-cjs/commands/DescribeViewCommand.js +47 -0
  8. package/dist-cjs/commands/ListViewVersionsCommand.js +47 -0
  9. package/dist-cjs/commands/ListViewsCommand.js +47 -0
  10. package/dist-cjs/commands/UpdateViewContentCommand.js +47 -0
  11. package/dist-cjs/commands/UpdateViewMetadataCommand.js +47 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/models/models_0.js +66 -6
  14. package/dist-cjs/models/models_1.js +25 -1
  15. package/dist-cjs/models/models_2.js +18 -1
  16. package/dist-cjs/pagination/ListViewVersionsPaginator.js +29 -0
  17. package/dist-cjs/pagination/ListViewsPaginator.js +29 -0
  18. package/dist-cjs/pagination/index.js +2 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +713 -20
  20. package/dist-es/Connect.js +18 -0
  21. package/dist-es/commands/CreateViewCommand.js +43 -0
  22. package/dist-es/commands/CreateViewVersionCommand.js +43 -0
  23. package/dist-es/commands/DeleteViewCommand.js +42 -0
  24. package/dist-es/commands/DeleteViewVersionCommand.js +42 -0
  25. package/dist-es/commands/DescribeViewCommand.js +43 -0
  26. package/dist-es/commands/ListViewVersionsCommand.js +43 -0
  27. package/dist-es/commands/ListViewsCommand.js +43 -0
  28. package/dist-es/commands/UpdateViewContentCommand.js +43 -0
  29. package/dist-es/commands/UpdateViewMetadataCommand.js +43 -0
  30. package/dist-es/commands/index.js +9 -0
  31. package/dist-es/models/models_0.js +57 -5
  32. package/dist-es/models/models_1.js +20 -0
  33. package/dist-es/models/models_2.js +14 -0
  34. package/dist-es/pagination/ListViewVersionsPaginator.js +25 -0
  35. package/dist-es/pagination/ListViewsPaginator.js +25 -0
  36. package/dist-es/pagination/index.js +2 -0
  37. package/dist-es/protocols/Aws_restJson1.js +687 -13
  38. package/dist-types/Connect.d.ts +63 -0
  39. package/dist-types/ConnectClient.d.ts +11 -2
  40. package/dist-types/commands/CreateQueueCommand.d.ts +20 -13
  41. package/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +8 -0
  42. package/dist-types/commands/CreateViewCommand.d.ts +140 -0
  43. package/dist-types/commands/CreateViewVersionCommand.d.ts +126 -0
  44. package/dist-types/commands/DeleteViewCommand.d.ts +93 -0
  45. package/dist-types/commands/DeleteViewVersionCommand.d.ts +94 -0
  46. package/dist-types/commands/DescribeViewCommand.d.ts +121 -0
  47. package/dist-types/commands/DescribeVocabularyCommand.d.ts +2 -1
  48. package/dist-types/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
  49. package/dist-types/commands/DisassociateBotCommand.d.ts +1 -1
  50. package/dist-types/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
  51. package/dist-types/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
  52. package/dist-types/commands/DisassociateLexBotCommand.d.ts +1 -1
  53. package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
  54. package/dist-types/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
  55. package/dist-types/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
  56. package/dist-types/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
  57. package/dist-types/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
  58. package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
  59. package/dist-types/commands/GetContactAttributesCommand.d.ts +1 -2
  60. package/dist-types/commands/ListPhoneNumbersCommand.d.ts +14 -4
  61. package/dist-types/commands/ListViewVersionsCommand.d.ts +106 -0
  62. package/dist-types/commands/ListViewsCommand.d.ts +105 -0
  63. package/dist-types/commands/StopContactCommand.d.ts +5 -3
  64. package/dist-types/commands/UpdatePromptCommand.d.ts +2 -1
  65. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  66. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -1
  68. package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +21 -14
  69. package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  71. package/dist-types/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
  73. package/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  74. package/dist-types/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  77. package/dist-types/commands/UpdateRuleCommand.d.ts +1 -1
  78. package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  79. package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +1 -1
  80. package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +6 -3
  81. package/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  82. package/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  83. package/dist-types/commands/UpdateViewContentCommand.d.ts +127 -0
  84. package/dist-types/commands/UpdateViewMetadataCommand.d.ts +99 -0
  85. package/dist-types/commands/index.d.ts +9 -0
  86. package/dist-types/models/models_0.d.ts +359 -317
  87. package/dist-types/models/models_1.d.ts +478 -553
  88. package/dist-types/models/models_2.d.ts +632 -2
  89. package/dist-types/pagination/ListViewVersionsPaginator.d.ts +7 -0
  90. package/dist-types/pagination/ListViewsPaginator.d.ts +7 -0
  91. package/dist-types/pagination/index.d.ts +2 -0
  92. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  93. package/dist-types/ts3.4/Connect.d.ts +153 -0
  94. package/dist-types/ts3.4/ConnectClient.d.ts +56 -2
  95. package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +35 -0
  96. package/dist-types/ts3.4/commands/CreateViewVersionCommand.d.ts +39 -0
  97. package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +35 -0
  98. package/dist-types/ts3.4/commands/DeleteViewVersionCommand.d.ts +39 -0
  99. package/dist-types/ts3.4/commands/DescribeViewCommand.d.ts +35 -0
  100. package/dist-types/ts3.4/commands/DescribeVocabularyCommand.d.ts +2 -4
  101. package/dist-types/ts3.4/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
  102. package/dist-types/ts3.4/commands/DisassociateBotCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/DisassociateLexBotCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/DismissUserContactCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/GetContactAttributesCommand.d.ts +4 -2
  113. package/dist-types/ts3.4/commands/ListViewVersionsCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +35 -0
  115. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +2 -1
  116. package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/UpdateQueueNameCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/UpdateQueueStatusCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +1 -1
  129. package/dist-types/ts3.4/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +1 -1
  131. package/dist-types/ts3.4/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
  132. package/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  133. package/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  134. package/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +39 -0
  135. package/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +39 -0
  136. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  137. package/dist-types/ts3.4/models/models_0.d.ts +117 -90
  138. package/dist-types/ts3.4/models/models_1.d.ts +121 -135
  139. package/dist-types/ts3.4/models/models_2.d.ts +171 -1
  140. package/dist-types/ts3.4/pagination/ListViewVersionsPaginator.d.ts +11 -0
  141. package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +11 -0
  142. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  143. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  144. package/package.json +7 -7
@@ -0,0 +1,105 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
+ import { ListViewsRequest, ListViewsResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListViewsCommand}.
14
+ */
15
+ export interface ListViewsCommandInput extends ListViewsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListViewsCommand}.
21
+ */
22
+ export interface ListViewsCommandOutput extends ListViewsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns views in the given instance.</p>
27
+ * <p>Results are sorted primarily by type, and secondarily by name.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { ConnectClient, ListViewsCommand } from "@aws-sdk/client-connect"; // ES Modules import
32
+ * // const { ConnectClient, ListViewsCommand } = require("@aws-sdk/client-connect"); // CommonJS import
33
+ * const client = new ConnectClient(config);
34
+ * const input = { // ListViewsRequest
35
+ * InstanceId: "STRING_VALUE", // required
36
+ * Type: "CUSTOMER_MANAGED" || "AWS_MANAGED",
37
+ * NextToken: "STRING_VALUE",
38
+ * MaxResults: Number("int"),
39
+ * };
40
+ * const command = new ListViewsCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListViewsResponse
43
+ * // ViewsSummaryList: [ // ViewsSummaryList
44
+ * // { // ViewSummary
45
+ * // Id: "STRING_VALUE",
46
+ * // Arn: "STRING_VALUE",
47
+ * // Name: "STRING_VALUE",
48
+ * // Type: "CUSTOMER_MANAGED" || "AWS_MANAGED",
49
+ * // Status: "PUBLISHED" || "SAVED",
50
+ * // Description: "STRING_VALUE",
51
+ * // },
52
+ * // ],
53
+ * // NextToken: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ListViewsCommandInput - {@link ListViewsCommandInput}
59
+ * @returns {@link ListViewsCommandOutput}
60
+ * @see {@link ListViewsCommandInput} for command's `input` shape.
61
+ * @see {@link ListViewsCommandOutput} for command's `response` shape.
62
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>You do not have sufficient permissions to perform this action.</p>
66
+ *
67
+ * @throws {@link InternalServiceException} (server fault)
68
+ * <p>Request processing failed because of an error or failure with the service.</p>
69
+ *
70
+ * @throws {@link InvalidParameterException} (client fault)
71
+ * <p>One or more of the specified parameters are not valid.</p>
72
+ *
73
+ * @throws {@link InvalidRequestException} (client fault)
74
+ * <p>The request is not valid.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The specified resource was not found.</p>
78
+ *
79
+ * @throws {@link TooManyRequestsException} (client fault)
80
+ * <p>Displayed when rate-related API limits are exceeded.</p>
81
+ *
82
+ * @throws {@link ConnectServiceException}
83
+ * <p>Base exception class for all service exceptions from Connect service.</p>
84
+ *
85
+ */
86
+ export declare class ListViewsCommand extends $Command<ListViewsCommandInput, ListViewsCommandOutput, ConnectClientResolvedConfig> {
87
+ readonly input: ListViewsCommandInput;
88
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
89
+ /**
90
+ * @public
91
+ */
92
+ constructor(input: ListViewsCommandInput);
93
+ /**
94
+ * @internal
95
+ */
96
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListViewsCommandInput, ListViewsCommandOutput>;
97
+ /**
98
+ * @internal
99
+ */
100
+ private serialize;
101
+ /**
102
+ * @internal
103
+ */
104
+ private deserialize;
105
+ }
@@ -23,8 +23,8 @@ export interface StopContactCommandOutput extends StopContactResponse, __Metadat
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Ends the specified contact. This call does not work for the following initiation
27
- * methods:</p>
26
+ * <p>Ends the specified contact. This call does not work for voice contacts that use the
27
+ * following initiation methods:</p>
28
28
  * <ul>
29
29
  * <li>
30
30
  * <p>DISCONNECT</p>
@@ -36,6 +36,8 @@ export interface StopContactCommandOutput extends StopContactResponse, __Metadat
36
36
  * <p>QUEUE_TRANSFER</p>
37
37
  * </li>
38
38
  * </ul>
39
+ * <p>Chat and task contacts, however, can be terminated in any state, regardless of initiation
40
+ * method.</p>
39
41
  * @example
40
42
  * Use a bare-bones client and the command you need to make an API call.
41
43
  * ```javascript
@@ -60,7 +62,7 @@ export interface StopContactCommandOutput extends StopContactResponse, __Metadat
60
62
  *
61
63
  * @throws {@link ContactNotFoundException} (client fault)
62
64
  * <p>The contact with the specified ID is not active or does not exist. Applies to Voice calls
63
- * only, not to Chat, Task, or Voice Callback.</p>
65
+ * only, not to Chat or Task contacts.</p>
64
66
  *
65
67
  * @throws {@link InternalServiceException} (server fault)
66
68
  * <p>Request processing failed because of an error or failure with the service.</p>
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdatePromptRequest, UpdatePromptResponse } from "../models/models_1";
5
+ import { UpdatePromptRequest } from "../models/models_1";
6
+ import { UpdatePromptResponse } from "../models/models_2";
6
7
  /**
7
8
  * @public
8
9
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateQueueHoursOfOperationRequest } from "../models/models_1";
5
+ import { UpdateQueueHoursOfOperationRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateQueueMaxContactsRequest } from "../models/models_1";
5
+ import { UpdateQueueMaxContactsRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateQueueNameRequest } from "../models/models_1";
5
+ import { UpdateQueueNameRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateQueueOutboundCallerConfigRequest } from "../models/models_1";
5
+ import { UpdateQueueOutboundCallerConfigRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -27,19 +27,26 @@ export interface UpdateQueueOutboundCallerConfigCommandOutput extends __Metadata
27
27
  * <p>Updates the outbound caller ID name, number, and outbound whisper flow for a specified
28
28
  * queue.</p>
29
29
  * <important>
30
- * <p>If the number being used in the input is claimed to a traffic distribution group, and you are calling this API
31
- * using an instance in the Amazon Web Services Region where the traffic distribution group was created, you can use
32
- * either a full phone number ARN or UUID value for the <code>OutboundCallerIdNumberId</code> value
33
- * of the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_OutboundCallerConfig">OutboundCallerConfig</a> request body parameter. However, if the number is claimed to a
34
- * traffic distribution group and you are calling this API using an instance in the alternate Amazon Web Services Region
35
- * associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided
36
- * in
37
- * this scenario, you will receive a
38
- * <code>ResourceNotFoundException</code>.</p>
39
- * <p>Only use the phone number ARN format that doesn't contain <code>instance</code> in the
40
- * path, for example, <code>arn:aws:connect:us-east-1:1234567890:phone-number/uuid</code>. This is
41
- * the same ARN format that is returned when you call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html">ListPhoneNumbersV2</a>
42
- * API.</p>
30
+ * <ul>
31
+ * <li>
32
+ * <p>If the phone number is claimed to a traffic distribution group that was created in the
33
+ * same Region as the Amazon Connect instance where you are calling this API, then you can use a
34
+ * full phone number ARN or a UUID for <code>OutboundCallerIdNumberId</code>. However, if the phone number is claimed
35
+ * to a traffic distribution group that is in one Region, and you are calling this API from an instance in another Amazon Web Services Region that is associated with the traffic distribution group, you must provide a full phone number ARN. If a
36
+ * UUID is provided in this scenario, you will receive a
37
+ * <code>ResourceNotFoundException</code>.</p>
38
+ * </li>
39
+ * <li>
40
+ * <p>Only use the phone number ARN format that doesn't contain <code>instance</code> in the
41
+ * path, for example, <code>arn:aws:connect:us-east-1:1234567890:phone-number/uuid</code>. This
42
+ * is the same ARN format that is returned when you call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html">ListPhoneNumbersV2</a>
43
+ * API.</p>
44
+ * </li>
45
+ * <li>
46
+ * <p>If you plan to use IAM policies to allow/deny access to this API for phone
47
+ * number resources claimed to a traffic distribution group, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_resource-level-policy-examples.html#allow-deny-queue-actions-replica-region">Allow or Deny queue API actions for phone numbers in a replica Region</a>.</p>
48
+ * </li>
49
+ * </ul>
43
50
  * </important>
44
51
  * @example
45
52
  * Use a bare-bones client and the command you need to make an API call.
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateQueueStatusRequest } from "../models/models_1";
5
+ import { UpdateQueueStatusRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateQuickConnectConfigRequest } from "../models/models_1";
5
+ import { UpdateQuickConnectConfigRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateQuickConnectNameRequest } from "../models/models_1";
5
+ import { UpdateQuickConnectNameRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateRoutingProfileAgentAvailabilityTimerRequest } from "../models/models_1";
5
+ import { UpdateRoutingProfileAgentAvailabilityTimerRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateRoutingProfileConcurrencyRequest } from "../models/models_1";
5
+ import { UpdateRoutingProfileConcurrencyRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateRoutingProfileDefaultOutboundQueueRequest } from "../models/models_1";
5
+ import { UpdateRoutingProfileDefaultOutboundQueueRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateRoutingProfileNameRequest } from "../models/models_1";
5
+ import { UpdateRoutingProfileNameRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateRoutingProfileQueuesRequest } from "../models/models_1";
5
+ import { UpdateRoutingProfileQueuesRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateRuleRequest } from "../models/models_1";
5
+ import { UpdateRuleRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateSecurityProfileRequest } from "../models/models_1";
5
+ import { UpdateSecurityProfileRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateTaskTemplateRequest, UpdateTaskTemplateResponse } from "../models/models_1";
5
+ import { UpdateTaskTemplateRequest, UpdateTaskTemplateResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateTrafficDistributionRequest, UpdateTrafficDistributionResponse } from "../models/models_1";
5
+ import { UpdateTrafficDistributionRequest, UpdateTrafficDistributionResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -25,8 +25,11 @@ export interface UpdateTrafficDistributionCommandOutput extends UpdateTrafficDis
25
25
  * @public
26
26
  * <p>Updates the traffic distribution for a given traffic distribution group. </p>
27
27
  * <note>
28
- * <p>You can change the <code>SignInConfig</code> only for a default <code>TrafficDistributionGroup</code>. If you call
29
- * <code>UpdateTrafficDistribution</code> with a modified <code>SignInConfig</code> and a non-default <code>TrafficDistributionGroup</code>,
28
+ * <p>You can change the <code>SignInConfig</code> distribution only for a
29
+ * default <code>TrafficDistributionGroup</code> (see the <code>IsDefault</code> parameter in the
30
+ * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_TrafficDistributionGroup.html">TrafficDistributionGroup</a>
31
+ * data type). If you call
32
+ * <code>UpdateTrafficDistribution</code> with a modified <code>SignInConfig</code> and a non-default <code>TrafficDistributionGroup</code>,
30
33
  * an <code>InvalidRequestException</code> is returned.</p>
31
34
  * </note>
32
35
  * <p>For more information about updating a traffic distribution group, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html">Update telephony
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateUserHierarchyRequest } from "../models/models_1";
5
+ import { UpdateUserHierarchyRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateUserHierarchyGroupNameRequest } from "../models/models_1";
5
+ import { UpdateUserHierarchyGroupNameRequest } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -0,0 +1,127 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
+ import { UpdateViewContentRequest, UpdateViewContentResponse } from "../models/models_2";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateViewContentCommand}.
14
+ */
15
+ export interface UpdateViewContentCommandInput extends UpdateViewContentRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateViewContentCommand}.
21
+ */
22
+ export interface UpdateViewContentCommandOutput extends UpdateViewContentResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the view content of the given view identifier in the specified Amazon Connect instance.</p>
27
+ * <p>It performs content validation if <code>Status</code> is set to <code>SAVED</code> and performs full content validation if
28
+ * <code>Status</code> is <code>PUBLISHED</code>. Note that the <code>$SAVED</code> alias' content will always be updated,
29
+ * but the <code>$LATEST</code> alias' content will only be updated if <code>Status</code> is <code>PUBLISHED</code>.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { ConnectClient, UpdateViewContentCommand } from "@aws-sdk/client-connect"; // ES Modules import
34
+ * // const { ConnectClient, UpdateViewContentCommand } = require("@aws-sdk/client-connect"); // CommonJS import
35
+ * const client = new ConnectClient(config);
36
+ * const input = { // UpdateViewContentRequest
37
+ * InstanceId: "STRING_VALUE", // required
38
+ * ViewId: "STRING_VALUE", // required
39
+ * Status: "PUBLISHED" || "SAVED", // required
40
+ * Content: { // ViewInputContent
41
+ * Template: "STRING_VALUE",
42
+ * Actions: [ // ViewActions
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * },
46
+ * };
47
+ * const command = new UpdateViewContentCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // UpdateViewContentResponse
50
+ * // View: { // View
51
+ * // Id: "STRING_VALUE",
52
+ * // Arn: "STRING_VALUE",
53
+ * // Name: "STRING_VALUE",
54
+ * // Status: "PUBLISHED" || "SAVED",
55
+ * // Type: "CUSTOMER_MANAGED" || "AWS_MANAGED",
56
+ * // Description: "STRING_VALUE",
57
+ * // Version: Number("int"),
58
+ * // VersionDescription: "STRING_VALUE",
59
+ * // Content: { // ViewContent
60
+ * // InputSchema: "STRING_VALUE",
61
+ * // Template: "STRING_VALUE",
62
+ * // Actions: [ // ViewActions
63
+ * // "STRING_VALUE",
64
+ * // ],
65
+ * // },
66
+ * // Tags: { // TagMap
67
+ * // "<keys>": "STRING_VALUE",
68
+ * // },
69
+ * // CreatedTime: new Date("TIMESTAMP"),
70
+ * // LastModifiedTime: new Date("TIMESTAMP"),
71
+ * // ViewContentSha256: "STRING_VALUE",
72
+ * // },
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param UpdateViewContentCommandInput - {@link UpdateViewContentCommandInput}
78
+ * @returns {@link UpdateViewContentCommandOutput}
79
+ * @see {@link UpdateViewContentCommandInput} for command's `input` shape.
80
+ * @see {@link UpdateViewContentCommandOutput} for command's `response` shape.
81
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
82
+ *
83
+ * @throws {@link AccessDeniedException} (client fault)
84
+ * <p>You do not have sufficient permissions to perform this action.</p>
85
+ *
86
+ * @throws {@link InternalServiceException} (server fault)
87
+ * <p>Request processing failed because of an error or failure with the service.</p>
88
+ *
89
+ * @throws {@link InvalidParameterException} (client fault)
90
+ * <p>One or more of the specified parameters are not valid.</p>
91
+ *
92
+ * @throws {@link InvalidRequestException} (client fault)
93
+ * <p>The request is not valid.</p>
94
+ *
95
+ * @throws {@link ResourceInUseException} (client fault)
96
+ * <p>That resource is already in use. Please try another.</p>
97
+ *
98
+ * @throws {@link ResourceNotFoundException} (client fault)
99
+ * <p>The specified resource was not found.</p>
100
+ *
101
+ * @throws {@link TooManyRequestsException} (client fault)
102
+ * <p>Displayed when rate-related API limits are exceeded.</p>
103
+ *
104
+ * @throws {@link ConnectServiceException}
105
+ * <p>Base exception class for all service exceptions from Connect service.</p>
106
+ *
107
+ */
108
+ export declare class UpdateViewContentCommand extends $Command<UpdateViewContentCommandInput, UpdateViewContentCommandOutput, ConnectClientResolvedConfig> {
109
+ readonly input: UpdateViewContentCommandInput;
110
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
111
+ /**
112
+ * @public
113
+ */
114
+ constructor(input: UpdateViewContentCommandInput);
115
+ /**
116
+ * @internal
117
+ */
118
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateViewContentCommandInput, UpdateViewContentCommandOutput>;
119
+ /**
120
+ * @internal
121
+ */
122
+ private serialize;
123
+ /**
124
+ * @internal
125
+ */
126
+ private deserialize;
127
+ }
@@ -0,0 +1,99 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
+ import { UpdateViewMetadataRequest, UpdateViewMetadataResponse } from "../models/models_2";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateViewMetadataCommand}.
14
+ */
15
+ export interface UpdateViewMetadataCommandInput extends UpdateViewMetadataRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateViewMetadataCommand}.
21
+ */
22
+ export interface UpdateViewMetadataCommandOutput extends UpdateViewMetadataResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the view metadata. Note that either <code>Name</code> or <code>Description</code>
27
+ * must be provided.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { ConnectClient, UpdateViewMetadataCommand } from "@aws-sdk/client-connect"; // ES Modules import
32
+ * // const { ConnectClient, UpdateViewMetadataCommand } = require("@aws-sdk/client-connect"); // CommonJS import
33
+ * const client = new ConnectClient(config);
34
+ * const input = { // UpdateViewMetadataRequest
35
+ * InstanceId: "STRING_VALUE", // required
36
+ * ViewId: "STRING_VALUE", // required
37
+ * Name: "STRING_VALUE",
38
+ * Description: "STRING_VALUE",
39
+ * };
40
+ * const command = new UpdateViewMetadataCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param UpdateViewMetadataCommandInput - {@link UpdateViewMetadataCommandInput}
47
+ * @returns {@link UpdateViewMetadataCommandOutput}
48
+ * @see {@link UpdateViewMetadataCommandInput} for command's `input` shape.
49
+ * @see {@link UpdateViewMetadataCommandOutput} for command's `response` shape.
50
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
51
+ *
52
+ * @throws {@link AccessDeniedException} (client fault)
53
+ * <p>You do not have sufficient permissions to perform this action.</p>
54
+ *
55
+ * @throws {@link DuplicateResourceException} (client fault)
56
+ * <p>A resource with the specified name already exists.</p>
57
+ *
58
+ * @throws {@link InternalServiceException} (server fault)
59
+ * <p>Request processing failed because of an error or failure with the service.</p>
60
+ *
61
+ * @throws {@link InvalidParameterException} (client fault)
62
+ * <p>One or more of the specified parameters are not valid.</p>
63
+ *
64
+ * @throws {@link InvalidRequestException} (client fault)
65
+ * <p>The request is not valid.</p>
66
+ *
67
+ * @throws {@link ResourceInUseException} (client fault)
68
+ * <p>That resource is already in use. Please try another.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The specified resource was not found.</p>
72
+ *
73
+ * @throws {@link TooManyRequestsException} (client fault)
74
+ * <p>Displayed when rate-related API limits are exceeded.</p>
75
+ *
76
+ * @throws {@link ConnectServiceException}
77
+ * <p>Base exception class for all service exceptions from Connect service.</p>
78
+ *
79
+ */
80
+ export declare class UpdateViewMetadataCommand extends $Command<UpdateViewMetadataCommandInput, UpdateViewMetadataCommandOutput, ConnectClientResolvedConfig> {
81
+ readonly input: UpdateViewMetadataCommandInput;
82
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
+ /**
84
+ * @public
85
+ */
86
+ constructor(input: UpdateViewMetadataCommandInput);
87
+ /**
88
+ * @internal
89
+ */
90
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateViewMetadataCommandInput, UpdateViewMetadataCommandOutput>;
91
+ /**
92
+ * @internal
93
+ */
94
+ private serialize;
95
+ /**
96
+ * @internal
97
+ */
98
+ private deserialize;
99
+ }