@aws-sdk/client-supplychain 3.661.0 → 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.
@@ -124,6 +124,98 @@ declare const CreateDataIntegrationFlowCommand_base: {
124
124
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
125
125
  *
126
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
+ *
127
219
  */
128
220
  export declare class CreateDataIntegrationFlowCommand extends CreateDataIntegrationFlowCommand_base {
129
221
  /** @internal type navigation helper, not in runtime. */
@@ -110,6 +110,273 @@ declare const CreateDataLakeDatasetCommand_base: {
110
110
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
111
111
  *
112
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
+ *
113
380
  */
114
381
  export declare class CreateDataLakeDatasetCommand extends CreateDataLakeDatasetCommand_base {
115
382
  /** @internal type navigation helper, not in runtime. */
@@ -78,6 +78,24 @@ declare const DeleteDataIntegrationFlowCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
79
79
  *
80
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
+ *
81
99
  */
82
100
  export declare class DeleteDataIntegrationFlowCommand extends DeleteDataIntegrationFlowCommand_base {
83
101
  /** @internal type navigation helper, not in runtime. */
@@ -80,6 +80,46 @@ declare const DeleteDataLakeDatasetCommand_base: {
80
80
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
81
81
  *
82
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
+ *
83
123
  */
84
124
  export declare class DeleteDataLakeDatasetCommand extends DeleteDataLakeDatasetCommand_base {
85
125
  /** @internal type navigation helper, not in runtime. */
@@ -125,6 +125,50 @@ declare const GetDataIntegrationFlowCommand_base: {
125
125
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
126
126
  *
127
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
+ *
128
172
  */
129
173
  export declare class GetDataIntegrationFlowCommand extends GetDataIntegrationFlowCommand_base {
130
174
  /** @internal type navigation helper, not in runtime. */