@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.
Files changed (71) hide show
  1. package/README.md +111 -7
  2. package/dist-cjs/index.js +675 -2
  3. package/dist-es/SupplyChain.js +26 -0
  4. package/dist-es/commands/CreateDataIntegrationFlowCommand.js +22 -0
  5. package/dist-es/commands/CreateDataLakeDatasetCommand.js +22 -0
  6. package/dist-es/commands/DeleteDataIntegrationFlowCommand.js +22 -0
  7. package/dist-es/commands/DeleteDataLakeDatasetCommand.js +22 -0
  8. package/dist-es/commands/GetDataIntegrationFlowCommand.js +22 -0
  9. package/dist-es/commands/GetDataLakeDatasetCommand.js +22 -0
  10. package/dist-es/commands/ListDataIntegrationFlowsCommand.js +22 -0
  11. package/dist-es/commands/ListDataLakeDatasetsCommand.js +22 -0
  12. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  13. package/dist-es/commands/TagResourceCommand.js +22 -0
  14. package/dist-es/commands/UntagResourceCommand.js +22 -0
  15. package/dist-es/commands/UpdateDataIntegrationFlowCommand.js +22 -0
  16. package/dist-es/commands/UpdateDataLakeDatasetCommand.js +22 -0
  17. package/dist-es/commands/index.js +13 -0
  18. package/dist-es/index.js +1 -0
  19. package/dist-es/models/models_0.js +27 -0
  20. package/dist-es/pagination/Interfaces.js +1 -0
  21. package/dist-es/pagination/ListDataIntegrationFlowsPaginator.js +4 -0
  22. package/dist-es/pagination/ListDataLakeDatasetsPaginator.js +4 -0
  23. package/dist-es/pagination/index.js +3 -0
  24. package/dist-es/protocols/Aws_restJson1.js +396 -1
  25. package/dist-types/SupplyChain.d.ts +91 -0
  26. package/dist-types/SupplyChainClient.d.ts +15 -2
  27. package/dist-types/commands/CreateDataIntegrationFlowCommand.d.ts +232 -0
  28. package/dist-types/commands/CreateDataLakeDatasetCommand.d.ts +393 -0
  29. package/dist-types/commands/DeleteDataIntegrationFlowCommand.d.ts +112 -0
  30. package/dist-types/commands/DeleteDataLakeDatasetCommand.d.ts +136 -0
  31. package/dist-types/commands/GetDataIntegrationFlowCommand.d.ts +185 -0
  32. package/dist-types/commands/GetDataLakeDatasetCommand.d.ts +344 -0
  33. package/dist-types/commands/ListDataIntegrationFlowsCommand.d.ts +224 -0
  34. package/dist-types/commands/ListDataLakeDatasetsCommand.d.ts +377 -0
  35. package/dist-types/commands/ListTagsForResourceCommand.d.ts +112 -0
  36. package/dist-types/commands/TagResourceCommand.d.ts +107 -0
  37. package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
  38. package/dist-types/commands/UpdateDataIntegrationFlowCommand.d.ts +328 -0
  39. package/dist-types/commands/UpdateDataLakeDatasetCommand.d.ts +347 -0
  40. package/dist-types/commands/index.d.ts +13 -0
  41. package/dist-types/index.d.ts +1 -0
  42. package/dist-types/models/models_0.d.ts +909 -18
  43. package/dist-types/pagination/Interfaces.d.ts +8 -0
  44. package/dist-types/pagination/ListDataIntegrationFlowsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/ListDataLakeDatasetsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/index.d.ts +3 -0
  47. package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
  48. package/dist-types/ts3.4/SupplyChain.d.ts +221 -0
  49. package/dist-types/ts3.4/SupplyChainClient.d.ts +80 -2
  50. package/dist-types/ts3.4/commands/CreateDataIntegrationFlowCommand.d.ts +51 -0
  51. package/dist-types/ts3.4/commands/CreateDataLakeDatasetCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/DeleteDataIntegrationFlowCommand.d.ts +51 -0
  53. package/dist-types/ts3.4/commands/DeleteDataLakeDatasetCommand.d.ts +51 -0
  54. package/dist-types/ts3.4/commands/GetDataIntegrationFlowCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/GetDataLakeDatasetCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/ListDataIntegrationFlowsCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/ListDataLakeDatasetsCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  61. package/dist-types/ts3.4/commands/UpdateDataIntegrationFlowCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/UpdateDataLakeDatasetCommand.d.ts +51 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  64. package/dist-types/ts3.4/index.d.ts +1 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +220 -0
  66. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  67. package/dist-types/ts3.4/pagination/ListDataIntegrationFlowsPaginator.d.ts +11 -0
  68. package/dist-types/ts3.4/pagination/ListDataLakeDatasetsPaginator.d.ts +11 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  70. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  71. package/package.json +35 -35
@@ -0,0 +1,377 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListDataLakeDatasetsRequest, ListDataLakeDatasetsResponse } 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 ListDataLakeDatasetsCommand}.
14
+ */
15
+ export interface ListDataLakeDatasetsCommandInput extends ListDataLakeDatasetsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDataLakeDatasetsCommand}.
21
+ */
22
+ export interface ListDataLakeDatasetsCommandOutput extends ListDataLakeDatasetsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListDataLakeDatasetsCommand_base: {
25
+ new (input: ListDataLakeDatasetsCommandInput): import("@smithy/smithy-client").CommandImpl<ListDataLakeDatasetsCommandInput, ListDataLakeDatasetsCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListDataLakeDatasetsCommandInput): import("@smithy/smithy-client").CommandImpl<ListDataLakeDatasetsCommandInput, ListDataLakeDatasetsCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>List the data lake datasets for a specific instance and name space.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, ListDataLakeDatasetsCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, ListDataLakeDatasetsCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // ListDataLakeDatasetsRequest
38
+ * instanceId: "STRING_VALUE", // required
39
+ * namespace: "STRING_VALUE", // required
40
+ * nextToken: "STRING_VALUE",
41
+ * maxResults: Number("int"),
42
+ * };
43
+ * const command = new ListDataLakeDatasetsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListDataLakeDatasetsResponse
46
+ * // datasets: [ // DataLakeDatasetList // required
47
+ * // { // DataLakeDataset
48
+ * // instanceId: "STRING_VALUE", // required
49
+ * // namespace: "STRING_VALUE", // required
50
+ * // name: "STRING_VALUE", // required
51
+ * // arn: "STRING_VALUE", // required
52
+ * // schema: { // DataLakeDatasetSchema
53
+ * // name: "STRING_VALUE", // required
54
+ * // fields: [ // DataLakeDatasetSchemaFieldList // required
55
+ * // { // DataLakeDatasetSchemaField
56
+ * // name: "STRING_VALUE", // required
57
+ * // type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required
58
+ * // isRequired: true || false, // required
59
+ * // },
60
+ * // ],
61
+ * // },
62
+ * // description: "STRING_VALUE",
63
+ * // createdTime: new Date("TIMESTAMP"), // required
64
+ * // lastModifiedTime: new Date("TIMESTAMP"), // required
65
+ * // },
66
+ * // ],
67
+ * // nextToken: "STRING_VALUE",
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param ListDataLakeDatasetsCommandInput - {@link ListDataLakeDatasetsCommandInput}
73
+ * @returns {@link ListDataLakeDatasetsCommandOutput}
74
+ * @see {@link ListDataLakeDatasetsCommandInput} for command's `input` shape.
75
+ * @see {@link ListDataLakeDatasetsCommandOutput} for command's `response` shape.
76
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <p>You do not have the required privileges to perform this action.</p>
80
+ *
81
+ * @throws {@link InternalServerException} (server fault)
82
+ * <p>Unexpected error during processing of request.</p>
83
+ *
84
+ * @throws {@link ResourceNotFoundException} (client fault)
85
+ * <p>Request references a resource which does not exist.</p>
86
+ *
87
+ * @throws {@link ThrottlingException} (client fault)
88
+ * <p>Request was denied due to request throttling.</p>
89
+ *
90
+ * @throws {@link ValidationException} (client fault)
91
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
92
+ *
93
+ * @throws {@link ConflictException} (client fault)
94
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
95
+ *
96
+ * @throws {@link ServiceQuotaExceededException} (client fault)
97
+ * <p>Request would cause a service quota to be exceeded.</p>
98
+ *
99
+ * @throws {@link SupplyChainServiceException}
100
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
101
+ *
102
+ * @public
103
+ * @example List AWS Supply Chain datasets
104
+ * ```javascript
105
+ * //
106
+ * const input = {
107
+ * "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
108
+ * "namespace": "asc"
109
+ * };
110
+ * const command = new ListDataLakeDatasetsCommand(input);
111
+ * const response = await client.send(command);
112
+ * /* response ==
113
+ * {
114
+ * "datasets": [
115
+ * {
116
+ * "name": "inbound_order",
117
+ * "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order",
118
+ * "createdTime": 1727116807.751,
119
+ * "description": "This is an AWS Supply Chain inbound order dataset",
120
+ * "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
121
+ * "lastModifiedTime": 1727116807.751,
122
+ * "namespace": "asc",
123
+ * "schema": {
124
+ * "name": "InboundOrder",
125
+ * "fields": [
126
+ * {
127
+ * "name": "id",
128
+ * "type": "STRING",
129
+ * "isRequired": true
130
+ * },
131
+ * {
132
+ * "name": "tpartner_id",
133
+ * "type": "STRING",
134
+ * "isRequired": true
135
+ * },
136
+ * {
137
+ * "name": "connection_id",
138
+ * "type": "STRING",
139
+ * "isRequired": true
140
+ * },
141
+ * {
142
+ * "name": "order_type",
143
+ * "type": "STRING",
144
+ * "isRequired": false
145
+ * },
146
+ * {
147
+ * "name": "order_status",
148
+ * "type": "STRING",
149
+ * "isRequired": false
150
+ * },
151
+ * {
152
+ * "name": "inbound_order_url",
153
+ * "type": "STRING",
154
+ * "isRequired": false
155
+ * },
156
+ * {
157
+ * "name": "order_creation_date",
158
+ * "type": "TIMESTAMP",
159
+ * "isRequired": false
160
+ * },
161
+ * {
162
+ * "name": "company_id",
163
+ * "type": "STRING",
164
+ * "isRequired": false
165
+ * },
166
+ * {
167
+ * "name": "to_site_id",
168
+ * "type": "STRING",
169
+ * "isRequired": false
170
+ * },
171
+ * {
172
+ * "name": "order_currency_uom",
173
+ * "type": "STRING",
174
+ * "isRequired": false
175
+ * },
176
+ * {
177
+ * "name": "vendor_currency_uom",
178
+ * "type": "STRING",
179
+ * "isRequired": false
180
+ * },
181
+ * {
182
+ * "name": "exchange_rate",
183
+ * "type": "DOUBLE",
184
+ * "isRequired": false
185
+ * },
186
+ * {
187
+ * "name": "exchange_rate_date",
188
+ * "type": "TIMESTAMP",
189
+ * "isRequired": false
190
+ * },
191
+ * {
192
+ * "name": "incoterm",
193
+ * "type": "STRING",
194
+ * "isRequired": false
195
+ * },
196
+ * {
197
+ * "name": "incoterm2",
198
+ * "type": "STRING",
199
+ * "isRequired": false
200
+ * },
201
+ * {
202
+ * "name": "incoterm_location_1",
203
+ * "type": "STRING",
204
+ * "isRequired": false
205
+ * },
206
+ * {
207
+ * "name": "incoterm_location_2",
208
+ * "type": "STRING",
209
+ * "isRequired": false
210
+ * },
211
+ * {
212
+ * "name": "submitted_date",
213
+ * "type": "TIMESTAMP",
214
+ * "isRequired": false
215
+ * },
216
+ * {
217
+ * "name": "agreement_start_date",
218
+ * "type": "TIMESTAMP",
219
+ * "isRequired": false
220
+ * },
221
+ * {
222
+ * "name": "agreement_end_date",
223
+ * "type": "TIMESTAMP",
224
+ * "isRequired": false
225
+ * },
226
+ * {
227
+ * "name": "shipping_instr_code",
228
+ * "type": "STRING",
229
+ * "isRequired": false
230
+ * },
231
+ * {
232
+ * "name": "payment_terms_code",
233
+ * "type": "STRING",
234
+ * "isRequired": false
235
+ * },
236
+ * {
237
+ * "name": "std_terms_agreement",
238
+ * "type": "STRING",
239
+ * "isRequired": false
240
+ * },
241
+ * {
242
+ * "name": "std_terms_agreement_ver",
243
+ * "type": "STRING",
244
+ * "isRequired": false
245
+ * },
246
+ * {
247
+ * "name": "agreement_number",
248
+ * "type": "STRING",
249
+ * "isRequired": false
250
+ * },
251
+ * {
252
+ * "name": "source",
253
+ * "type": "STRING",
254
+ * "isRequired": false
255
+ * },
256
+ * {
257
+ * "name": "source_update_dttm",
258
+ * "type": "TIMESTAMP",
259
+ * "isRequired": false
260
+ * },
261
+ * {
262
+ * "name": "source_event_id",
263
+ * "type": "STRING",
264
+ * "isRequired": false
265
+ * },
266
+ * {
267
+ * "name": "db_creation_dttm",
268
+ * "type": "TIMESTAMP",
269
+ * "isRequired": false
270
+ * },
271
+ * {
272
+ * "name": "db_updation_dttm",
273
+ * "type": "TIMESTAMP",
274
+ * "isRequired": false
275
+ * }
276
+ * ]
277
+ * }
278
+ * }
279
+ * ]
280
+ * }
281
+ * *\/
282
+ * // example id: example-1
283
+ * ```
284
+ *
285
+ * @example List custom datasets using pagination
286
+ * ```javascript
287
+ * //
288
+ * const input = {
289
+ * "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
290
+ * "maxResults": 2,
291
+ * "namespace": "default",
292
+ * "nextToken": "next_token_returned_from_previous_list_request"
293
+ * };
294
+ * const command = new ListDataLakeDatasetsCommand(input);
295
+ * const response = await client.send(command);
296
+ * /* response ==
297
+ * {
298
+ * "datasets": [
299
+ * {
300
+ * "name": "my_dataset",
301
+ * "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset",
302
+ * "createdTime": 1727116807.751,
303
+ * "description": "This is a custom dataset",
304
+ * "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
305
+ * "lastModifiedTime": 1727116807.751,
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
+ * },
333
+ * {
334
+ * "name": "my_dataset_2",
335
+ * "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset_2",
336
+ * "createdTime": 1727116907.751,
337
+ * "description": "This is a custom dataset 2",
338
+ * "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5",
339
+ * "lastModifiedTime": 1727116907.751,
340
+ * "namespace": "default",
341
+ * "schema": {
342
+ * "name": "MyDataset2",
343
+ * "fields": [
344
+ * {
345
+ * "name": "id",
346
+ * "type": "INT",
347
+ * "isRequired": true
348
+ * },
349
+ * {
350
+ * "name": "description",
351
+ * "type": "STRING",
352
+ * "isRequired": true
353
+ * }
354
+ * ]
355
+ * }
356
+ * }
357
+ * ],
358
+ * "nextToken": "next_token_for_next_list_request"
359
+ * }
360
+ * *\/
361
+ * // example id: example-2
362
+ * ```
363
+ *
364
+ */
365
+ export declare class ListDataLakeDatasetsCommand extends ListDataLakeDatasetsCommand_base {
366
+ /** @internal type navigation helper, not in runtime. */
367
+ protected static __types: {
368
+ api: {
369
+ input: ListDataLakeDatasetsRequest;
370
+ output: ListDataLakeDatasetsResponse;
371
+ };
372
+ sdk: {
373
+ input: ListDataLakeDatasetsCommandInput;
374
+ output: ListDataLakeDatasetsCommandOutput;
375
+ };
376
+ };
377
+ }
@@ -0,0 +1,112 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } 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 ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const ListTagsForResourceCommand_base: {
25
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>List all the tags for an Amazon Web ServicesSupply Chain resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, ListTagsForResourceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, ListTagsForResourceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // ListTagsForResourceRequest
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new ListTagsForResourceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListTagsForResourceResponse
43
+ * // tags: { // TagMap // required
44
+ * // "<keys>": "STRING_VALUE",
45
+ * // },
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
51
+ * @returns {@link ListTagsForResourceCommandOutput}
52
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
53
+ * @see {@link ListTagsForResourceCommandOutput} 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 ValidationException} (client fault)
69
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
70
+ *
71
+ * @throws {@link ConflictException} (client fault)
72
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
73
+ *
74
+ * @throws {@link ServiceQuotaExceededException} (client fault)
75
+ * <p>Request would cause a service quota to be exceeded.</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 ListTagsForResource
82
+ * ```javascript
83
+ * //
84
+ * const input = {
85
+ * "resourceArn": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1"
86
+ * };
87
+ * const command = new ListTagsForResourceCommand(input);
88
+ * const response = await client.send(command);
89
+ * /* response ==
90
+ * {
91
+ * "tags": {
92
+ * "tagKey1": "tagValue1"
93
+ * }
94
+ * }
95
+ * *\/
96
+ * // example id: example-1
97
+ * ```
98
+ *
99
+ */
100
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
101
+ /** @internal type navigation helper, not in runtime. */
102
+ protected static __types: {
103
+ api: {
104
+ input: ListTagsForResourceRequest;
105
+ output: ListTagsForResourceResponse;
106
+ };
107
+ sdk: {
108
+ input: ListTagsForResourceCommandInput;
109
+ output: ListTagsForResourceCommandOutput;
110
+ };
111
+ };
112
+ }
@@ -0,0 +1,107 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { TagResourceRequest, TagResourceResponse } 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 TagResourceCommand}.
14
+ */
15
+ export interface TagResourceCommandInput extends TagResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TagResourceCommand}.
21
+ */
22
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const TagResourceCommand_base: {
25
+ new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Create tags for an Amazon Web Services Supply chain resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, TagResourceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, TagResourceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // TagResourceRequest
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * tags: { // TagMap // required
40
+ * "<keys>": "STRING_VALUE",
41
+ * },
42
+ * };
43
+ * const command = new TagResourceCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
50
+ * @returns {@link TagResourceCommandOutput}
51
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
52
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
53
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>You do not have the required privileges to perform this action.</p>
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <p>Unexpected error during processing of request.</p>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>Request references a resource which does not exist.</p>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <p>Request was denied due to request throttling.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
69
+ *
70
+ * @throws {@link ConflictException} (client fault)
71
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
72
+ *
73
+ * @throws {@link ServiceQuotaExceededException} (client fault)
74
+ * <p>Request would cause a service quota to be exceeded.</p>
75
+ *
76
+ * @throws {@link SupplyChainServiceException}
77
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
78
+ *
79
+ * @public
80
+ * @example Successful TagResource
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * "resourceArn": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1",
85
+ * "tags": {
86
+ * "tagKey1": "tagValue1"
87
+ * }
88
+ * };
89
+ * const command = new TagResourceCommand(input);
90
+ * await client.send(command);
91
+ * // example id: example-1
92
+ * ```
93
+ *
94
+ */
95
+ export declare class TagResourceCommand extends TagResourceCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: TagResourceRequest;
100
+ output: {};
101
+ };
102
+ sdk: {
103
+ input: TagResourceCommandInput;
104
+ output: TagResourceCommandOutput;
105
+ };
106
+ };
107
+ }