@aws-sdk/client-supplychain 3.658.1 → 3.662.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -7
- package/dist-cjs/index.js +675 -2
- package/dist-es/SupplyChain.js +26 -0
- package/dist-es/commands/CreateDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/CreateDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/DeleteDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/DeleteDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/GetDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/GetDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/ListDataIntegrationFlowsCommand.js +22 -0
- package/dist-es/commands/ListDataLakeDatasetsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateDataIntegrationFlowCommand.js +22 -0
- package/dist-es/commands/UpdateDataLakeDatasetCommand.js +22 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +27 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDataIntegrationFlowsPaginator.js +4 -0
- package/dist-es/pagination/ListDataLakeDatasetsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +396 -1
- package/dist-types/SupplyChain.d.ts +91 -0
- package/dist-types/SupplyChainClient.d.ts +15 -2
- package/dist-types/commands/CreateDataIntegrationFlowCommand.d.ts +232 -0
- package/dist-types/commands/CreateDataLakeDatasetCommand.d.ts +393 -0
- package/dist-types/commands/DeleteDataIntegrationFlowCommand.d.ts +112 -0
- package/dist-types/commands/DeleteDataLakeDatasetCommand.d.ts +136 -0
- package/dist-types/commands/GetDataIntegrationFlowCommand.d.ts +185 -0
- package/dist-types/commands/GetDataLakeDatasetCommand.d.ts +344 -0
- package/dist-types/commands/ListDataIntegrationFlowsCommand.d.ts +224 -0
- package/dist-types/commands/ListDataLakeDatasetsCommand.d.ts +377 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +112 -0
- package/dist-types/commands/TagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UpdateDataIntegrationFlowCommand.d.ts +328 -0
- package/dist-types/commands/UpdateDataLakeDatasetCommand.d.ts +347 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +909 -18
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListDataIntegrationFlowsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDataLakeDatasetsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
- package/dist-types/ts3.4/SupplyChain.d.ts +221 -0
- package/dist-types/ts3.4/SupplyChainClient.d.ts +80 -2
- package/dist-types/ts3.4/commands/CreateDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDataIntegrationFlowsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDataLakeDatasetsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateDataIntegrationFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateDataLakeDatasetCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +220 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListDataIntegrationFlowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDataLakeDatasetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +35 -35
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { UntagResourceRequest, UntagResourceResponse } 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 UntagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UntagResourceCommandInput extends UntagResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UntagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UntagResourceCommand_base: {
|
|
25
|
+
new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Delete 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, UntagResourceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
|
|
35
|
+
* // const { SupplyChainClient, UntagResourceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
|
|
36
|
+
* const client = new SupplyChainClient(config);
|
|
37
|
+
* const input = { // UntagResourceRequest
|
|
38
|
+
* resourceArn: "STRING_VALUE", // required
|
|
39
|
+
* tagKeys: [ // TagKeyList // required
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UntagResourceCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
|
|
50
|
+
* @returns {@link UntagResourceCommandOutput}
|
|
51
|
+
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link UntagResourceCommandOutput} 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 UntagResource
|
|
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
|
+
* "tagKeys": [
|
|
86
|
+
* "tagKey1"
|
|
87
|
+
* ]
|
|
88
|
+
* };
|
|
89
|
+
* const command = new UntagResourceCommand(input);
|
|
90
|
+
* await client.send(command);
|
|
91
|
+
* // example id: example-1
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: UntagResourceRequest;
|
|
100
|
+
output: {};
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: UntagResourceCommandInput;
|
|
104
|
+
output: UntagResourceCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { UpdateDataIntegrationFlowRequest, UpdateDataIntegrationFlowResponse } 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 UpdateDataIntegrationFlowCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateDataIntegrationFlowCommandInput extends UpdateDataIntegrationFlowRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateDataIntegrationFlowCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateDataIntegrationFlowCommandOutput extends UpdateDataIntegrationFlowResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateDataIntegrationFlowCommand_base: {
|
|
25
|
+
new (input: UpdateDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDataIntegrationFlowCommandInput, UpdateDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateDataIntegrationFlowCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDataIntegrationFlowCommandInput, UpdateDataIntegrationFlowCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Update the DataIntegrationFlow.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SupplyChainClient, UpdateDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
|
|
35
|
+
* // const { SupplyChainClient, UpdateDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
|
|
36
|
+
* const client = new SupplyChainClient(config);
|
|
37
|
+
* const input = { // UpdateDataIntegrationFlowRequest
|
|
38
|
+
* instanceId: "STRING_VALUE", // required
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* sources: [ // DataIntegrationFlowSourceList
|
|
41
|
+
* { // DataIntegrationFlowSource
|
|
42
|
+
* sourceType: "S3" || "DATASET", // required
|
|
43
|
+
* sourceName: "STRING_VALUE", // required
|
|
44
|
+
* s3Source: { // DataIntegrationFlowS3SourceConfiguration
|
|
45
|
+
* bucketName: "STRING_VALUE", // required
|
|
46
|
+
* prefix: "STRING_VALUE", // required
|
|
47
|
+
* options: { // DataIntegrationFlowS3Options
|
|
48
|
+
* fileType: "CSV" || "PARQUET" || "JSON",
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration
|
|
52
|
+
* datasetIdentifier: "STRING_VALUE", // required
|
|
53
|
+
* options: { // DataIntegrationFlowDatasetOptions
|
|
54
|
+
* loadType: "INCREMENTAL" || "REPLACE",
|
|
55
|
+
* dedupeRecords: true || false,
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* ],
|
|
60
|
+
* transformation: { // DataIntegrationFlowTransformation
|
|
61
|
+
* transformationType: "SQL" || "NONE", // required
|
|
62
|
+
* sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration
|
|
63
|
+
* query: "STRING_VALUE", // required
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* target: { // DataIntegrationFlowTarget
|
|
67
|
+
* targetType: "S3" || "DATASET", // required
|
|
68
|
+
* s3Target: { // DataIntegrationFlowS3TargetConfiguration
|
|
69
|
+
* bucketName: "STRING_VALUE", // required
|
|
70
|
+
* prefix: "STRING_VALUE", // required
|
|
71
|
+
* options: {
|
|
72
|
+
* fileType: "CSV" || "PARQUET" || "JSON",
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration
|
|
76
|
+
* datasetIdentifier: "STRING_VALUE", // required
|
|
77
|
+
* options: {
|
|
78
|
+
* loadType: "INCREMENTAL" || "REPLACE",
|
|
79
|
+
* dedupeRecords: true || false,
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* },
|
|
83
|
+
* };
|
|
84
|
+
* const command = new UpdateDataIntegrationFlowCommand(input);
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* // { // UpdateDataIntegrationFlowResponse
|
|
87
|
+
* // flow: { // DataIntegrationFlow
|
|
88
|
+
* // instanceId: "STRING_VALUE", // required
|
|
89
|
+
* // name: "STRING_VALUE", // required
|
|
90
|
+
* // sources: [ // DataIntegrationFlowSourceList // required
|
|
91
|
+
* // { // DataIntegrationFlowSource
|
|
92
|
+
* // sourceType: "S3" || "DATASET", // required
|
|
93
|
+
* // sourceName: "STRING_VALUE", // required
|
|
94
|
+
* // s3Source: { // DataIntegrationFlowS3SourceConfiguration
|
|
95
|
+
* // bucketName: "STRING_VALUE", // required
|
|
96
|
+
* // prefix: "STRING_VALUE", // required
|
|
97
|
+
* // options: { // DataIntegrationFlowS3Options
|
|
98
|
+
* // fileType: "CSV" || "PARQUET" || "JSON",
|
|
99
|
+
* // },
|
|
100
|
+
* // },
|
|
101
|
+
* // datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration
|
|
102
|
+
* // datasetIdentifier: "STRING_VALUE", // required
|
|
103
|
+
* // options: { // DataIntegrationFlowDatasetOptions
|
|
104
|
+
* // loadType: "INCREMENTAL" || "REPLACE",
|
|
105
|
+
* // dedupeRecords: true || false,
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
110
|
+
* // transformation: { // DataIntegrationFlowTransformation
|
|
111
|
+
* // transformationType: "SQL" || "NONE", // required
|
|
112
|
+
* // sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration
|
|
113
|
+
* // query: "STRING_VALUE", // required
|
|
114
|
+
* // },
|
|
115
|
+
* // },
|
|
116
|
+
* // target: { // DataIntegrationFlowTarget
|
|
117
|
+
* // targetType: "S3" || "DATASET", // required
|
|
118
|
+
* // s3Target: { // DataIntegrationFlowS3TargetConfiguration
|
|
119
|
+
* // bucketName: "STRING_VALUE", // required
|
|
120
|
+
* // prefix: "STRING_VALUE", // required
|
|
121
|
+
* // options: {
|
|
122
|
+
* // fileType: "CSV" || "PARQUET" || "JSON",
|
|
123
|
+
* // },
|
|
124
|
+
* // },
|
|
125
|
+
* // datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration
|
|
126
|
+
* // datasetIdentifier: "STRING_VALUE", // required
|
|
127
|
+
* // options: {
|
|
128
|
+
* // loadType: "INCREMENTAL" || "REPLACE",
|
|
129
|
+
* // dedupeRecords: true || false,
|
|
130
|
+
* // },
|
|
131
|
+
* // },
|
|
132
|
+
* // },
|
|
133
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
134
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
135
|
+
* // },
|
|
136
|
+
* // };
|
|
137
|
+
*
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* @param UpdateDataIntegrationFlowCommandInput - {@link UpdateDataIntegrationFlowCommandInput}
|
|
141
|
+
* @returns {@link UpdateDataIntegrationFlowCommandOutput}
|
|
142
|
+
* @see {@link UpdateDataIntegrationFlowCommandInput} for command's `input` shape.
|
|
143
|
+
* @see {@link UpdateDataIntegrationFlowCommandOutput} for command's `response` shape.
|
|
144
|
+
* @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
147
|
+
* <p>You do not have the required privileges to perform this action.</p>
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link InternalServerException} (server fault)
|
|
150
|
+
* <p>Unexpected error during processing of request.</p>
|
|
151
|
+
*
|
|
152
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
153
|
+
* <p>Request references a resource which does not exist.</p>
|
|
154
|
+
*
|
|
155
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
156
|
+
* <p>Request was denied due to request throttling.</p>
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link ValidationException} (client fault)
|
|
159
|
+
* <p>The input does not satisfy the constraints specified by an AWS service.</p>
|
|
160
|
+
*
|
|
161
|
+
* @throws {@link ConflictException} (client fault)
|
|
162
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
163
|
+
*
|
|
164
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
165
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
166
|
+
*
|
|
167
|
+
* @throws {@link SupplyChainServiceException}
|
|
168
|
+
* <p>Base exception class for all service exceptions from SupplyChain service.</p>
|
|
169
|
+
*
|
|
170
|
+
* @public
|
|
171
|
+
* @example Successful UpdateDataIntegrationFlow for s3 to dataset flow to update SQL transformation
|
|
172
|
+
* ```javascript
|
|
173
|
+
* //
|
|
174
|
+
* const input = {
|
|
175
|
+
* "name": "testStagingFlow",
|
|
176
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
177
|
+
* "sources": [
|
|
178
|
+
* {
|
|
179
|
+
* "s3Source": {
|
|
180
|
+
* "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f",
|
|
181
|
+
* "prefix": "example-prefix"
|
|
182
|
+
* },
|
|
183
|
+
* "sourceName": "testSourceName",
|
|
184
|
+
* "sourceType": "S3"
|
|
185
|
+
* }
|
|
186
|
+
* ],
|
|
187
|
+
* "target": {
|
|
188
|
+
* "datasetTarget": {
|
|
189
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset"
|
|
190
|
+
* },
|
|
191
|
+
* "targetType": "DATASET"
|
|
192
|
+
* },
|
|
193
|
+
* "transformation": {
|
|
194
|
+
* "sqlTransformation": {
|
|
195
|
+
* "query": "SELECT connection_id, bukrs AS id, txtmd AS description FROM testSourceName WHERE langu = 'E'"
|
|
196
|
+
* },
|
|
197
|
+
* "transformationType": "SQL"
|
|
198
|
+
* }
|
|
199
|
+
* };
|
|
200
|
+
* const command = new UpdateDataIntegrationFlowCommand(input);
|
|
201
|
+
* const response = await client.send(command);
|
|
202
|
+
* /* response ==
|
|
203
|
+
* {
|
|
204
|
+
* "flow": {
|
|
205
|
+
* "name": "testStagingFlow",
|
|
206
|
+
* "createdTime": 1724956400.44,
|
|
207
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
208
|
+
* "lastModifiedTime": 1732456405.77,
|
|
209
|
+
* "sources": [
|
|
210
|
+
* {
|
|
211
|
+
* "s3Source": {
|
|
212
|
+
* "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f",
|
|
213
|
+
* "prefix": "example-prefix"
|
|
214
|
+
* },
|
|
215
|
+
* "sourceName": "testSourceName",
|
|
216
|
+
* "sourceType": "S3"
|
|
217
|
+
* }
|
|
218
|
+
* ],
|
|
219
|
+
* "target": {
|
|
220
|
+
* "datasetTarget": {
|
|
221
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset"
|
|
222
|
+
* },
|
|
223
|
+
* "targetType": "DATASET"
|
|
224
|
+
* },
|
|
225
|
+
* "transformation": {
|
|
226
|
+
* "sqlTransformation": {
|
|
227
|
+
* "query": "SELECT connection_id, bukrs AS id, txtmd AS description FROM testSourceName WHERE langu = 'E'"
|
|
228
|
+
* },
|
|
229
|
+
* "transformationType": "SQL"
|
|
230
|
+
* }
|
|
231
|
+
* }
|
|
232
|
+
* }
|
|
233
|
+
* *\/
|
|
234
|
+
* // example id: example-1
|
|
235
|
+
* ```
|
|
236
|
+
*
|
|
237
|
+
* @example Successful UpdateDataIntegrationFlow for dataset to dataset flow to update sources
|
|
238
|
+
* ```javascript
|
|
239
|
+
* //
|
|
240
|
+
* const input = {
|
|
241
|
+
* "name": "trading-partner",
|
|
242
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
243
|
+
* "sources": [
|
|
244
|
+
* {
|
|
245
|
+
* "datasetSource": {
|
|
246
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1"
|
|
247
|
+
* },
|
|
248
|
+
* "sourceName": "testSourceName1",
|
|
249
|
+
* "sourceType": "DATASET"
|
|
250
|
+
* },
|
|
251
|
+
* {
|
|
252
|
+
* "datasetSource": {
|
|
253
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2_updated"
|
|
254
|
+
* },
|
|
255
|
+
* "sourceName": "testSourceName2",
|
|
256
|
+
* "sourceType": "DATASET"
|
|
257
|
+
* }
|
|
258
|
+
* ],
|
|
259
|
+
* "target": {
|
|
260
|
+
* "datasetTarget": {
|
|
261
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner"
|
|
262
|
+
* },
|
|
263
|
+
* "targetType": "DATASET"
|
|
264
|
+
* },
|
|
265
|
+
* "transformation": {
|
|
266
|
+
* "sqlTransformation": {
|
|
267
|
+
* "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"
|
|
268
|
+
* },
|
|
269
|
+
* "transformationType": "SQL"
|
|
270
|
+
* }
|
|
271
|
+
* };
|
|
272
|
+
* const command = new UpdateDataIntegrationFlowCommand(input);
|
|
273
|
+
* const response = await client.send(command);
|
|
274
|
+
* /* response ==
|
|
275
|
+
* {
|
|
276
|
+
* "flow": {
|
|
277
|
+
* "name": "trading-partner",
|
|
278
|
+
* "createdTime": 1724956400.44,
|
|
279
|
+
* "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d",
|
|
280
|
+
* "lastModifiedTime": 1732456405.77,
|
|
281
|
+
* "sources": [
|
|
282
|
+
* {
|
|
283
|
+
* "datasetSource": {
|
|
284
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1"
|
|
285
|
+
* },
|
|
286
|
+
* "sourceName": "testSourceName1",
|
|
287
|
+
* "sourceType": "DATASET"
|
|
288
|
+
* },
|
|
289
|
+
* {
|
|
290
|
+
* "datasetSource": {
|
|
291
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2_updated"
|
|
292
|
+
* },
|
|
293
|
+
* "sourceName": "testSourceName2",
|
|
294
|
+
* "sourceType": "DATASET"
|
|
295
|
+
* }
|
|
296
|
+
* ],
|
|
297
|
+
* "target": {
|
|
298
|
+
* "datasetTarget": {
|
|
299
|
+
* "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner"
|
|
300
|
+
* },
|
|
301
|
+
* "targetType": "DATASET"
|
|
302
|
+
* },
|
|
303
|
+
* "transformation": {
|
|
304
|
+
* "sqlTransformation": {
|
|
305
|
+
* "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"
|
|
306
|
+
* },
|
|
307
|
+
* "transformationType": "SQL"
|
|
308
|
+
* }
|
|
309
|
+
* }
|
|
310
|
+
* }
|
|
311
|
+
* *\/
|
|
312
|
+
* // example id: example-2
|
|
313
|
+
* ```
|
|
314
|
+
*
|
|
315
|
+
*/
|
|
316
|
+
export declare class UpdateDataIntegrationFlowCommand extends UpdateDataIntegrationFlowCommand_base {
|
|
317
|
+
/** @internal type navigation helper, not in runtime. */
|
|
318
|
+
protected static __types: {
|
|
319
|
+
api: {
|
|
320
|
+
input: UpdateDataIntegrationFlowRequest;
|
|
321
|
+
output: UpdateDataIntegrationFlowResponse;
|
|
322
|
+
};
|
|
323
|
+
sdk: {
|
|
324
|
+
input: UpdateDataIntegrationFlowCommandInput;
|
|
325
|
+
output: UpdateDataIntegrationFlowCommandOutput;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
}
|