@aws-sdk/client-supplychain 3.774.0 → 3.777.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/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/SupplyChainClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/CreateBillOfMaterialsImportJobCommand.d.ts +7 -7
- package/dist-types/commands/CreateDataIntegrationFlowCommand.d.ts +47 -48
- package/dist-types/commands/CreateDataLakeDatasetCommand.d.ts +160 -161
- package/dist-types/commands/CreateInstanceCommand.d.ts +29 -30
- package/dist-types/commands/DeleteDataIntegrationFlowCommand.d.ts +7 -7
- package/dist-types/commands/DeleteDataLakeDatasetCommand.d.ts +16 -17
- package/dist-types/commands/DeleteInstanceCommand.d.ts +14 -14
- package/dist-types/commands/GetBillOfMaterialsImportJobCommand.d.ts +19 -20
- package/dist-types/commands/GetDataIntegrationFlowCommand.d.ts +24 -24
- package/dist-types/commands/GetDataLakeDatasetCommand.d.ts +136 -137
- package/dist-types/commands/GetInstanceCommand.d.ts +27 -28
- package/dist-types/commands/ListDataIntegrationFlowsCommand.d.ts +44 -44
- package/dist-types/commands/ListDataLakeDatasetsCommand.d.ts +157 -158
- package/dist-types/commands/ListInstancesCommand.d.ts +60 -63
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -6
- package/dist-types/commands/SendDataIntegrationEventCommand.d.ts +107 -121
- package/dist-types/commands/TagResourceCommand.d.ts +9 -6
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateDataIntegrationFlowCommand.d.ts +80 -81
- package/dist-types/commands/UpdateDataLakeDatasetCommand.d.ts +138 -139
- package/dist-types/commands/UpdateInstanceCommand.d.ts +16 -16
- package/package.json +33 -33
|
@@ -40,8 +40,6 @@ const defaultSupplyChainHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultSupplyChainHttpAuthSchemeProvider = defaultSupplyChainHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -84,12 +84,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
84
84
|
|
|
85
85
|
// src/endpoint/EndpointParameters.ts
|
|
86
86
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
87
|
-
return {
|
|
88
|
-
...options,
|
|
87
|
+
return Object.assign(options, {
|
|
89
88
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
90
89
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
91
90
|
defaultSigningName: "scn"
|
|
92
|
-
};
|
|
91
|
+
});
|
|
93
92
|
}, "resolveClientEndpointParameters");
|
|
94
93
|
var commonParams = {
|
|
95
94
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -146,22 +145,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
146
145
|
}, "resolveHttpAuthRuntimeConfig");
|
|
147
146
|
|
|
148
147
|
// src/runtimeExtensions.ts
|
|
149
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
150
148
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
151
|
-
const extensionConfiguration =
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
const extensionConfiguration = Object.assign(
|
|
150
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
151
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
152
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
153
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
154
|
+
);
|
|
157
155
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
156
|
+
return Object.assign(
|
|
157
|
+
runtimeConfig,
|
|
158
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
159
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
160
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
161
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
162
|
+
);
|
|
165
163
|
}, "resolveRuntimeExtensions");
|
|
166
164
|
|
|
167
165
|
// src/SupplyChainClient.ts
|
|
@@ -175,6 +173,8 @@ var SupplyChainClient = class extends import_smithy_client.Client {
|
|
|
175
173
|
config;
|
|
176
174
|
constructor(...[configuration]) {
|
|
177
175
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
176
|
+
super(_config_0);
|
|
177
|
+
this.initConfig = _config_0;
|
|
178
178
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
179
179
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
180
180
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -183,7 +183,6 @@ var SupplyChainClient = class extends import_smithy_client.Client {
|
|
|
183
183
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
184
184
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
185
185
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
186
|
-
super(_config_8);
|
|
187
186
|
this.config = _config_8;
|
|
188
187
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
189
188
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class SupplyChainClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class SupplyChainClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultSupplyChainHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "scn",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -78,25 +78,25 @@ declare const CreateBillOfMaterialsImportJobCommand_base: {
|
|
|
78
78
|
* @throws {@link SupplyChainServiceException}
|
|
79
79
|
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
80
80
|
*
|
|
81
|
-
*
|
|
81
|
+
*
|
|
82
82
|
* @example Invoke CreateBillOfMaterialsImportJob
|
|
83
83
|
* ```javascript
|
|
84
84
|
* //
|
|
85
85
|
* const input = {
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* clientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
87
|
+
* instanceId: "60f82bbd-71f7-4fcd-a941-472f574c5243",
|
|
88
|
+
* s3uri: "s3://mybucketname/pathelemene/file.csv"
|
|
89
89
|
* };
|
|
90
90
|
* const command = new CreateBillOfMaterialsImportJobCommand(input);
|
|
91
91
|
* const response = await client.send(command);
|
|
92
|
-
* /* response
|
|
92
|
+
* /* response is
|
|
93
93
|
* {
|
|
94
|
-
*
|
|
94
|
+
* jobId: "f79b359b-1515-4436-a3bf-bae7b33e47b4"
|
|
95
95
|
* }
|
|
96
96
|
* *\/
|
|
97
|
-
* // example id: example-1
|
|
98
97
|
* ```
|
|
99
98
|
*
|
|
99
|
+
* @public
|
|
100
100
|
*/
|
|
101
101
|
export declare class CreateBillOfMaterialsImportJobCommand extends CreateBillOfMaterialsImportJobCommand_base {
|
|
102
102
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -123,99 +123,98 @@ declare const CreateDataIntegrationFlowCommand_base: {
|
|
|
123
123
|
* @throws {@link SupplyChainServiceException}
|
|
124
124
|
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
125
125
|
*
|
|
126
|
-
*
|
|
126
|
+
*
|
|
127
127
|
* @example Successful CreateDataIntegrationFlow for s3 to dataset flow
|
|
128
128
|
* ```javascript
|
|
129
129
|
* //
|
|
130
130
|
* const input = {
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
131
|
+
* instanceId: "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
132
|
+
* name: "testStagingFlow",
|
|
133
|
+
* sources: [
|
|
134
134
|
* {
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
135
|
+
* s3Source: {
|
|
136
|
+
* bucketName: "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f",
|
|
137
|
+
* prefix: "example-prefix"
|
|
138
138
|
* },
|
|
139
|
-
*
|
|
140
|
-
*
|
|
139
|
+
* sourceName: "testSourceName",
|
|
140
|
+
* sourceType: "S3"
|
|
141
141
|
* }
|
|
142
142
|
* ],
|
|
143
|
-
*
|
|
144
|
-
*
|
|
143
|
+
* tags: {
|
|
144
|
+
* tagKey1: "tagValue1"
|
|
145
145
|
* },
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
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
149
|
* },
|
|
150
|
-
*
|
|
150
|
+
* targetType: "DATASET"
|
|
151
151
|
* },
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
152
|
+
* transformation: {
|
|
153
|
+
* sqlTransformation: {
|
|
154
|
+
* query: "SELECT * FROM testSourceName"
|
|
155
155
|
* },
|
|
156
|
-
*
|
|
156
|
+
* transformationType: "SQL"
|
|
157
157
|
* }
|
|
158
158
|
* };
|
|
159
159
|
* const command = new CreateDataIntegrationFlowCommand(input);
|
|
160
160
|
* const response = await client.send(command);
|
|
161
|
-
* /* response
|
|
161
|
+
* /* response is
|
|
162
162
|
* {
|
|
163
|
-
*
|
|
164
|
-
*
|
|
163
|
+
* instanceId: "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
164
|
+
* name: "testStagingFlow"
|
|
165
165
|
* }
|
|
166
166
|
* *\/
|
|
167
|
-
* // example id: example-1
|
|
168
167
|
* ```
|
|
169
168
|
*
|
|
170
169
|
* @example Successful CreateDataIntegrationFlow for dataset to dataset flow
|
|
171
170
|
* ```javascript
|
|
172
171
|
* //
|
|
173
172
|
* const input = {
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
173
|
+
* instanceId: "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
174
|
+
* name: "trading-partner",
|
|
175
|
+
* sources: [
|
|
177
176
|
* {
|
|
178
|
-
*
|
|
179
|
-
*
|
|
177
|
+
* datasetSource: {
|
|
178
|
+
* datasetIdentifier: "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1"
|
|
180
179
|
* },
|
|
181
|
-
*
|
|
182
|
-
*
|
|
180
|
+
* sourceName: "testSourceName1",
|
|
181
|
+
* sourceType: "DATASET"
|
|
183
182
|
* },
|
|
184
183
|
* {
|
|
185
|
-
*
|
|
186
|
-
*
|
|
184
|
+
* datasetSource: {
|
|
185
|
+
* datasetIdentifier: "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2"
|
|
187
186
|
* },
|
|
188
|
-
*
|
|
189
|
-
*
|
|
187
|
+
* sourceName: "testSourceName2",
|
|
188
|
+
* sourceType: "DATASET"
|
|
190
189
|
* }
|
|
191
190
|
* ],
|
|
192
|
-
*
|
|
193
|
-
*
|
|
191
|
+
* tags: {
|
|
192
|
+
* tagKey1: "tagValue1"
|
|
194
193
|
* },
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
194
|
+
* target: {
|
|
195
|
+
* datasetTarget: {
|
|
196
|
+
* datasetIdentifier: "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner"
|
|
198
197
|
* },
|
|
199
|
-
*
|
|
198
|
+
* targetType: "DATASET"
|
|
200
199
|
* },
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
200
|
+
* transformation: {
|
|
201
|
+
* sqlTransformation: {
|
|
202
|
+
* 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
203
|
* },
|
|
205
|
-
*
|
|
204
|
+
* transformationType: "SQL"
|
|
206
205
|
* }
|
|
207
206
|
* };
|
|
208
207
|
* const command = new CreateDataIntegrationFlowCommand(input);
|
|
209
208
|
* const response = await client.send(command);
|
|
210
|
-
* /* response
|
|
209
|
+
* /* response is
|
|
211
210
|
* {
|
|
212
|
-
*
|
|
213
|
-
*
|
|
211
|
+
* instanceId: "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
212
|
+
* name: "trading-partner"
|
|
214
213
|
* }
|
|
215
214
|
* *\/
|
|
216
|
-
* // example id: example-2
|
|
217
215
|
* ```
|
|
218
216
|
*
|
|
217
|
+
* @public
|
|
219
218
|
*/
|
|
220
219
|
export declare class CreateDataIntegrationFlowCommand extends CreateDataIntegrationFlowCommand_base {
|
|
221
220
|
/** @internal type navigation helper, not in runtime. */
|