@aws-sdk/client-connect 3.568.0 → 3.569.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 (58) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +391 -81
  3. package/dist-es/Connect.js +10 -0
  4. package/dist-es/commands/BatchGetAttachedFileMetadataCommand.js +24 -0
  5. package/dist-es/commands/CompleteAttachedFileUploadCommand.js +24 -0
  6. package/dist-es/commands/DeleteAttachedFileCommand.js +24 -0
  7. package/dist-es/commands/DescribeInstanceCommand.js +1 -1
  8. package/dist-es/commands/GetAttachedFileCommand.js +24 -0
  9. package/dist-es/commands/ReplicateInstanceCommand.js +1 -1
  10. package/dist-es/commands/StartAttachedFileUploadCommand.js +24 -0
  11. package/dist-es/commands/index.js +5 -0
  12. package/dist-es/models/models_0.js +33 -26
  13. package/dist-es/models/models_1.js +26 -42
  14. package/dist-es/models/models_2.js +42 -1
  15. package/dist-es/protocols/Aws_restJson1.js +163 -0
  16. package/dist-types/Connect.d.ts +35 -0
  17. package/dist-types/ConnectClient.d.ts +7 -2
  18. package/dist-types/commands/BatchGetAttachedFileMetadataCommand.d.ts +105 -0
  19. package/dist-types/commands/CompleteAttachedFileUploadCommand.d.ts +75 -0
  20. package/dist-types/commands/DeleteAttachedFileCommand.d.ts +78 -0
  21. package/dist-types/commands/DescribeHoursOfOperationCommand.d.ts +2 -1
  22. package/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeInstanceCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeInstanceStorageConfigCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribePhoneNumberCommand.d.ts +1 -2
  26. package/dist-types/commands/GetAttachedFileCommand.d.ts +97 -0
  27. package/dist-types/commands/ReplicateInstanceCommand.d.ts +2 -1
  28. package/dist-types/commands/ResumeContactCommand.d.ts +1 -1
  29. package/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
  30. package/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -1
  31. package/dist-types/commands/StartAttachedFileUploadCommand.d.ts +108 -0
  32. package/dist-types/commands/index.d.ts +5 -0
  33. package/dist-types/models/models_0.d.ts +308 -239
  34. package/dist-types/models/models_1.d.ts +356 -344
  35. package/dist-types/models/models_2.d.ts +472 -2
  36. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  37. package/dist-types/ts3.4/Connect.d.ts +85 -0
  38. package/dist-types/ts3.4/ConnectClient.d.ts +30 -0
  39. package/dist-types/ts3.4/commands/BatchGetAttachedFileMetadataCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/CompleteAttachedFileUploadCommand.d.ts +39 -0
  41. package/dist-types/ts3.4/commands/DeleteAttachedFileCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/DescribeHoursOfOperationCommand.d.ts +2 -4
  43. package/dist-types/ts3.4/commands/DescribeInstanceAttributeCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/DescribeInstanceCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/DescribeInstanceStorageConfigCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/DescribePhoneNumberCommand.d.ts +4 -2
  47. package/dist-types/ts3.4/commands/GetAttachedFileCommand.d.ts +38 -0
  48. package/dist-types/ts3.4/commands/ReplicateInstanceCommand.d.ts +2 -4
  49. package/dist-types/ts3.4/commands/ResumeContactCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/StartAttachedFileUploadCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +109 -74
  55. package/dist-types/ts3.4/models/models_1.d.ts +101 -99
  56. package/dist-types/ts3.4/models/models_2.d.ts +127 -3
  57. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  58. package/package.json +4 -2
@@ -0,0 +1,75 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
+ import { CompleteAttachedFileUploadRequest, CompleteAttachedFileUploadResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link CompleteAttachedFileUploadCommand}.
13
+ */
14
+ export interface CompleteAttachedFileUploadCommandInput extends CompleteAttachedFileUploadRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link CompleteAttachedFileUploadCommand}.
20
+ */
21
+ export interface CompleteAttachedFileUploadCommandOutput extends CompleteAttachedFileUploadResponse, __MetadataBearer {
22
+ }
23
+ declare const CompleteAttachedFileUploadCommand_base: {
24
+ new (input: CompleteAttachedFileUploadCommandInput): import("@smithy/smithy-client").CommandImpl<CompleteAttachedFileUploadCommandInput, CompleteAttachedFileUploadCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: CompleteAttachedFileUploadCommandInput): import("@smithy/smithy-client").CommandImpl<CompleteAttachedFileUploadCommandInput, CompleteAttachedFileUploadCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Allows you to confirm that the attached file has been uploaded using the pre-signed URL
30
+ * provided in the StartAttachedFileUpload API.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConnectClient, CompleteAttachedFileUploadCommand } from "@aws-sdk/client-connect"; // ES Modules import
35
+ * // const { ConnectClient, CompleteAttachedFileUploadCommand } = require("@aws-sdk/client-connect"); // CommonJS import
36
+ * const client = new ConnectClient(config);
37
+ * const input = { // CompleteAttachedFileUploadRequest
38
+ * InstanceId: "STRING_VALUE", // required
39
+ * FileId: "STRING_VALUE", // required
40
+ * AssociatedResourceArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new CompleteAttachedFileUploadCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param CompleteAttachedFileUploadCommandInput - {@link CompleteAttachedFileUploadCommandInput}
49
+ * @returns {@link CompleteAttachedFileUploadCommandOutput}
50
+ * @see {@link CompleteAttachedFileUploadCommandInput} for command's `input` shape.
51
+ * @see {@link CompleteAttachedFileUploadCommandOutput} for command's `response` shape.
52
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient permissions to perform this action.</p>
56
+ *
57
+ * @throws {@link InternalServiceException} (server fault)
58
+ * <p>Request processing failed because of an error or failure with the service.</p>
59
+ *
60
+ * @throws {@link InvalidRequestException} (client fault)
61
+ * <p>The request is not valid.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified resource was not found.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The throttling limit has been exceeded.</p>
68
+ *
69
+ * @throws {@link ConnectServiceException}
70
+ * <p>Base exception class for all service exceptions from Connect service.</p>
71
+ *
72
+ * @public
73
+ */
74
+ export declare class CompleteAttachedFileUploadCommand extends CompleteAttachedFileUploadCommand_base {
75
+ }
@@ -0,0 +1,78 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
+ import { DeleteAttachedFileRequest, DeleteAttachedFileResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeleteAttachedFileCommand}.
13
+ */
14
+ export interface DeleteAttachedFileCommandInput extends DeleteAttachedFileRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeleteAttachedFileCommand}.
20
+ */
21
+ export interface DeleteAttachedFileCommandOutput extends DeleteAttachedFileResponse, __MetadataBearer {
22
+ }
23
+ declare const DeleteAttachedFileCommand_base: {
24
+ new (input: DeleteAttachedFileCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAttachedFileCommandInput, DeleteAttachedFileCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteAttachedFileCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAttachedFileCommandInput, DeleteAttachedFileCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Deletes an attached file along with the underlying S3 Object.</p>
30
+ * <important>
31
+ * <p>The attached file is <b>permanently deleted</b> if S3 bucket
32
+ * versioning is not enabled.</p>
33
+ * </important>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { ConnectClient, DeleteAttachedFileCommand } from "@aws-sdk/client-connect"; // ES Modules import
38
+ * // const { ConnectClient, DeleteAttachedFileCommand } = require("@aws-sdk/client-connect"); // CommonJS import
39
+ * const client = new ConnectClient(config);
40
+ * const input = { // DeleteAttachedFileRequest
41
+ * InstanceId: "STRING_VALUE", // required
42
+ * FileId: "STRING_VALUE", // required
43
+ * AssociatedResourceArn: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new DeleteAttachedFileCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeleteAttachedFileCommandInput - {@link DeleteAttachedFileCommandInput}
52
+ * @returns {@link DeleteAttachedFileCommandOutput}
53
+ * @see {@link DeleteAttachedFileCommandInput} for command's `input` shape.
54
+ * @see {@link DeleteAttachedFileCommandOutput} for command's `response` shape.
55
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>You do not have sufficient permissions to perform this action.</p>
59
+ *
60
+ * @throws {@link InternalServiceException} (server fault)
61
+ * <p>Request processing failed because of an error or failure with the service.</p>
62
+ *
63
+ * @throws {@link InvalidRequestException} (client fault)
64
+ * <p>The request is not valid.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified resource was not found.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The throttling limit has been exceeded.</p>
71
+ *
72
+ * @throws {@link ConnectServiceException}
73
+ * <p>Base exception class for all service exceptions from Connect service.</p>
74
+ *
75
+ * @public
76
+ */
77
+ export declare class DeleteAttachedFileCommand extends DeleteAttachedFileCommand_base {
78
+ }
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { DescribeHoursOfOperationRequest, DescribeHoursOfOperationResponse } from "../models/models_0";
4
+ import { DescribeHoursOfOperationRequest } from "../models/models_0";
5
+ import { DescribeHoursOfOperationResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { DescribeInstanceAttributeRequest, DescribeInstanceAttributeResponse } from "../models/models_0";
4
+ import { DescribeInstanceAttributeRequest, DescribeInstanceAttributeResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { DescribeInstanceRequest, DescribeInstanceResponse } from "../models/models_0";
4
+ import { DescribeInstanceRequest, DescribeInstanceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { DescribeInstanceStorageConfigRequest, DescribeInstanceStorageConfigResponse } from "../models/models_0";
4
+ import { DescribeInstanceStorageConfigRequest, DescribeInstanceStorageConfigResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { DescribePhoneNumberRequest } from "../models/models_0";
5
- import { DescribePhoneNumberResponse } from "../models/models_1";
4
+ import { DescribePhoneNumberRequest, DescribePhoneNumberResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
+ import { GetAttachedFileRequest, GetAttachedFileResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetAttachedFileCommand}.
13
+ */
14
+ export interface GetAttachedFileCommandInput extends GetAttachedFileRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetAttachedFileCommand}.
20
+ */
21
+ export interface GetAttachedFileCommandOutput extends GetAttachedFileResponse, __MetadataBearer {
22
+ }
23
+ declare const GetAttachedFileCommand_base: {
24
+ new (input: GetAttachedFileCommandInput): import("@smithy/smithy-client").CommandImpl<GetAttachedFileCommandInput, GetAttachedFileCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetAttachedFileCommandInput): import("@smithy/smithy-client").CommandImpl<GetAttachedFileCommandInput, GetAttachedFileCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Provides a pre-signed URL for download of an approved attached file. This API also returns
30
+ * metadata about the attached file. It will only return a downloadURL if the status of the attached
31
+ * file is <code>APPROVED</code>.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { ConnectClient, GetAttachedFileCommand } from "@aws-sdk/client-connect"; // ES Modules import
36
+ * // const { ConnectClient, GetAttachedFileCommand } = require("@aws-sdk/client-connect"); // CommonJS import
37
+ * const client = new ConnectClient(config);
38
+ * const input = { // GetAttachedFileRequest
39
+ * InstanceId: "STRING_VALUE", // required
40
+ * FileId: "STRING_VALUE", // required
41
+ * UrlExpiryInSeconds: Number("int"),
42
+ * AssociatedResourceArn: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new GetAttachedFileCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetAttachedFileResponse
47
+ * // FileArn: "STRING_VALUE",
48
+ * // FileId: "STRING_VALUE",
49
+ * // CreationTime: "STRING_VALUE",
50
+ * // FileStatus: "APPROVED" || "REJECTED" || "PROCESSING" || "FAILED",
51
+ * // FileName: "STRING_VALUE",
52
+ * // FileSizeInBytes: Number("long"), // required
53
+ * // AssociatedResourceArn: "STRING_VALUE",
54
+ * // FileUseCaseType: "ATTACHMENT",
55
+ * // CreatedBy: { // CreatedByInfo Union: only one key present
56
+ * // ConnectUserArn: "STRING_VALUE",
57
+ * // AWSIdentityArn: "STRING_VALUE",
58
+ * // },
59
+ * // DownloadUrlMetadata: { // DownloadUrlMetadata
60
+ * // Url: "STRING_VALUE",
61
+ * // UrlExpiry: "STRING_VALUE",
62
+ * // },
63
+ * // Tags: { // TagMap
64
+ * // "<keys>": "STRING_VALUE",
65
+ * // },
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param GetAttachedFileCommandInput - {@link GetAttachedFileCommandInput}
71
+ * @returns {@link GetAttachedFileCommandOutput}
72
+ * @see {@link GetAttachedFileCommandInput} for command's `input` shape.
73
+ * @see {@link GetAttachedFileCommandOutput} for command's `response` shape.
74
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
75
+ *
76
+ * @throws {@link AccessDeniedException} (client fault)
77
+ * <p>You do not have sufficient permissions to perform this action.</p>
78
+ *
79
+ * @throws {@link InternalServiceException} (server fault)
80
+ * <p>Request processing failed because of an error or failure with the service.</p>
81
+ *
82
+ * @throws {@link InvalidRequestException} (client fault)
83
+ * <p>The request is not valid.</p>
84
+ *
85
+ * @throws {@link ResourceNotFoundException} (client fault)
86
+ * <p>The specified resource was not found.</p>
87
+ *
88
+ * @throws {@link ThrottlingException} (client fault)
89
+ * <p>The throttling limit has been exceeded.</p>
90
+ *
91
+ * @throws {@link ConnectServiceException}
92
+ * <p>Base exception class for all service exceptions from Connect service.</p>
93
+ *
94
+ * @public
95
+ */
96
+ export declare class GetAttachedFileCommand extends GetAttachedFileCommand_base {
97
+ }
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ReplicateInstanceRequest, ReplicateInstanceResponse } from "../models/models_1";
4
+ import { ReplicateInstanceRequest } from "../models/models_1";
5
+ import { ReplicateInstanceResponse } from "../models/models_2";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ResumeContactRequest, ResumeContactResponse } from "../models/models_1";
4
+ import { ResumeContactRequest, ResumeContactResponse } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ResumeContactRecordingRequest, ResumeContactRecordingResponse } from "../models/models_1";
4
+ import { ResumeContactRecordingRequest, ResumeContactRecordingResponse } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { SearchAvailablePhoneNumbersRequest, SearchAvailablePhoneNumbersResponse } from "../models/models_1";
4
+ import { SearchAvailablePhoneNumbersRequest, SearchAvailablePhoneNumbersResponse } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,108 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
+ import { StartAttachedFileUploadRequest, StartAttachedFileUploadResponse } from "../models/models_2";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link StartAttachedFileUploadCommand}.
13
+ */
14
+ export interface StartAttachedFileUploadCommandInput extends StartAttachedFileUploadRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link StartAttachedFileUploadCommand}.
20
+ */
21
+ export interface StartAttachedFileUploadCommandOutput extends StartAttachedFileUploadResponse, __MetadataBearer {
22
+ }
23
+ declare const StartAttachedFileUploadCommand_base: {
24
+ new (input: StartAttachedFileUploadCommandInput): import("@smithy/smithy-client").CommandImpl<StartAttachedFileUploadCommandInput, StartAttachedFileUploadCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: StartAttachedFileUploadCommandInput): import("@smithy/smithy-client").CommandImpl<StartAttachedFileUploadCommandInput, StartAttachedFileUploadCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Provides a pre-signed Amazon S3 URL in response for uploading your content.</p>
30
+ * <important>
31
+ * <p>You may only use this API to upload attachments to a <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateCase.html">Connect
32
+ * Case</a>.</p>
33
+ * </important>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { ConnectClient, StartAttachedFileUploadCommand } from "@aws-sdk/client-connect"; // ES Modules import
38
+ * // const { ConnectClient, StartAttachedFileUploadCommand } = require("@aws-sdk/client-connect"); // CommonJS import
39
+ * const client = new ConnectClient(config);
40
+ * const input = { // StartAttachedFileUploadRequest
41
+ * ClientToken: "STRING_VALUE",
42
+ * InstanceId: "STRING_VALUE", // required
43
+ * FileName: "STRING_VALUE", // required
44
+ * FileSizeInBytes: Number("long"), // required
45
+ * UrlExpiryInSeconds: Number("int"),
46
+ * FileUseCaseType: "ATTACHMENT", // required
47
+ * AssociatedResourceArn: "STRING_VALUE", // required
48
+ * CreatedBy: { // CreatedByInfo Union: only one key present
49
+ * ConnectUserArn: "STRING_VALUE",
50
+ * AWSIdentityArn: "STRING_VALUE",
51
+ * },
52
+ * Tags: { // TagMap
53
+ * "<keys>": "STRING_VALUE",
54
+ * },
55
+ * };
56
+ * const command = new StartAttachedFileUploadCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // StartAttachedFileUploadResponse
59
+ * // FileArn: "STRING_VALUE",
60
+ * // FileId: "STRING_VALUE",
61
+ * // CreationTime: "STRING_VALUE",
62
+ * // FileStatus: "APPROVED" || "REJECTED" || "PROCESSING" || "FAILED",
63
+ * // CreatedBy: { // CreatedByInfo Union: only one key present
64
+ * // ConnectUserArn: "STRING_VALUE",
65
+ * // AWSIdentityArn: "STRING_VALUE",
66
+ * // },
67
+ * // UploadUrlMetadata: { // UploadUrlMetadata
68
+ * // Url: "STRING_VALUE",
69
+ * // UrlExpiry: "STRING_VALUE",
70
+ * // HeadersToInclude: { // UrlMetadataSignedHeaders
71
+ * // "<keys>": "STRING_VALUE",
72
+ * // },
73
+ * // },
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param StartAttachedFileUploadCommandInput - {@link StartAttachedFileUploadCommandInput}
79
+ * @returns {@link StartAttachedFileUploadCommandOutput}
80
+ * @see {@link StartAttachedFileUploadCommandInput} for command's `input` shape.
81
+ * @see {@link StartAttachedFileUploadCommandOutput} for command's `response` shape.
82
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>You do not have sufficient permissions to perform this action.</p>
86
+ *
87
+ * @throws {@link InternalServiceException} (server fault)
88
+ * <p>Request processing failed because of an error or failure with the service.</p>
89
+ *
90
+ * @throws {@link InvalidRequestException} (client fault)
91
+ * <p>The request is not valid.</p>
92
+ *
93
+ * @throws {@link ResourceConflictException} (client fault)
94
+ * <p>A resource already has that name.</p>
95
+ *
96
+ * @throws {@link ServiceQuotaExceededException} (client fault)
97
+ * <p>The service quota has been exceeded.</p>
98
+ *
99
+ * @throws {@link ThrottlingException} (client fault)
100
+ * <p>The throttling limit has been exceeded.</p>
101
+ *
102
+ * @throws {@link ConnectServiceException}
103
+ * <p>Base exception class for all service exceptions from Connect service.</p>
104
+ *
105
+ * @public
106
+ */
107
+ export declare class StartAttachedFileUploadCommand extends StartAttachedFileUploadCommand_base {
108
+ }
@@ -15,9 +15,11 @@ export * from "./AssociateTrafficDistributionGroupUserCommand";
15
15
  export * from "./AssociateUserProficienciesCommand";
16
16
  export * from "./BatchAssociateAnalyticsDataSetCommand";
17
17
  export * from "./BatchDisassociateAnalyticsDataSetCommand";
18
+ export * from "./BatchGetAttachedFileMetadataCommand";
18
19
  export * from "./BatchGetFlowAssociationCommand";
19
20
  export * from "./BatchPutContactCommand";
20
21
  export * from "./ClaimPhoneNumberCommand";
22
+ export * from "./CompleteAttachedFileUploadCommand";
21
23
  export * from "./CreateAgentStatusCommand";
22
24
  export * from "./CreateContactFlowCommand";
23
25
  export * from "./CreateContactFlowModuleCommand";
@@ -43,6 +45,7 @@ export * from "./CreateViewCommand";
43
45
  export * from "./CreateViewVersionCommand";
44
46
  export * from "./CreateVocabularyCommand";
45
47
  export * from "./DeactivateEvaluationFormCommand";
48
+ export * from "./DeleteAttachedFileCommand";
46
49
  export * from "./DeleteContactEvaluationCommand";
47
50
  export * from "./DeleteContactFlowCommand";
48
51
  export * from "./DeleteContactFlowModuleCommand";
@@ -103,6 +106,7 @@ export * from "./DisassociateSecurityKeyCommand";
103
106
  export * from "./DisassociateTrafficDistributionGroupUserCommand";
104
107
  export * from "./DisassociateUserProficienciesCommand";
105
108
  export * from "./DismissUserContactCommand";
109
+ export * from "./GetAttachedFileCommand";
106
110
  export * from "./GetContactAttributesCommand";
107
111
  export * from "./GetCurrentMetricDataCommand";
108
112
  export * from "./GetCurrentUserDataCommand";
@@ -178,6 +182,7 @@ export * from "./SearchSecurityProfilesCommand";
178
182
  export * from "./SearchUsersCommand";
179
183
  export * from "./SearchVocabulariesCommand";
180
184
  export * from "./SendChatIntegrationEventCommand";
185
+ export * from "./StartAttachedFileUploadCommand";
181
186
  export * from "./StartChatContactCommand";
182
187
  export * from "./StartContactEvaluationCommand";
183
188
  export * from "./StartContactRecordingCommand";