@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,232 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateDataIntegrationFlowRequest, CreateDataIntegrationFlowResponse } 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 CreateDataIntegrationFlowCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateDataIntegrationFlowCommandInput extends CreateDataIntegrationFlowRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateDataIntegrationFlowCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDataIntegrationFlowCommandOutput extends CreateDataIntegrationFlowResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateDataIntegrationFlowCommand_base: {
|
|
25
|
+
new (input: CreateDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataIntegrationFlowCommandInput, CreateDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataIntegrationFlowCommandInput, CreateDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Create DataIntegrationFlow to map one or more different sources to one target using the SQL transformation query.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SupplyChainClient, CreateDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
|
|
35
|
+
* // const { SupplyChainClient, CreateDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
|
|
36
|
+
* const client = new SupplyChainClient(config);
|
|
37
|
+
* const input = { // CreateDataIntegrationFlowRequest
|
|
38
|
+
* instanceId: "STRING_VALUE", // required
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* sources: [ // DataIntegrationFlowSourceList // required
|
|
41
|
+
* { // DataIntegrationFlowSource
|
|
42
|
+
* sourceType: "S3" || "DATASET", // required
|
|
43
|
+
* sourceName: "STRING_VALUE", // required
|
|
44
|
+
* s3Source: { // DataIntegrationFlowS3SourceConfiguration
|
|
45
|
+
* bucketName: "STRING_VALUE", // required
|
|
46
|
+
* prefix: "STRING_VALUE", // required
|
|
47
|
+
* options: { // DataIntegrationFlowS3Options
|
|
48
|
+
* fileType: "CSV" || "PARQUET" || "JSON",
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration
|
|
52
|
+
* datasetIdentifier: "STRING_VALUE", // required
|
|
53
|
+
* options: { // DataIntegrationFlowDatasetOptions
|
|
54
|
+
* loadType: "INCREMENTAL" || "REPLACE",
|
|
55
|
+
* dedupeRecords: true || false,
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* ],
|
|
60
|
+
* transformation: { // DataIntegrationFlowTransformation
|
|
61
|
+
* transformationType: "SQL" || "NONE", // required
|
|
62
|
+
* sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration
|
|
63
|
+
* query: "STRING_VALUE", // required
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* target: { // DataIntegrationFlowTarget
|
|
67
|
+
* targetType: "S3" || "DATASET", // required
|
|
68
|
+
* s3Target: { // DataIntegrationFlowS3TargetConfiguration
|
|
69
|
+
* bucketName: "STRING_VALUE", // required
|
|
70
|
+
* prefix: "STRING_VALUE", // required
|
|
71
|
+
* options: {
|
|
72
|
+
* fileType: "CSV" || "PARQUET" || "JSON",
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration
|
|
76
|
+
* datasetIdentifier: "STRING_VALUE", // required
|
|
77
|
+
* options: {
|
|
78
|
+
* loadType: "INCREMENTAL" || "REPLACE",
|
|
79
|
+
* dedupeRecords: true || false,
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* },
|
|
83
|
+
* tags: { // TagMap
|
|
84
|
+
* "<keys>": "STRING_VALUE",
|
|
85
|
+
* },
|
|
86
|
+
* };
|
|
87
|
+
* const command = new CreateDataIntegrationFlowCommand(input);
|
|
88
|
+
* const response = await client.send(command);
|
|
89
|
+
* // { // CreateDataIntegrationFlowResponse
|
|
90
|
+
* // instanceId: "STRING_VALUE", // required
|
|
91
|
+
* // name: "STRING_VALUE", // required
|
|
92
|
+
* // };
|
|
93
|
+
*
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @param CreateDataIntegrationFlowCommandInput - {@link CreateDataIntegrationFlowCommandInput}
|
|
97
|
+
* @returns {@link CreateDataIntegrationFlowCommandOutput}
|
|
98
|
+
* @see {@link CreateDataIntegrationFlowCommandInput} for command's `input` shape.
|
|
99
|
+
* @see {@link CreateDataIntegrationFlowCommandOutput} for command's `response` shape.
|
|
100
|
+
* @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
103
|
+
* <p>You do not have the required privileges to perform this action.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ConflictException} (client fault)
|
|
106
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link InternalServerException} (server fault)
|
|
109
|
+
* <p>Unexpected error during processing of request.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
112
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
115
|
+
* <p>Request was denied due to request throttling.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ValidationException} (client fault)
|
|
118
|
+
* <p>The input does not satisfy the constraints specified by an AWS service.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
121
|
+
* <p>Request references a resource which does not exist.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link SupplyChainServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
125
|
+
*
|
|
126
|
+
* @public
|
|
127
|
+
* @example Successful CreateDataIntegrationFlow for s3 to dataset flow
|
|
128
|
+
* ```javascript
|
|
129
|
+
* //
|
|
130
|
+
* const input = {
|
|
131
|
+
* "name": "testStagingFlow",
|
|
132
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
133
|
+
* "sources": [
|
|
134
|
+
* {
|
|
135
|
+
* "s3Source": {
|
|
136
|
+
* "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f",
|
|
137
|
+
* "prefix": "example-prefix"
|
|
138
|
+
* },
|
|
139
|
+
* "sourceName": "testSourceName",
|
|
140
|
+
* "sourceType": "S3"
|
|
141
|
+
* }
|
|
142
|
+
* ],
|
|
143
|
+
* "tags": {
|
|
144
|
+
* "tagKey1": "tagValue1"
|
|
145
|
+
* },
|
|
146
|
+
* "target": {
|
|
147
|
+
* "datasetTarget": {
|
|
148
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset"
|
|
149
|
+
* },
|
|
150
|
+
* "targetType": "DATASET"
|
|
151
|
+
* },
|
|
152
|
+
* "transformation": {
|
|
153
|
+
* "sqlTransformation": {
|
|
154
|
+
* "query": "SELECT * FROM testSourceName"
|
|
155
|
+
* },
|
|
156
|
+
* "transformationType": "SQL"
|
|
157
|
+
* }
|
|
158
|
+
* };
|
|
159
|
+
* const command = new CreateDataIntegrationFlowCommand(input);
|
|
160
|
+
* const response = await client.send(command);
|
|
161
|
+
* /* response ==
|
|
162
|
+
* {
|
|
163
|
+
* "name": "testStagingFlow",
|
|
164
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d"
|
|
165
|
+
* }
|
|
166
|
+
* *\/
|
|
167
|
+
* // example id: example-1
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @example Successful CreateDataIntegrationFlow for dataset to dataset flow
|
|
171
|
+
* ```javascript
|
|
172
|
+
* //
|
|
173
|
+
* const input = {
|
|
174
|
+
* "name": "trading-partner",
|
|
175
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
176
|
+
* "sources": [
|
|
177
|
+
* {
|
|
178
|
+
* "datasetSource": {
|
|
179
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1"
|
|
180
|
+
* },
|
|
181
|
+
* "sourceName": "testSourceName1",
|
|
182
|
+
* "sourceType": "DATASET"
|
|
183
|
+
* },
|
|
184
|
+
* {
|
|
185
|
+
* "datasetSource": {
|
|
186
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2"
|
|
187
|
+
* },
|
|
188
|
+
* "sourceName": "testSourceName2",
|
|
189
|
+
* "sourceType": "DATASET"
|
|
190
|
+
* }
|
|
191
|
+
* ],
|
|
192
|
+
* "tags": {
|
|
193
|
+
* "tagKey1": "tagValue1"
|
|
194
|
+
* },
|
|
195
|
+
* "target": {
|
|
196
|
+
* "datasetTarget": {
|
|
197
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner"
|
|
198
|
+
* },
|
|
199
|
+
* "targetType": "DATASET"
|
|
200
|
+
* },
|
|
201
|
+
* "transformation": {
|
|
202
|
+
* "sqlTransformation": {
|
|
203
|
+
* "query": "SELECT S1.id AS id, S1.poc_org_unit_description AS description, S1.company_id AS company_id, S1.tpartner_type AS tpartner_type, S1.geo_id AS geo_id, S1.eff_start_date AS eff_start_date, S1.eff_end_date AS eff_end_date FROM testSourceName1 AS S1 LEFT JOIN testSourceName2 as S2 ON S1.id=S2.id"
|
|
204
|
+
* },
|
|
205
|
+
* "transformationType": "SQL"
|
|
206
|
+
* }
|
|
207
|
+
* };
|
|
208
|
+
* const command = new CreateDataIntegrationFlowCommand(input);
|
|
209
|
+
* const response = await client.send(command);
|
|
210
|
+
* /* response ==
|
|
211
|
+
* {
|
|
212
|
+
* "name": "trading-partner",
|
|
213
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d"
|
|
214
|
+
* }
|
|
215
|
+
* *\/
|
|
216
|
+
* // example id: example-2
|
|
217
|
+
* ```
|
|
218
|
+
*
|
|
219
|
+
*/
|
|
220
|
+
export declare class CreateDataIntegrationFlowCommand extends CreateDataIntegrationFlowCommand_base {
|
|
221
|
+
/** @internal type navigation helper, not in runtime. */
|
|
222
|
+
protected static __types: {
|
|
223
|
+
api: {
|
|
224
|
+
input: CreateDataIntegrationFlowRequest;
|
|
225
|
+
output: CreateDataIntegrationFlowResponse;
|
|
226
|
+
};
|
|
227
|
+
sdk: {
|
|
228
|
+
input: CreateDataIntegrationFlowCommandInput;
|
|
229
|
+
output: CreateDataIntegrationFlowCommandOutput;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
}
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateDataLakeDatasetRequest, CreateDataLakeDatasetResponse } 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 CreateDataLakeDatasetCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateDataLakeDatasetCommandInput extends CreateDataLakeDatasetRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateDataLakeDatasetCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDataLakeDatasetCommandOutput extends CreateDataLakeDatasetResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateDataLakeDatasetCommand_base: {
|
|
25
|
+
new (input: CreateDataLakeDatasetCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataLakeDatasetCommandInput, CreateDataLakeDatasetCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateDataLakeDatasetCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataLakeDatasetCommandInput, CreateDataLakeDatasetCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Create 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, CreateDataLakeDatasetCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
|
|
35
|
+
* // const { SupplyChainClient, CreateDataLakeDatasetCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
|
|
36
|
+
* const client = new SupplyChainClient(config);
|
|
37
|
+
* const input = { // CreateDataLakeDatasetRequest
|
|
38
|
+
* instanceId: "STRING_VALUE", // required
|
|
39
|
+
* namespace: "STRING_VALUE", // required
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* schema: { // DataLakeDatasetSchema
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* fields: [ // DataLakeDatasetSchemaFieldList // required
|
|
44
|
+
* { // DataLakeDatasetSchemaField
|
|
45
|
+
* name: "STRING_VALUE", // required
|
|
46
|
+
* type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required
|
|
47
|
+
* isRequired: true || false, // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* description: "STRING_VALUE",
|
|
52
|
+
* tags: { // TagMap
|
|
53
|
+
* "<keys>": "STRING_VALUE",
|
|
54
|
+
* },
|
|
55
|
+
* };
|
|
56
|
+
* const command = new CreateDataLakeDatasetCommand(input);
|
|
57
|
+
* const response = await client.send(command);
|
|
58
|
+
* // { // CreateDataLakeDatasetResponse
|
|
59
|
+
* // dataset: { // DataLakeDataset
|
|
60
|
+
* // instanceId: "STRING_VALUE", // required
|
|
61
|
+
* // namespace: "STRING_VALUE", // required
|
|
62
|
+
* // name: "STRING_VALUE", // required
|
|
63
|
+
* // arn: "STRING_VALUE", // required
|
|
64
|
+
* // schema: { // DataLakeDatasetSchema
|
|
65
|
+
* // name: "STRING_VALUE", // required
|
|
66
|
+
* // fields: [ // DataLakeDatasetSchemaFieldList // required
|
|
67
|
+
* // { // DataLakeDatasetSchemaField
|
|
68
|
+
* // name: "STRING_VALUE", // required
|
|
69
|
+
* // type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required
|
|
70
|
+
* // isRequired: true || false, // required
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // },
|
|
74
|
+
* // description: "STRING_VALUE",
|
|
75
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
76
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
77
|
+
* // },
|
|
78
|
+
* // };
|
|
79
|
+
*
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param CreateDataLakeDatasetCommandInput - {@link CreateDataLakeDatasetCommandInput}
|
|
83
|
+
* @returns {@link CreateDataLakeDatasetCommandOutput}
|
|
84
|
+
* @see {@link CreateDataLakeDatasetCommandInput} for command's `input` shape.
|
|
85
|
+
* @see {@link CreateDataLakeDatasetCommandOutput} for command's `response` shape.
|
|
86
|
+
* @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
89
|
+
* <p>You do not have the required privileges to perform this action.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ConflictException} (client fault)
|
|
92
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link InternalServerException} (server fault)
|
|
95
|
+
* <p>Unexpected error during processing of request.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
98
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
101
|
+
* <p>Request was denied due to request throttling.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ValidationException} (client fault)
|
|
104
|
+
* <p>The input does not satisfy the constraints specified by an AWS service.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
107
|
+
* <p>Request references a resource which does not exist.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link SupplyChainServiceException}
|
|
110
|
+
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
111
|
+
*
|
|
112
|
+
* @public
|
|
113
|
+
* @example Create an AWS Supply Chain inbound order dataset
|
|
114
|
+
* ```javascript
|
|
115
|
+
* //
|
|
116
|
+
* const input = {
|
|
117
|
+
* "name": "inbound_order",
|
|
118
|
+
* "description": "This is an AWS Supply Chain inbound order dataset",
|
|
119
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
120
|
+
* "namespace": "asc",
|
|
121
|
+
* "tags": {
|
|
122
|
+
* "tagKey1": "tagValue1",
|
|
123
|
+
* "tagKey2": "tagValue2"
|
|
124
|
+
* }
|
|
125
|
+
* };
|
|
126
|
+
* const command = new CreateDataLakeDatasetCommand(input);
|
|
127
|
+
* const response = await client.send(command);
|
|
128
|
+
* /* response ==
|
|
129
|
+
* {
|
|
130
|
+
* "dataset": {
|
|
131
|
+
* "name": "inbound_order",
|
|
132
|
+
* "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order",
|
|
133
|
+
* "createdTime": 1727116807.751,
|
|
134
|
+
* "description": "This is an AWS Supply Chain inbound order dataset",
|
|
135
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
136
|
+
* "lastModifiedTime": 1727116807.751,
|
|
137
|
+
* "namespace": "asc",
|
|
138
|
+
* "schema": {
|
|
139
|
+
* "name": "InboundOrder",
|
|
140
|
+
* "fields": [
|
|
141
|
+
* {
|
|
142
|
+
* "name": "id",
|
|
143
|
+
* "type": "STRING",
|
|
144
|
+
* "isRequired": true
|
|
145
|
+
* },
|
|
146
|
+
* {
|
|
147
|
+
* "name": "tpartner_id",
|
|
148
|
+
* "type": "STRING",
|
|
149
|
+
* "isRequired": true
|
|
150
|
+
* },
|
|
151
|
+
* {
|
|
152
|
+
* "name": "connection_id",
|
|
153
|
+
* "type": "STRING",
|
|
154
|
+
* "isRequired": true
|
|
155
|
+
* },
|
|
156
|
+
* {
|
|
157
|
+
* "name": "order_type",
|
|
158
|
+
* "type": "STRING",
|
|
159
|
+
* "isRequired": false
|
|
160
|
+
* },
|
|
161
|
+
* {
|
|
162
|
+
* "name": "order_status",
|
|
163
|
+
* "type": "STRING",
|
|
164
|
+
* "isRequired": false
|
|
165
|
+
* },
|
|
166
|
+
* {
|
|
167
|
+
* "name": "inbound_order_url",
|
|
168
|
+
* "type": "STRING",
|
|
169
|
+
* "isRequired": false
|
|
170
|
+
* },
|
|
171
|
+
* {
|
|
172
|
+
* "name": "order_creation_date",
|
|
173
|
+
* "type": "TIMESTAMP",
|
|
174
|
+
* "isRequired": false
|
|
175
|
+
* },
|
|
176
|
+
* {
|
|
177
|
+
* "name": "company_id",
|
|
178
|
+
* "type": "STRING",
|
|
179
|
+
* "isRequired": false
|
|
180
|
+
* },
|
|
181
|
+
* {
|
|
182
|
+
* "name": "to_site_id",
|
|
183
|
+
* "type": "STRING",
|
|
184
|
+
* "isRequired": false
|
|
185
|
+
* },
|
|
186
|
+
* {
|
|
187
|
+
* "name": "order_currency_uom",
|
|
188
|
+
* "type": "STRING",
|
|
189
|
+
* "isRequired": false
|
|
190
|
+
* },
|
|
191
|
+
* {
|
|
192
|
+
* "name": "vendor_currency_uom",
|
|
193
|
+
* "type": "STRING",
|
|
194
|
+
* "isRequired": false
|
|
195
|
+
* },
|
|
196
|
+
* {
|
|
197
|
+
* "name": "exchange_rate",
|
|
198
|
+
* "type": "DOUBLE",
|
|
199
|
+
* "isRequired": false
|
|
200
|
+
* },
|
|
201
|
+
* {
|
|
202
|
+
* "name": "exchange_rate_date",
|
|
203
|
+
* "type": "TIMESTAMP",
|
|
204
|
+
* "isRequired": false
|
|
205
|
+
* },
|
|
206
|
+
* {
|
|
207
|
+
* "name": "incoterm",
|
|
208
|
+
* "type": "STRING",
|
|
209
|
+
* "isRequired": false
|
|
210
|
+
* },
|
|
211
|
+
* {
|
|
212
|
+
* "name": "incoterm2",
|
|
213
|
+
* "type": "STRING",
|
|
214
|
+
* "isRequired": false
|
|
215
|
+
* },
|
|
216
|
+
* {
|
|
217
|
+
* "name": "incoterm_location_1",
|
|
218
|
+
* "type": "STRING",
|
|
219
|
+
* "isRequired": false
|
|
220
|
+
* },
|
|
221
|
+
* {
|
|
222
|
+
* "name": "incoterm_location_2",
|
|
223
|
+
* "type": "STRING",
|
|
224
|
+
* "isRequired": false
|
|
225
|
+
* },
|
|
226
|
+
* {
|
|
227
|
+
* "name": "submitted_date",
|
|
228
|
+
* "type": "TIMESTAMP",
|
|
229
|
+
* "isRequired": false
|
|
230
|
+
* },
|
|
231
|
+
* {
|
|
232
|
+
* "name": "agreement_start_date",
|
|
233
|
+
* "type": "TIMESTAMP",
|
|
234
|
+
* "isRequired": false
|
|
235
|
+
* },
|
|
236
|
+
* {
|
|
237
|
+
* "name": "agreement_end_date",
|
|
238
|
+
* "type": "TIMESTAMP",
|
|
239
|
+
* "isRequired": false
|
|
240
|
+
* },
|
|
241
|
+
* {
|
|
242
|
+
* "name": "shipping_instr_code",
|
|
243
|
+
* "type": "STRING",
|
|
244
|
+
* "isRequired": false
|
|
245
|
+
* },
|
|
246
|
+
* {
|
|
247
|
+
* "name": "payment_terms_code",
|
|
248
|
+
* "type": "STRING",
|
|
249
|
+
* "isRequired": false
|
|
250
|
+
* },
|
|
251
|
+
* {
|
|
252
|
+
* "name": "std_terms_agreement",
|
|
253
|
+
* "type": "STRING",
|
|
254
|
+
* "isRequired": false
|
|
255
|
+
* },
|
|
256
|
+
* {
|
|
257
|
+
* "name": "std_terms_agreement_ver",
|
|
258
|
+
* "type": "STRING",
|
|
259
|
+
* "isRequired": false
|
|
260
|
+
* },
|
|
261
|
+
* {
|
|
262
|
+
* "name": "agreement_number",
|
|
263
|
+
* "type": "STRING",
|
|
264
|
+
* "isRequired": false
|
|
265
|
+
* },
|
|
266
|
+
* {
|
|
267
|
+
* "name": "source",
|
|
268
|
+
* "type": "STRING",
|
|
269
|
+
* "isRequired": false
|
|
270
|
+
* },
|
|
271
|
+
* {
|
|
272
|
+
* "name": "source_update_dttm",
|
|
273
|
+
* "type": "TIMESTAMP",
|
|
274
|
+
* "isRequired": false
|
|
275
|
+
* },
|
|
276
|
+
* {
|
|
277
|
+
* "name": "source_event_id",
|
|
278
|
+
* "type": "STRING",
|
|
279
|
+
* "isRequired": false
|
|
280
|
+
* },
|
|
281
|
+
* {
|
|
282
|
+
* "name": "db_creation_dttm",
|
|
283
|
+
* "type": "TIMESTAMP",
|
|
284
|
+
* "isRequired": false
|
|
285
|
+
* },
|
|
286
|
+
* {
|
|
287
|
+
* "name": "db_updation_dttm",
|
|
288
|
+
* "type": "TIMESTAMP",
|
|
289
|
+
* "isRequired": false
|
|
290
|
+
* }
|
|
291
|
+
* ]
|
|
292
|
+
* }
|
|
293
|
+
* }
|
|
294
|
+
* }
|
|
295
|
+
* *\/
|
|
296
|
+
* // example id: example-1
|
|
297
|
+
* ```
|
|
298
|
+
*
|
|
299
|
+
* @example Create a custom dataset
|
|
300
|
+
* ```javascript
|
|
301
|
+
* //
|
|
302
|
+
* const input = {
|
|
303
|
+
* "name": "my_dataset",
|
|
304
|
+
* "description": "This is a custom dataset",
|
|
305
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
306
|
+
* "namespace": "default",
|
|
307
|
+
* "schema": {
|
|
308
|
+
* "name": "MyDataset",
|
|
309
|
+
* "fields": [
|
|
310
|
+
* {
|
|
311
|
+
* "name": "id",
|
|
312
|
+
* "type": "INT",
|
|
313
|
+
* "isRequired": true
|
|
314
|
+
* },
|
|
315
|
+
* {
|
|
316
|
+
* "name": "description",
|
|
317
|
+
* "type": "STRING",
|
|
318
|
+
* "isRequired": true
|
|
319
|
+
* },
|
|
320
|
+
* {
|
|
321
|
+
* "name": "price",
|
|
322
|
+
* "type": "DOUBLE",
|
|
323
|
+
* "isRequired": false
|
|
324
|
+
* },
|
|
325
|
+
* {
|
|
326
|
+
* "name": "creation_time",
|
|
327
|
+
* "type": "TIMESTAMP",
|
|
328
|
+
* "isRequired": false
|
|
329
|
+
* }
|
|
330
|
+
* ]
|
|
331
|
+
* },
|
|
332
|
+
* "tags": {
|
|
333
|
+
* "tagKey1": "tagValue1",
|
|
334
|
+
* "tagKey2": "tagValue2"
|
|
335
|
+
* }
|
|
336
|
+
* };
|
|
337
|
+
* const command = new CreateDataLakeDatasetCommand(input);
|
|
338
|
+
* const response = await client.send(command);
|
|
339
|
+
* /* response ==
|
|
340
|
+
* {
|
|
341
|
+
* "dataset": {
|
|
342
|
+
* "name": "my_dataset",
|
|
343
|
+
* "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset",
|
|
344
|
+
* "createdTime": 1727116807.751,
|
|
345
|
+
* "description": "This is a custom dataset",
|
|
346
|
+
* "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
|
|
347
|
+
* "lastModifiedTime": 1727116807.751,
|
|
348
|
+
* "namespace": "default",
|
|
349
|
+
* "schema": {
|
|
350
|
+
* "name": "MyDataset",
|
|
351
|
+
* "fields": [
|
|
352
|
+
* {
|
|
353
|
+
* "name": "id",
|
|
354
|
+
* "type": "INT",
|
|
355
|
+
* "isRequired": true
|
|
356
|
+
* },
|
|
357
|
+
* {
|
|
358
|
+
* "name": "description",
|
|
359
|
+
* "type": "STRING",
|
|
360
|
+
* "isRequired": true
|
|
361
|
+
* },
|
|
362
|
+
* {
|
|
363
|
+
* "name": "price",
|
|
364
|
+
* "type": "DOUBLE",
|
|
365
|
+
* "isRequired": false
|
|
366
|
+
* },
|
|
367
|
+
* {
|
|
368
|
+
* "name": "creation_time",
|
|
369
|
+
* "type": "TIMESTAMP",
|
|
370
|
+
* "isRequired": false
|
|
371
|
+
* }
|
|
372
|
+
* ]
|
|
373
|
+
* }
|
|
374
|
+
* }
|
|
375
|
+
* }
|
|
376
|
+
* *\/
|
|
377
|
+
* // example id: example-2
|
|
378
|
+
* ```
|
|
379
|
+
*
|
|
380
|
+
*/
|
|
381
|
+
export declare class CreateDataLakeDatasetCommand extends CreateDataLakeDatasetCommand_base {
|
|
382
|
+
/** @internal type navigation helper, not in runtime. */
|
|
383
|
+
protected static __types: {
|
|
384
|
+
api: {
|
|
385
|
+
input: CreateDataLakeDatasetRequest;
|
|
386
|
+
output: CreateDataLakeDatasetResponse;
|
|
387
|
+
};
|
|
388
|
+
sdk: {
|
|
389
|
+
input: CreateDataLakeDatasetCommandInput;
|
|
390
|
+
output: CreateDataLakeDatasetCommandOutput;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
}
|