@aws-sdk/client-supplychain 3.670.0 → 3.672.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 +47 -7
- package/dist-cjs/index.js +264 -2
- package/dist-es/SupplyChain.js +10 -0
- package/dist-es/commands/CreateInstanceCommand.js +22 -0
- package/dist-es/commands/DeleteInstanceCommand.js +22 -0
- package/dist-es/commands/GetInstanceCommand.js +22 -0
- package/dist-es/commands/ListInstancesCommand.js +22 -0
- package/dist-es/commands/UpdateInstanceCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/pagination/ListInstancesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +160 -1
- package/dist-types/SupplyChain.d.ts +37 -0
- package/dist-types/SupplyChainClient.d.ts +7 -2
- package/dist-types/commands/CreateInstanceCommand.d.ts +163 -0
- package/dist-types/commands/DeleteInstanceCommand.d.ts +129 -0
- package/dist-types/commands/GetInstanceCommand.d.ts +129 -0
- package/dist-types/commands/ListInstancesCommand.d.ts +239 -0
- package/dist-types/commands/UpdateInstanceCommand.d.ts +133 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +232 -0
- package/dist-types/pagination/ListInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/SupplyChain.d.ts +87 -0
- package/dist-types/ts3.4/SupplyChainClient.d.ts +32 -2
- package/dist-types/ts3.4/commands/CreateInstanceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteInstanceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetInstanceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateInstanceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +61 -0
- package/dist-types/ts3.4/pagination/ListInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteInstanceCommand, se_DeleteInstanceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteInstanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("GalaxyPublicAPIGateway", "DeleteInstance", {})
|
|
17
|
+
.n("SupplyChainClient", "DeleteInstanceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DeleteInstanceCommand)
|
|
20
|
+
.de(de_DeleteInstanceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetInstanceCommand, se_GetInstanceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetInstanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("GalaxyPublicAPIGateway", "GetInstance", {})
|
|
17
|
+
.n("SupplyChainClient", "GetInstanceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetInstanceCommand)
|
|
20
|
+
.de(de_GetInstanceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListInstancesCommand, se_ListInstancesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListInstancesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("GalaxyPublicAPIGateway", "ListInstances", {})
|
|
17
|
+
.n("SupplyChainClient", "ListInstancesCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListInstancesCommand)
|
|
20
|
+
.de(de_ListInstancesCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateInstanceCommand, se_UpdateInstanceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateInstanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("GalaxyPublicAPIGateway", "UpdateInstance", {})
|
|
17
|
+
.n("SupplyChainClient", "UpdateInstanceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateInstanceCommand)
|
|
20
|
+
.de(de_UpdateInstanceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
export * from "./CreateBillOfMaterialsImportJobCommand";
|
|
2
2
|
export * from "./CreateDataIntegrationFlowCommand";
|
|
3
3
|
export * from "./CreateDataLakeDatasetCommand";
|
|
4
|
+
export * from "./CreateInstanceCommand";
|
|
4
5
|
export * from "./DeleteDataIntegrationFlowCommand";
|
|
5
6
|
export * from "./DeleteDataLakeDatasetCommand";
|
|
7
|
+
export * from "./DeleteInstanceCommand";
|
|
6
8
|
export * from "./GetBillOfMaterialsImportJobCommand";
|
|
7
9
|
export * from "./GetDataIntegrationFlowCommand";
|
|
8
10
|
export * from "./GetDataLakeDatasetCommand";
|
|
11
|
+
export * from "./GetInstanceCommand";
|
|
9
12
|
export * from "./ListDataIntegrationFlowsCommand";
|
|
10
13
|
export * from "./ListDataLakeDatasetsCommand";
|
|
14
|
+
export * from "./ListInstancesCommand";
|
|
11
15
|
export * from "./ListTagsForResourceCommand";
|
|
12
16
|
export * from "./SendDataIntegrationEventCommand";
|
|
13
17
|
export * from "./TagResourceCommand";
|
|
14
18
|
export * from "./UntagResourceCommand";
|
|
15
19
|
export * from "./UpdateDataIntegrationFlowCommand";
|
|
16
20
|
export * from "./UpdateDataLakeDatasetCommand";
|
|
21
|
+
export * from "./UpdateInstanceCommand";
|
|
@@ -122,6 +122,14 @@ export const DataLakeDatasetSchemaFieldType = {
|
|
|
122
122
|
STRING: "STRING",
|
|
123
123
|
TIMESTAMP: "TIMESTAMP",
|
|
124
124
|
};
|
|
125
|
+
export const InstanceState = {
|
|
126
|
+
ACTIVE: "Active",
|
|
127
|
+
CREATE_FAILED: "CreateFailed",
|
|
128
|
+
DELETED: "Deleted",
|
|
129
|
+
DELETE_FAILED: "DeleteFailed",
|
|
130
|
+
DELETING: "Deleting",
|
|
131
|
+
INITIALIZING: "Initializing",
|
|
132
|
+
};
|
|
125
133
|
export const DataIntegrationEventType = {
|
|
126
134
|
FORECAST: "scn.data.forecast",
|
|
127
135
|
INBOUND_ORDER: "scn.data.inboundorder",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListInstancesCommand, } from "../commands/ListInstancesCommand";
|
|
3
|
+
import { SupplyChainClient } from "../SupplyChainClient";
|
|
4
|
+
export const paginateListInstances = createPaginator(SupplyChainClient, ListInstancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { SupplyChainServiceException as __BaseException } from "../models/SupplyChainServiceException";
|
|
@@ -55,6 +55,23 @@ export const se_CreateDataLakeDatasetCommand = async (input, context) => {
|
|
|
55
55
|
b.m("PUT").h(headers).b(body);
|
|
56
56
|
return b.build();
|
|
57
57
|
};
|
|
58
|
+
export const se_CreateInstanceCommand = async (input, context) => {
|
|
59
|
+
const b = rb(input, context);
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/json",
|
|
62
|
+
};
|
|
63
|
+
b.bp("/api/instance");
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(take(input, {
|
|
66
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
67
|
+
instanceDescription: [],
|
|
68
|
+
instanceName: [],
|
|
69
|
+
kmsKeyArn: [],
|
|
70
|
+
tags: (_) => _json(_),
|
|
71
|
+
}));
|
|
72
|
+
b.m("POST").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
74
|
+
};
|
|
58
75
|
export const se_DeleteDataIntegrationFlowCommand = async (input, context) => {
|
|
59
76
|
const b = rb(input, context);
|
|
60
77
|
const headers = {};
|
|
@@ -76,6 +93,15 @@ export const se_DeleteDataLakeDatasetCommand = async (input, context) => {
|
|
|
76
93
|
b.m("DELETE").h(headers).b(body);
|
|
77
94
|
return b.build();
|
|
78
95
|
};
|
|
96
|
+
export const se_DeleteInstanceCommand = async (input, context) => {
|
|
97
|
+
const b = rb(input, context);
|
|
98
|
+
const headers = {};
|
|
99
|
+
b.bp("/api/instance/{instanceId}");
|
|
100
|
+
b.p("instanceId", () => input.instanceId, "{instanceId}", false);
|
|
101
|
+
let body;
|
|
102
|
+
b.m("DELETE").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
104
|
+
};
|
|
79
105
|
export const se_GetBillOfMaterialsImportJobCommand = async (input, context) => {
|
|
80
106
|
const b = rb(input, context);
|
|
81
107
|
const headers = {};
|
|
@@ -107,6 +133,15 @@ export const se_GetDataLakeDatasetCommand = async (input, context) => {
|
|
|
107
133
|
b.m("GET").h(headers).b(body);
|
|
108
134
|
return b.build();
|
|
109
135
|
};
|
|
136
|
+
export const se_GetInstanceCommand = async (input, context) => {
|
|
137
|
+
const b = rb(input, context);
|
|
138
|
+
const headers = {};
|
|
139
|
+
b.bp("/api/instance/{instanceId}");
|
|
140
|
+
b.p("instanceId", () => input.instanceId, "{instanceId}", false);
|
|
141
|
+
let body;
|
|
142
|
+
b.m("GET").h(headers).b(body);
|
|
143
|
+
return b.build();
|
|
144
|
+
};
|
|
110
145
|
export const se_ListDataIntegrationFlowsCommand = async (input, context) => {
|
|
111
146
|
const b = rb(input, context);
|
|
112
147
|
const headers = {};
|
|
@@ -134,6 +169,20 @@ export const se_ListDataLakeDatasetsCommand = async (input, context) => {
|
|
|
134
169
|
b.m("GET").h(headers).q(query).b(body);
|
|
135
170
|
return b.build();
|
|
136
171
|
};
|
|
172
|
+
export const se_ListInstancesCommand = async (input, context) => {
|
|
173
|
+
const b = rb(input, context);
|
|
174
|
+
const headers = {};
|
|
175
|
+
b.bp("/api/instance");
|
|
176
|
+
const query = map({
|
|
177
|
+
[_nT]: [, input[_nT]],
|
|
178
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
179
|
+
[_iNF]: [() => input.instanceNameFilter !== void 0, () => input[_iNF] || []],
|
|
180
|
+
[_iSF]: [() => input.instanceStateFilter !== void 0, () => input[_iSF] || []],
|
|
181
|
+
});
|
|
182
|
+
let body;
|
|
183
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
184
|
+
return b.build();
|
|
185
|
+
};
|
|
137
186
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
138
187
|
const b = rb(input, context);
|
|
139
188
|
const headers = {};
|
|
@@ -220,6 +269,21 @@ export const se_UpdateDataLakeDatasetCommand = async (input, context) => {
|
|
|
220
269
|
b.m("PATCH").h(headers).b(body);
|
|
221
270
|
return b.build();
|
|
222
271
|
};
|
|
272
|
+
export const se_UpdateInstanceCommand = async (input, context) => {
|
|
273
|
+
const b = rb(input, context);
|
|
274
|
+
const headers = {
|
|
275
|
+
"content-type": "application/json",
|
|
276
|
+
};
|
|
277
|
+
b.bp("/api/instance/{instanceId}");
|
|
278
|
+
b.p("instanceId", () => input.instanceId, "{instanceId}", false);
|
|
279
|
+
let body;
|
|
280
|
+
body = JSON.stringify(take(input, {
|
|
281
|
+
instanceDescription: [],
|
|
282
|
+
instanceName: [],
|
|
283
|
+
}));
|
|
284
|
+
b.m("PATCH").h(headers).b(body);
|
|
285
|
+
return b.build();
|
|
286
|
+
};
|
|
223
287
|
export const de_CreateBillOfMaterialsImportJobCommand = async (output, context) => {
|
|
224
288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
225
289
|
return de_CommandError(output, context);
|
|
@@ -263,6 +327,20 @@ export const de_CreateDataLakeDatasetCommand = async (output, context) => {
|
|
|
263
327
|
Object.assign(contents, doc);
|
|
264
328
|
return contents;
|
|
265
329
|
};
|
|
330
|
+
export const de_CreateInstanceCommand = async (output, context) => {
|
|
331
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
332
|
+
return de_CommandError(output, context);
|
|
333
|
+
}
|
|
334
|
+
const contents = map({
|
|
335
|
+
$metadata: deserializeMetadata(output),
|
|
336
|
+
});
|
|
337
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
338
|
+
const doc = take(data, {
|
|
339
|
+
instance: (_) => de_Instance(_, context),
|
|
340
|
+
});
|
|
341
|
+
Object.assign(contents, doc);
|
|
342
|
+
return contents;
|
|
343
|
+
};
|
|
266
344
|
export const de_DeleteDataIntegrationFlowCommand = async (output, context) => {
|
|
267
345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
268
346
|
return de_CommandError(output, context);
|
|
@@ -294,6 +372,20 @@ export const de_DeleteDataLakeDatasetCommand = async (output, context) => {
|
|
|
294
372
|
Object.assign(contents, doc);
|
|
295
373
|
return contents;
|
|
296
374
|
};
|
|
375
|
+
export const de_DeleteInstanceCommand = async (output, context) => {
|
|
376
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
377
|
+
return de_CommandError(output, context);
|
|
378
|
+
}
|
|
379
|
+
const contents = map({
|
|
380
|
+
$metadata: deserializeMetadata(output),
|
|
381
|
+
});
|
|
382
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
383
|
+
const doc = take(data, {
|
|
384
|
+
instance: (_) => de_Instance(_, context),
|
|
385
|
+
});
|
|
386
|
+
Object.assign(contents, doc);
|
|
387
|
+
return contents;
|
|
388
|
+
};
|
|
297
389
|
export const de_GetBillOfMaterialsImportJobCommand = async (output, context) => {
|
|
298
390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
299
391
|
return de_CommandError(output, context);
|
|
@@ -336,6 +428,20 @@ export const de_GetDataLakeDatasetCommand = async (output, context) => {
|
|
|
336
428
|
Object.assign(contents, doc);
|
|
337
429
|
return contents;
|
|
338
430
|
};
|
|
431
|
+
export const de_GetInstanceCommand = async (output, context) => {
|
|
432
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
433
|
+
return de_CommandError(output, context);
|
|
434
|
+
}
|
|
435
|
+
const contents = map({
|
|
436
|
+
$metadata: deserializeMetadata(output),
|
|
437
|
+
});
|
|
438
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
439
|
+
const doc = take(data, {
|
|
440
|
+
instance: (_) => de_Instance(_, context),
|
|
441
|
+
});
|
|
442
|
+
Object.assign(contents, doc);
|
|
443
|
+
return contents;
|
|
444
|
+
};
|
|
339
445
|
export const de_ListDataIntegrationFlowsCommand = async (output, context) => {
|
|
340
446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
341
447
|
return de_CommandError(output, context);
|
|
@@ -366,6 +472,21 @@ export const de_ListDataLakeDatasetsCommand = async (output, context) => {
|
|
|
366
472
|
Object.assign(contents, doc);
|
|
367
473
|
return contents;
|
|
368
474
|
};
|
|
475
|
+
export const de_ListInstancesCommand = async (output, context) => {
|
|
476
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
477
|
+
return de_CommandError(output, context);
|
|
478
|
+
}
|
|
479
|
+
const contents = map({
|
|
480
|
+
$metadata: deserializeMetadata(output),
|
|
481
|
+
});
|
|
482
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
483
|
+
const doc = take(data, {
|
|
484
|
+
instances: (_) => de_InstanceList(_, context),
|
|
485
|
+
nextToken: __expectString,
|
|
486
|
+
});
|
|
487
|
+
Object.assign(contents, doc);
|
|
488
|
+
return contents;
|
|
489
|
+
};
|
|
369
490
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
370
491
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
371
492
|
return de_CommandError(output, context);
|
|
@@ -442,6 +563,20 @@ export const de_UpdateDataLakeDatasetCommand = async (output, context) => {
|
|
|
442
563
|
Object.assign(contents, doc);
|
|
443
564
|
return contents;
|
|
444
565
|
};
|
|
566
|
+
export const de_UpdateInstanceCommand = async (output, context) => {
|
|
567
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
+
return de_CommandError(output, context);
|
|
569
|
+
}
|
|
570
|
+
const contents = map({
|
|
571
|
+
$metadata: deserializeMetadata(output),
|
|
572
|
+
});
|
|
573
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
574
|
+
const doc = take(data, {
|
|
575
|
+
instance: (_) => de_Instance(_, context),
|
|
576
|
+
});
|
|
577
|
+
Object.assign(contents, doc);
|
|
578
|
+
return contents;
|
|
579
|
+
};
|
|
445
580
|
const de_CommandError = async (output, context) => {
|
|
446
581
|
const parsedOutput = {
|
|
447
582
|
...output,
|
|
@@ -610,6 +745,28 @@ const de_DataLakeDatasetList = (output, context) => {
|
|
|
610
745
|
});
|
|
611
746
|
return retVal;
|
|
612
747
|
};
|
|
748
|
+
const de_Instance = (output, context) => {
|
|
749
|
+
return take(output, {
|
|
750
|
+
awsAccountId: __expectString,
|
|
751
|
+
createdTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
752
|
+
instanceDescription: __expectString,
|
|
753
|
+
instanceId: __expectString,
|
|
754
|
+
instanceName: __expectString,
|
|
755
|
+
kmsKeyArn: __expectString,
|
|
756
|
+
lastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
757
|
+
state: __expectString,
|
|
758
|
+
versionNumber: __limitedParseDouble,
|
|
759
|
+
webAppDnsDomain: __expectString,
|
|
760
|
+
});
|
|
761
|
+
};
|
|
762
|
+
const de_InstanceList = (output, context) => {
|
|
763
|
+
const retVal = (output || [])
|
|
764
|
+
.filter((e) => e != null)
|
|
765
|
+
.map((entry) => {
|
|
766
|
+
return de_Instance(entry, context);
|
|
767
|
+
});
|
|
768
|
+
return retVal;
|
|
769
|
+
};
|
|
613
770
|
const deserializeMetadata = (output) => ({
|
|
614
771
|
httpStatusCode: output.statusCode,
|
|
615
772
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -617,6 +774,8 @@ const deserializeMetadata = (output) => ({
|
|
|
617
774
|
cfId: output.headers["x-amz-cf-id"],
|
|
618
775
|
});
|
|
619
776
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
777
|
+
const _iNF = "instanceNameFilter";
|
|
778
|
+
const _iSF = "instanceStateFilter";
|
|
620
779
|
const _mR = "maxResults";
|
|
621
780
|
const _nT = "nextToken";
|
|
622
781
|
const _tK = "tagKeys";
|
|
@@ -2,19 +2,24 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
|
2
2
|
import { CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput } from "./commands/CreateBillOfMaterialsImportJobCommand";
|
|
3
3
|
import { CreateDataIntegrationFlowCommandInput, CreateDataIntegrationFlowCommandOutput } from "./commands/CreateDataIntegrationFlowCommand";
|
|
4
4
|
import { CreateDataLakeDatasetCommandInput, CreateDataLakeDatasetCommandOutput } from "./commands/CreateDataLakeDatasetCommand";
|
|
5
|
+
import { CreateInstanceCommandInput, CreateInstanceCommandOutput } from "./commands/CreateInstanceCommand";
|
|
5
6
|
import { DeleteDataIntegrationFlowCommandInput, DeleteDataIntegrationFlowCommandOutput } from "./commands/DeleteDataIntegrationFlowCommand";
|
|
6
7
|
import { DeleteDataLakeDatasetCommandInput, DeleteDataLakeDatasetCommandOutput } from "./commands/DeleteDataLakeDatasetCommand";
|
|
8
|
+
import { DeleteInstanceCommandInput, DeleteInstanceCommandOutput } from "./commands/DeleteInstanceCommand";
|
|
7
9
|
import { GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput } from "./commands/GetBillOfMaterialsImportJobCommand";
|
|
8
10
|
import { GetDataIntegrationFlowCommandInput, GetDataIntegrationFlowCommandOutput } from "./commands/GetDataIntegrationFlowCommand";
|
|
9
11
|
import { GetDataLakeDatasetCommandInput, GetDataLakeDatasetCommandOutput } from "./commands/GetDataLakeDatasetCommand";
|
|
12
|
+
import { GetInstanceCommandInput, GetInstanceCommandOutput } from "./commands/GetInstanceCommand";
|
|
10
13
|
import { ListDataIntegrationFlowsCommandInput, ListDataIntegrationFlowsCommandOutput } from "./commands/ListDataIntegrationFlowsCommand";
|
|
11
14
|
import { ListDataLakeDatasetsCommandInput, ListDataLakeDatasetsCommandOutput } from "./commands/ListDataLakeDatasetsCommand";
|
|
15
|
+
import { ListInstancesCommandInput, ListInstancesCommandOutput } from "./commands/ListInstancesCommand";
|
|
12
16
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
13
17
|
import { SendDataIntegrationEventCommandInput, SendDataIntegrationEventCommandOutput } from "./commands/SendDataIntegrationEventCommand";
|
|
14
18
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
15
19
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
16
20
|
import { UpdateDataIntegrationFlowCommandInput, UpdateDataIntegrationFlowCommandOutput } from "./commands/UpdateDataIntegrationFlowCommand";
|
|
17
21
|
import { UpdateDataLakeDatasetCommandInput, UpdateDataLakeDatasetCommandOutput } from "./commands/UpdateDataLakeDatasetCommand";
|
|
22
|
+
import { UpdateInstanceCommandInput, UpdateInstanceCommandOutput } from "./commands/UpdateInstanceCommand";
|
|
18
23
|
import { SupplyChainClient } from "./SupplyChainClient";
|
|
19
24
|
export interface SupplyChain {
|
|
20
25
|
/**
|
|
@@ -35,6 +40,13 @@ export interface SupplyChain {
|
|
|
35
40
|
createDataLakeDataset(args: CreateDataLakeDatasetCommandInput, options?: __HttpHandlerOptions): Promise<CreateDataLakeDatasetCommandOutput>;
|
|
36
41
|
createDataLakeDataset(args: CreateDataLakeDatasetCommandInput, cb: (err: any, data?: CreateDataLakeDatasetCommandOutput) => void): void;
|
|
37
42
|
createDataLakeDataset(args: CreateDataLakeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDataLakeDatasetCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link CreateInstanceCommand}
|
|
45
|
+
*/
|
|
46
|
+
createInstance(): Promise<CreateInstanceCommandOutput>;
|
|
47
|
+
createInstance(args: CreateInstanceCommandInput, options?: __HttpHandlerOptions): Promise<CreateInstanceCommandOutput>;
|
|
48
|
+
createInstance(args: CreateInstanceCommandInput, cb: (err: any, data?: CreateInstanceCommandOutput) => void): void;
|
|
49
|
+
createInstance(args: CreateInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateInstanceCommandOutput) => void): void;
|
|
38
50
|
/**
|
|
39
51
|
* @see {@link DeleteDataIntegrationFlowCommand}
|
|
40
52
|
*/
|
|
@@ -47,6 +59,12 @@ export interface SupplyChain {
|
|
|
47
59
|
deleteDataLakeDataset(args: DeleteDataLakeDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDataLakeDatasetCommandOutput>;
|
|
48
60
|
deleteDataLakeDataset(args: DeleteDataLakeDatasetCommandInput, cb: (err: any, data?: DeleteDataLakeDatasetCommandOutput) => void): void;
|
|
49
61
|
deleteDataLakeDataset(args: DeleteDataLakeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDataLakeDatasetCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link DeleteInstanceCommand}
|
|
64
|
+
*/
|
|
65
|
+
deleteInstance(args: DeleteInstanceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInstanceCommandOutput>;
|
|
66
|
+
deleteInstance(args: DeleteInstanceCommandInput, cb: (err: any, data?: DeleteInstanceCommandOutput) => void): void;
|
|
67
|
+
deleteInstance(args: DeleteInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInstanceCommandOutput) => void): void;
|
|
50
68
|
/**
|
|
51
69
|
* @see {@link GetBillOfMaterialsImportJobCommand}
|
|
52
70
|
*/
|
|
@@ -65,6 +83,12 @@ export interface SupplyChain {
|
|
|
65
83
|
getDataLakeDataset(args: GetDataLakeDatasetCommandInput, options?: __HttpHandlerOptions): Promise<GetDataLakeDatasetCommandOutput>;
|
|
66
84
|
getDataLakeDataset(args: GetDataLakeDatasetCommandInput, cb: (err: any, data?: GetDataLakeDatasetCommandOutput) => void): void;
|
|
67
85
|
getDataLakeDataset(args: GetDataLakeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataLakeDatasetCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link GetInstanceCommand}
|
|
88
|
+
*/
|
|
89
|
+
getInstance(args: GetInstanceCommandInput, options?: __HttpHandlerOptions): Promise<GetInstanceCommandOutput>;
|
|
90
|
+
getInstance(args: GetInstanceCommandInput, cb: (err: any, data?: GetInstanceCommandOutput) => void): void;
|
|
91
|
+
getInstance(args: GetInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInstanceCommandOutput) => void): void;
|
|
68
92
|
/**
|
|
69
93
|
* @see {@link ListDataIntegrationFlowsCommand}
|
|
70
94
|
*/
|
|
@@ -77,6 +101,13 @@ export interface SupplyChain {
|
|
|
77
101
|
listDataLakeDatasets(args: ListDataLakeDatasetsCommandInput, options?: __HttpHandlerOptions): Promise<ListDataLakeDatasetsCommandOutput>;
|
|
78
102
|
listDataLakeDatasets(args: ListDataLakeDatasetsCommandInput, cb: (err: any, data?: ListDataLakeDatasetsCommandOutput) => void): void;
|
|
79
103
|
listDataLakeDatasets(args: ListDataLakeDatasetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDataLakeDatasetsCommandOutput) => void): void;
|
|
104
|
+
/**
|
|
105
|
+
* @see {@link ListInstancesCommand}
|
|
106
|
+
*/
|
|
107
|
+
listInstances(): Promise<ListInstancesCommandOutput>;
|
|
108
|
+
listInstances(args: ListInstancesCommandInput, options?: __HttpHandlerOptions): Promise<ListInstancesCommandOutput>;
|
|
109
|
+
listInstances(args: ListInstancesCommandInput, cb: (err: any, data?: ListInstancesCommandOutput) => void): void;
|
|
110
|
+
listInstances(args: ListInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInstancesCommandOutput) => void): void;
|
|
80
111
|
/**
|
|
81
112
|
* @see {@link ListTagsForResourceCommand}
|
|
82
113
|
*/
|
|
@@ -113,6 +144,12 @@ export interface SupplyChain {
|
|
|
113
144
|
updateDataLakeDataset(args: UpdateDataLakeDatasetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDataLakeDatasetCommandOutput>;
|
|
114
145
|
updateDataLakeDataset(args: UpdateDataLakeDatasetCommandInput, cb: (err: any, data?: UpdateDataLakeDatasetCommandOutput) => void): void;
|
|
115
146
|
updateDataLakeDataset(args: UpdateDataLakeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataLakeDatasetCommandOutput) => void): void;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link UpdateInstanceCommand}
|
|
149
|
+
*/
|
|
150
|
+
updateInstance(args: UpdateInstanceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateInstanceCommandOutput>;
|
|
151
|
+
updateInstance(args: UpdateInstanceCommandInput, cb: (err: any, data?: UpdateInstanceCommandOutput) => void): void;
|
|
152
|
+
updateInstance(args: UpdateInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateInstanceCommandOutput) => void): void;
|
|
116
153
|
}
|
|
117
154
|
/**
|
|
118
155
|
* <p>
|
|
@@ -10,30 +10,35 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
|
|
|
10
10
|
import { CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput } from "./commands/CreateBillOfMaterialsImportJobCommand";
|
|
11
11
|
import { CreateDataIntegrationFlowCommandInput, CreateDataIntegrationFlowCommandOutput } from "./commands/CreateDataIntegrationFlowCommand";
|
|
12
12
|
import { CreateDataLakeDatasetCommandInput, CreateDataLakeDatasetCommandOutput } from "./commands/CreateDataLakeDatasetCommand";
|
|
13
|
+
import { CreateInstanceCommandInput, CreateInstanceCommandOutput } from "./commands/CreateInstanceCommand";
|
|
13
14
|
import { DeleteDataIntegrationFlowCommandInput, DeleteDataIntegrationFlowCommandOutput } from "./commands/DeleteDataIntegrationFlowCommand";
|
|
14
15
|
import { DeleteDataLakeDatasetCommandInput, DeleteDataLakeDatasetCommandOutput } from "./commands/DeleteDataLakeDatasetCommand";
|
|
16
|
+
import { DeleteInstanceCommandInput, DeleteInstanceCommandOutput } from "./commands/DeleteInstanceCommand";
|
|
15
17
|
import { GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput } from "./commands/GetBillOfMaterialsImportJobCommand";
|
|
16
18
|
import { GetDataIntegrationFlowCommandInput, GetDataIntegrationFlowCommandOutput } from "./commands/GetDataIntegrationFlowCommand";
|
|
17
19
|
import { GetDataLakeDatasetCommandInput, GetDataLakeDatasetCommandOutput } from "./commands/GetDataLakeDatasetCommand";
|
|
20
|
+
import { GetInstanceCommandInput, GetInstanceCommandOutput } from "./commands/GetInstanceCommand";
|
|
18
21
|
import { ListDataIntegrationFlowsCommandInput, ListDataIntegrationFlowsCommandOutput } from "./commands/ListDataIntegrationFlowsCommand";
|
|
19
22
|
import { ListDataLakeDatasetsCommandInput, ListDataLakeDatasetsCommandOutput } from "./commands/ListDataLakeDatasetsCommand";
|
|
23
|
+
import { ListInstancesCommandInput, ListInstancesCommandOutput } from "./commands/ListInstancesCommand";
|
|
20
24
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
21
25
|
import { SendDataIntegrationEventCommandInput, SendDataIntegrationEventCommandOutput } from "./commands/SendDataIntegrationEventCommand";
|
|
22
26
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
23
27
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
24
28
|
import { UpdateDataIntegrationFlowCommandInput, UpdateDataIntegrationFlowCommandOutput } from "./commands/UpdateDataIntegrationFlowCommand";
|
|
25
29
|
import { UpdateDataLakeDatasetCommandInput, UpdateDataLakeDatasetCommandOutput } from "./commands/UpdateDataLakeDatasetCommand";
|
|
30
|
+
import { UpdateInstanceCommandInput, UpdateInstanceCommandOutput } from "./commands/UpdateInstanceCommand";
|
|
26
31
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
27
32
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
28
33
|
export { __Client };
|
|
29
34
|
/**
|
|
30
35
|
* @public
|
|
31
36
|
*/
|
|
32
|
-
export type ServiceInputTypes = CreateBillOfMaterialsImportJobCommandInput | CreateDataIntegrationFlowCommandInput | CreateDataLakeDatasetCommandInput | DeleteDataIntegrationFlowCommandInput | DeleteDataLakeDatasetCommandInput | GetBillOfMaterialsImportJobCommandInput | GetDataIntegrationFlowCommandInput | GetDataLakeDatasetCommandInput | ListDataIntegrationFlowsCommandInput | ListDataLakeDatasetsCommandInput | ListTagsForResourceCommandInput | SendDataIntegrationEventCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataIntegrationFlowCommandInput | UpdateDataLakeDatasetCommandInput;
|
|
37
|
+
export type ServiceInputTypes = CreateBillOfMaterialsImportJobCommandInput | CreateDataIntegrationFlowCommandInput | CreateDataLakeDatasetCommandInput | CreateInstanceCommandInput | DeleteDataIntegrationFlowCommandInput | DeleteDataLakeDatasetCommandInput | DeleteInstanceCommandInput | GetBillOfMaterialsImportJobCommandInput | GetDataIntegrationFlowCommandInput | GetDataLakeDatasetCommandInput | GetInstanceCommandInput | ListDataIntegrationFlowsCommandInput | ListDataLakeDatasetsCommandInput | ListInstancesCommandInput | ListTagsForResourceCommandInput | SendDataIntegrationEventCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataIntegrationFlowCommandInput | UpdateDataLakeDatasetCommandInput | UpdateInstanceCommandInput;
|
|
33
38
|
/**
|
|
34
39
|
* @public
|
|
35
40
|
*/
|
|
36
|
-
export type ServiceOutputTypes = CreateBillOfMaterialsImportJobCommandOutput | CreateDataIntegrationFlowCommandOutput | CreateDataLakeDatasetCommandOutput | DeleteDataIntegrationFlowCommandOutput | DeleteDataLakeDatasetCommandOutput | GetBillOfMaterialsImportJobCommandOutput | GetDataIntegrationFlowCommandOutput | GetDataLakeDatasetCommandOutput | ListDataIntegrationFlowsCommandOutput | ListDataLakeDatasetsCommandOutput | ListTagsForResourceCommandOutput | SendDataIntegrationEventCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataIntegrationFlowCommandOutput | UpdateDataLakeDatasetCommandOutput;
|
|
41
|
+
export type ServiceOutputTypes = CreateBillOfMaterialsImportJobCommandOutput | CreateDataIntegrationFlowCommandOutput | CreateDataLakeDatasetCommandOutput | CreateInstanceCommandOutput | DeleteDataIntegrationFlowCommandOutput | DeleteDataLakeDatasetCommandOutput | DeleteInstanceCommandOutput | GetBillOfMaterialsImportJobCommandOutput | GetDataIntegrationFlowCommandOutput | GetDataLakeDatasetCommandOutput | GetInstanceCommandOutput | ListDataIntegrationFlowsCommandOutput | ListDataLakeDatasetsCommandOutput | ListInstancesCommandOutput | ListTagsForResourceCommandOutput | SendDataIntegrationEventCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataIntegrationFlowCommandOutput | UpdateDataLakeDatasetCommandOutput | UpdateInstanceCommandOutput;
|
|
37
42
|
/**
|
|
38
43
|
* @public
|
|
39
44
|
*/
|