@aws-sdk/client-supplychain 3.658.1 → 3.662.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.
- package/README.md +111 -7
- package/dist-cjs/index.js +675 -2
- package/dist-es/SupplyChain.js +26 -0
- package/dist-es/commands/CreateDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/CreateDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/DeleteDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/DeleteDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/GetDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/GetDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/ListDataIntegrationFlowsCommand.js +22 -0
- package/dist-es/commands/ListDataLakeDatasetsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/UpdateDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +27 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDataIntegrationFlowsPaginator.js +4 -0
- package/dist-es/pagination/ListDataLakeDatasetsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +396 -1
- package/dist-types/SupplyChain.d.ts +91 -0
- package/dist-types/SupplyChainClient.d.ts +15 -2
- package/dist-types/commands/CreateDataIntegrationFlowCommand.d.ts +232 -0
- package/dist-types/commands/CreateDataLakeDatasetCommand.d.ts +393 -0
- package/dist-types/commands/DeleteDataIntegrationFlowCommand.d.ts +112 -0
- package/dist-types/commands/DeleteDataLakeDatasetCommand.d.ts +136 -0
- package/dist-types/commands/GetDataIntegrationFlowCommand.d.ts +185 -0
- package/dist-types/commands/GetDataLakeDatasetCommand.d.ts +344 -0
- package/dist-types/commands/ListDataIntegrationFlowsCommand.d.ts +224 -0
- package/dist-types/commands/ListDataLakeDatasetsCommand.d.ts +377 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +112 -0
- package/dist-types/commands/TagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UpdateDataIntegrationFlowCommand.d.ts +328 -0
- package/dist-types/commands/UpdateDataLakeDatasetCommand.d.ts +347 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +909 -18
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListDataIntegrationFlowsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDataLakeDatasetsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
- package/dist-types/ts3.4/SupplyChain.d.ts +221 -0
- package/dist-types/ts3.4/SupplyChainClient.d.ts +80 -2
- package/dist-types/ts3.4/commands/CreateDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDataIntegrationFlowsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDataLakeDatasetsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +220 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListDataIntegrationFlowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDataLakeDatasetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +35 -35
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteDataIntegrationFlowRequest, DeleteDataIntegrationFlowResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteDataIntegrationFlowCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteDataIntegrationFlowCommandInput extends DeleteDataIntegrationFlowRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteDataIntegrationFlowCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteDataIntegrationFlowCommandOutput extends DeleteDataIntegrationFlowResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteDataIntegrationFlowCommand_base: {
|
|
25
|
+
new (input: DeleteDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDataIntegrationFlowCommandInput, DeleteDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDataIntegrationFlowCommandInput, DeleteDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Delete the DataIntegrationFlow.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SupplyChainClient, DeleteDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
|
|
35
|
+
* // const { SupplyChainClient, DeleteDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
|
|
36
|
+
* const client = new SupplyChainClient(config);
|
|
37
|
+
* const input = { // DeleteDataIntegrationFlowRequest
|
|
38
|
+
* instanceId: "STRING_VALUE", // required
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DeleteDataIntegrationFlowCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // DeleteDataIntegrationFlowResponse
|
|
44
|
+
* // instanceId: "STRING_VALUE", // required
|
|
45
|
+
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param DeleteDataIntegrationFlowCommandInput - {@link DeleteDataIntegrationFlowCommandInput}
|
|
51
|
+
* @returns {@link DeleteDataIntegrationFlowCommandOutput}
|
|
52
|
+
* @see {@link DeleteDataIntegrationFlowCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link DeleteDataIntegrationFlowCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p>You do not have the required privileges to perform this action.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerException} (server fault)
|
|
60
|
+
* <p>Unexpected error during processing of request.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>Request references a resource which does not exist.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
66
|
+
* <p>Request was denied due to request throttling.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ConflictException} (client fault)
|
|
69
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
72
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ValidationException} (client fault)
|
|
75
|
+
* <p>The input does not satisfy the constraints specified by an AWS service.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link SupplyChainServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
* @example Successful DeleteDataIntegrationFlow
|
|
82
|
+
* ```javascript
|
|
83
|
+
* //
|
|
84
|
+
* const input = {
|
|
85
|
+
* "name": "testStagingFlow",
|
|
86
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d"
|
|
87
|
+
* };
|
|
88
|
+
* const command = new DeleteDataIntegrationFlowCommand(input);
|
|
89
|
+
* const response = await client.send(command);
|
|
90
|
+
* /* response ==
|
|
91
|
+
* {
|
|
92
|
+
* "name": "testStagingFlow",
|
|
93
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d"
|
|
94
|
+
* }
|
|
95
|
+
* *\/
|
|
96
|
+
* // example id: example-1
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
export declare class DeleteDataIntegrationFlowCommand extends DeleteDataIntegrationFlowCommand_base {
|
|
101
|
+
/** @internal type navigation helper, not in runtime. */
|
|
102
|
+
protected static __types: {
|
|
103
|
+
api: {
|
|
104
|
+
input: DeleteDataIntegrationFlowRequest;
|
|
105
|
+
output: DeleteDataIntegrationFlowResponse;
|
|
106
|
+
};
|
|
107
|
+
sdk: {
|
|
108
|
+
input: DeleteDataIntegrationFlowCommandInput;
|
|
109
|
+
output: DeleteDataIntegrationFlowCommandOutput;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteDataLakeDatasetRequest, DeleteDataLakeDatasetResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteDataLakeDatasetCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteDataLakeDatasetCommandInput extends DeleteDataLakeDatasetRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteDataLakeDatasetCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteDataLakeDatasetCommandOutput extends DeleteDataLakeDatasetResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteDataLakeDatasetCommand_base: {
|
|
25
|
+
new (input: DeleteDataLakeDatasetCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDataLakeDatasetCommandInput, DeleteDataLakeDatasetCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteDataLakeDatasetCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDataLakeDatasetCommandInput, DeleteDataLakeDatasetCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Delete a data lake dataset.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SupplyChainClient, DeleteDataLakeDatasetCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
|
|
35
|
+
* // const { SupplyChainClient, DeleteDataLakeDatasetCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
|
|
36
|
+
* const client = new SupplyChainClient(config);
|
|
37
|
+
* const input = { // DeleteDataLakeDatasetRequest
|
|
38
|
+
* instanceId: "STRING_VALUE", // required
|
|
39
|
+
* namespace: "STRING_VALUE", // required
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteDataLakeDatasetCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // DeleteDataLakeDatasetResponse
|
|
45
|
+
* // instanceId: "STRING_VALUE", // required
|
|
46
|
+
* // namespace: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param DeleteDataLakeDatasetCommandInput - {@link DeleteDataLakeDatasetCommandInput}
|
|
53
|
+
* @returns {@link DeleteDataLakeDatasetCommandOutput}
|
|
54
|
+
* @see {@link DeleteDataLakeDatasetCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link DeleteDataLakeDatasetCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
59
|
+
* <p>You do not have the required privileges to perform this action.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>Unexpected error during processing of request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>Request references a resource which does not exist.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p>Request was denied due to request throttling.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>The input does not satisfy the constraints specified by an AWS service.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ConflictException} (client fault)
|
|
74
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
77
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link SupplyChainServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
* @example Delete an AWS Supply Chain inbound_order dataset
|
|
84
|
+
* ```javascript
|
|
85
|
+
* //
|
|
86
|
+
* const input = {
|
|
87
|
+
* "name": "inbound_order",
|
|
88
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
89
|
+
* "namespace": "asc"
|
|
90
|
+
* };
|
|
91
|
+
* const command = new DeleteDataLakeDatasetCommand(input);
|
|
92
|
+
* const response = await client.send(command);
|
|
93
|
+
* /* response ==
|
|
94
|
+
* {
|
|
95
|
+
* "name": "inbound_order",
|
|
96
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
97
|
+
* "namespace": "asc"
|
|
98
|
+
* }
|
|
99
|
+
* *\/
|
|
100
|
+
* // example id: example-1
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @example Delete a custom dataset
|
|
104
|
+
* ```javascript
|
|
105
|
+
* //
|
|
106
|
+
* const input = {
|
|
107
|
+
* "name": "my_dataset",
|
|
108
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
109
|
+
* "namespace": "default"
|
|
110
|
+
* };
|
|
111
|
+
* const command = new DeleteDataLakeDatasetCommand(input);
|
|
112
|
+
* const response = await client.send(command);
|
|
113
|
+
* /* response ==
|
|
114
|
+
* {
|
|
115
|
+
* "name": "my_dataset",
|
|
116
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
117
|
+
* "namespace": "default"
|
|
118
|
+
* }
|
|
119
|
+
* *\/
|
|
120
|
+
* // example id: example-2
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
export declare class DeleteDataLakeDatasetCommand extends DeleteDataLakeDatasetCommand_base {
|
|
125
|
+
/** @internal type navigation helper, not in runtime. */
|
|
126
|
+
protected static __types: {
|
|
127
|
+
api: {
|
|
128
|
+
input: DeleteDataLakeDatasetRequest;
|
|
129
|
+
output: DeleteDataLakeDatasetResponse;
|
|
130
|
+
};
|
|
131
|
+
sdk: {
|
|
132
|
+
input: DeleteDataLakeDatasetCommandInput;
|
|
133
|
+
output: DeleteDataLakeDatasetCommandOutput;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetDataIntegrationFlowRequest, GetDataIntegrationFlowResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetDataIntegrationFlowCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDataIntegrationFlowCommandInput extends GetDataIntegrationFlowRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetDataIntegrationFlowCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDataIntegrationFlowCommandOutput extends GetDataIntegrationFlowResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetDataIntegrationFlowCommand_base: {
|
|
25
|
+
new (input: GetDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<GetDataIntegrationFlowCommandInput, GetDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<GetDataIntegrationFlowCommandInput, GetDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>View the DataIntegrationFlow details.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SupplyChainClient, GetDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
|
|
35
|
+
* // const { SupplyChainClient, GetDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
|
|
36
|
+
* const client = new SupplyChainClient(config);
|
|
37
|
+
* const input = { // GetDataIntegrationFlowRequest
|
|
38
|
+
* instanceId: "STRING_VALUE", // required
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetDataIntegrationFlowCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetDataIntegrationFlowResponse
|
|
44
|
+
* // flow: { // DataIntegrationFlow
|
|
45
|
+
* // instanceId: "STRING_VALUE", // required
|
|
46
|
+
* // name: "STRING_VALUE", // required
|
|
47
|
+
* // sources: [ // DataIntegrationFlowSourceList // required
|
|
48
|
+
* // { // DataIntegrationFlowSource
|
|
49
|
+
* // sourceType: "S3" || "DATASET", // required
|
|
50
|
+
* // sourceName: "STRING_VALUE", // required
|
|
51
|
+
* // s3Source: { // DataIntegrationFlowS3SourceConfiguration
|
|
52
|
+
* // bucketName: "STRING_VALUE", // required
|
|
53
|
+
* // prefix: "STRING_VALUE", // required
|
|
54
|
+
* // options: { // DataIntegrationFlowS3Options
|
|
55
|
+
* // fileType: "CSV" || "PARQUET" || "JSON",
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration
|
|
59
|
+
* // datasetIdentifier: "STRING_VALUE", // required
|
|
60
|
+
* // options: { // DataIntegrationFlowDatasetOptions
|
|
61
|
+
* // loadType: "INCREMENTAL" || "REPLACE",
|
|
62
|
+
* // dedupeRecords: true || false,
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // transformation: { // DataIntegrationFlowTransformation
|
|
68
|
+
* // transformationType: "SQL" || "NONE", // required
|
|
69
|
+
* // sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration
|
|
70
|
+
* // query: "STRING_VALUE", // required
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // target: { // DataIntegrationFlowTarget
|
|
74
|
+
* // targetType: "S3" || "DATASET", // required
|
|
75
|
+
* // s3Target: { // DataIntegrationFlowS3TargetConfiguration
|
|
76
|
+
* // bucketName: "STRING_VALUE", // required
|
|
77
|
+
* // prefix: "STRING_VALUE", // required
|
|
78
|
+
* // options: {
|
|
79
|
+
* // fileType: "CSV" || "PARQUET" || "JSON",
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration
|
|
83
|
+
* // datasetIdentifier: "STRING_VALUE", // required
|
|
84
|
+
* // options: {
|
|
85
|
+
* // loadType: "INCREMENTAL" || "REPLACE",
|
|
86
|
+
* // dedupeRecords: true || false,
|
|
87
|
+
* // },
|
|
88
|
+
* // },
|
|
89
|
+
* // },
|
|
90
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
91
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
92
|
+
* // },
|
|
93
|
+
* // };
|
|
94
|
+
*
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param GetDataIntegrationFlowCommandInput - {@link GetDataIntegrationFlowCommandInput}
|
|
98
|
+
* @returns {@link GetDataIntegrationFlowCommandOutput}
|
|
99
|
+
* @see {@link GetDataIntegrationFlowCommandInput} for command's `input` shape.
|
|
100
|
+
* @see {@link GetDataIntegrationFlowCommandOutput} for command's `response` shape.
|
|
101
|
+
* @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
104
|
+
* <p>You do not have the required privileges to perform this action.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link InternalServerException} (server fault)
|
|
107
|
+
* <p>Unexpected error during processing of request.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
110
|
+
* <p>Request references a resource which does not exist.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
113
|
+
* <p>Request was denied due to request throttling.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ValidationException} (client fault)
|
|
116
|
+
* <p>The input does not satisfy the constraints specified by an AWS service.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ConflictException} (client fault)
|
|
119
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
122
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link SupplyChainServiceException}
|
|
125
|
+
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
* @example Successful GetDataIntegrationFlow
|
|
129
|
+
* ```javascript
|
|
130
|
+
* //
|
|
131
|
+
* const input = {
|
|
132
|
+
* "name": "testStagingFlow",
|
|
133
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d"
|
|
134
|
+
* };
|
|
135
|
+
* const command = new GetDataIntegrationFlowCommand(input);
|
|
136
|
+
* const response = await client.send(command);
|
|
137
|
+
* /* response ==
|
|
138
|
+
* {
|
|
139
|
+
* "flow": {
|
|
140
|
+
* "name": "testStagingFlow",
|
|
141
|
+
* "createdTime": 1724956400.44,
|
|
142
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
143
|
+
* "lastModifiedTime": 1724956400.44,
|
|
144
|
+
* "sources": [
|
|
145
|
+
* {
|
|
146
|
+
* "s3Source": {
|
|
147
|
+
* "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f",
|
|
148
|
+
* "prefix": "example-prefix"
|
|
149
|
+
* },
|
|
150
|
+
* "sourceName": "testSourceName",
|
|
151
|
+
* "sourceType": "S3"
|
|
152
|
+
* }
|
|
153
|
+
* ],
|
|
154
|
+
* "target": {
|
|
155
|
+
* "datasetTarget": {
|
|
156
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset"
|
|
157
|
+
* },
|
|
158
|
+
* "targetType": "DATASET"
|
|
159
|
+
* },
|
|
160
|
+
* "transformation": {
|
|
161
|
+
* "sqlTransformation": {
|
|
162
|
+
* "query": "SELECT * FROM testSourceName"
|
|
163
|
+
* },
|
|
164
|
+
* "transformationType": "SQL"
|
|
165
|
+
* }
|
|
166
|
+
* }
|
|
167
|
+
* }
|
|
168
|
+
* *\/
|
|
169
|
+
* // example id: example-1
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
export declare class GetDataIntegrationFlowCommand extends GetDataIntegrationFlowCommand_base {
|
|
174
|
+
/** @internal type navigation helper, not in runtime. */
|
|
175
|
+
protected static __types: {
|
|
176
|
+
api: {
|
|
177
|
+
input: GetDataIntegrationFlowRequest;
|
|
178
|
+
output: GetDataIntegrationFlowResponse;
|
|
179
|
+
};
|
|
180
|
+
sdk: {
|
|
181
|
+
input: GetDataIntegrationFlowCommandInput;
|
|
182
|
+
output: GetDataIntegrationFlowCommandOutput;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
}
|