diff --git a/clients/client-supplychain/README.md b/clients/client-supplychain/README.md index e9b598f2e6b5..4b829c09e2b6 100644 --- a/clients/client-supplychain/README.md +++ b/clients/client-supplychain/README.md @@ -29,16 +29,16 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `SupplyChainClient` and -the commands you need, for example `GetBillOfMaterialsImportJobCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { SupplyChainClient, GetBillOfMaterialsImportJobCommand } = require("@aws-sdk/client-supplychain"); +const { SupplyChainClient, ListTagsForResourceCommand } = require("@aws-sdk/client-supplychain"); ``` ```ts // ES6+ example -import { SupplyChainClient, GetBillOfMaterialsImportJobCommand } from "@aws-sdk/client-supplychain"; +import { SupplyChainClient, ListTagsForResourceCommand } from "@aws-sdk/client-supplychain"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new SupplyChainClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new GetBillOfMaterialsImportJobCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.SupplyChain({ region: "REGION" }); // async/await. try { - const data = await client.getBillOfMaterialsImportJob(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .getBillOfMaterialsImportJob(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.getBillOfMaterialsImportJob(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` @@ -216,6 +216,38 @@ CreateBillOfMaterialsImportJob [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/CreateBillOfMaterialsImportJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/CreateBillOfMaterialsImportJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/CreateBillOfMaterialsImportJobCommandOutput/) + +
+ +CreateDataIntegrationFlow + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/CreateDataIntegrationFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/CreateDataIntegrationFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/CreateDataIntegrationFlowCommandOutput/) + +
+
+ +CreateDataLakeDataset + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/CreateDataLakeDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/CreateDataLakeDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/CreateDataLakeDatasetCommandOutput/) + +
+
+ +DeleteDataIntegrationFlow + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/DeleteDataIntegrationFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/DeleteDataIntegrationFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/DeleteDataIntegrationFlowCommandOutput/) + +
+
+ +DeleteDataLakeDataset + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/DeleteDataLakeDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/DeleteDataLakeDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/DeleteDataLakeDatasetCommandOutput/) +
@@ -224,6 +256,46 @@ GetBillOfMaterialsImportJob [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/GetBillOfMaterialsImportJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/GetBillOfMaterialsImportJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/GetBillOfMaterialsImportJobCommandOutput/) +
+
+ +GetDataIntegrationFlow + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/GetDataIntegrationFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/GetDataIntegrationFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/GetDataIntegrationFlowCommandOutput/) + +
+
+ +GetDataLakeDataset + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/GetDataLakeDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/GetDataLakeDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/GetDataLakeDatasetCommandOutput/) + +
+
+ +ListDataIntegrationFlows + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/ListDataIntegrationFlowsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/ListDataIntegrationFlowsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/ListDataIntegrationFlowsCommandOutput/) + +
+
+ +ListDataLakeDatasets + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/ListDataLakeDatasetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/ListDataLakeDatasetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/ListDataLakeDatasetsCommandOutput/) + +
+
+ +ListTagsForResource + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/ListTagsForResourceCommandOutput/) +
@@ -233,3 +305,35 @@ SendDataIntegrationEvent [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/SendDataIntegrationEventCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/SendDataIntegrationEventCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/SendDataIntegrationEventCommandOutput/)
+
+ +TagResource + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/TagResourceCommandOutput/) + +
+
+ +UntagResource + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/UntagResourceCommandOutput/) + +
+
+ +UpdateDataIntegrationFlow + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/UpdateDataIntegrationFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/UpdateDataIntegrationFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/UpdateDataIntegrationFlowCommandOutput/) + +
+
+ +UpdateDataLakeDataset + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/supplychain/command/UpdateDataLakeDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/UpdateDataLakeDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-supplychain/Interface/UpdateDataLakeDatasetCommandOutput/) + +
diff --git a/clients/client-supplychain/src/SupplyChain.ts b/clients/client-supplychain/src/SupplyChain.ts index 99682f2e1f50..c7d046b304a9 100644 --- a/clients/client-supplychain/src/SupplyChain.ts +++ b/clients/client-supplychain/src/SupplyChain.ts @@ -7,22 +7,96 @@ import { CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput, } from "./commands/CreateBillOfMaterialsImportJobCommand"; +import { + CreateDataIntegrationFlowCommand, + CreateDataIntegrationFlowCommandInput, + CreateDataIntegrationFlowCommandOutput, +} from "./commands/CreateDataIntegrationFlowCommand"; +import { + CreateDataLakeDatasetCommand, + CreateDataLakeDatasetCommandInput, + CreateDataLakeDatasetCommandOutput, +} from "./commands/CreateDataLakeDatasetCommand"; +import { + DeleteDataIntegrationFlowCommand, + DeleteDataIntegrationFlowCommandInput, + DeleteDataIntegrationFlowCommandOutput, +} from "./commands/DeleteDataIntegrationFlowCommand"; +import { + DeleteDataLakeDatasetCommand, + DeleteDataLakeDatasetCommandInput, + DeleteDataLakeDatasetCommandOutput, +} from "./commands/DeleteDataLakeDatasetCommand"; import { GetBillOfMaterialsImportJobCommand, GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput, } from "./commands/GetBillOfMaterialsImportJobCommand"; +import { + GetDataIntegrationFlowCommand, + GetDataIntegrationFlowCommandInput, + GetDataIntegrationFlowCommandOutput, +} from "./commands/GetDataIntegrationFlowCommand"; +import { + GetDataLakeDatasetCommand, + GetDataLakeDatasetCommandInput, + GetDataLakeDatasetCommandOutput, +} from "./commands/GetDataLakeDatasetCommand"; +import { + ListDataIntegrationFlowsCommand, + ListDataIntegrationFlowsCommandInput, + ListDataIntegrationFlowsCommandOutput, +} from "./commands/ListDataIntegrationFlowsCommand"; +import { + ListDataLakeDatasetsCommand, + ListDataLakeDatasetsCommandInput, + ListDataLakeDatasetsCommandOutput, +} from "./commands/ListDataLakeDatasetsCommand"; +import { + ListTagsForResourceCommand, + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, +} from "./commands/ListTagsForResourceCommand"; import { SendDataIntegrationEventCommand, SendDataIntegrationEventCommandInput, SendDataIntegrationEventCommandOutput, } from "./commands/SendDataIntegrationEventCommand"; +import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; +import { + UntagResourceCommand, + UntagResourceCommandInput, + UntagResourceCommandOutput, +} from "./commands/UntagResourceCommand"; +import { + UpdateDataIntegrationFlowCommand, + UpdateDataIntegrationFlowCommandInput, + UpdateDataIntegrationFlowCommandOutput, +} from "./commands/UpdateDataIntegrationFlowCommand"; +import { + UpdateDataLakeDatasetCommand, + UpdateDataLakeDatasetCommandInput, + UpdateDataLakeDatasetCommandOutput, +} from "./commands/UpdateDataLakeDatasetCommand"; import { SupplyChainClient, SupplyChainClientConfig } from "./SupplyChainClient"; const commands = { CreateBillOfMaterialsImportJobCommand, + CreateDataIntegrationFlowCommand, + CreateDataLakeDatasetCommand, + DeleteDataIntegrationFlowCommand, + DeleteDataLakeDatasetCommand, GetBillOfMaterialsImportJobCommand, + GetDataIntegrationFlowCommand, + GetDataLakeDatasetCommand, + ListDataIntegrationFlowsCommand, + ListDataLakeDatasetsCommand, + ListTagsForResourceCommand, SendDataIntegrationEventCommand, + TagResourceCommand, + UntagResourceCommand, + UpdateDataIntegrationFlowCommand, + UpdateDataLakeDatasetCommand, }; export interface SupplyChain { @@ -43,6 +117,74 @@ export interface SupplyChain { cb: (err: any, data?: CreateBillOfMaterialsImportJobCommandOutput) => void ): void; + /** + * @see {@link CreateDataIntegrationFlowCommand} + */ + createDataIntegrationFlow( + args: CreateDataIntegrationFlowCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createDataIntegrationFlow( + args: CreateDataIntegrationFlowCommandInput, + cb: (err: any, data?: CreateDataIntegrationFlowCommandOutput) => void + ): void; + createDataIntegrationFlow( + args: CreateDataIntegrationFlowCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDataIntegrationFlowCommandOutput) => void + ): void; + + /** + * @see {@link CreateDataLakeDatasetCommand} + */ + createDataLakeDataset( + args: CreateDataLakeDatasetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createDataLakeDataset( + args: CreateDataLakeDatasetCommandInput, + cb: (err: any, data?: CreateDataLakeDatasetCommandOutput) => void + ): void; + createDataLakeDataset( + args: CreateDataLakeDatasetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDataLakeDatasetCommandOutput) => void + ): void; + + /** + * @see {@link DeleteDataIntegrationFlowCommand} + */ + deleteDataIntegrationFlow( + args: DeleteDataIntegrationFlowCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteDataIntegrationFlow( + args: DeleteDataIntegrationFlowCommandInput, + cb: (err: any, data?: DeleteDataIntegrationFlowCommandOutput) => void + ): void; + deleteDataIntegrationFlow( + args: DeleteDataIntegrationFlowCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteDataIntegrationFlowCommandOutput) => void + ): void; + + /** + * @see {@link DeleteDataLakeDatasetCommand} + */ + deleteDataLakeDataset( + args: DeleteDataLakeDatasetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteDataLakeDataset( + args: DeleteDataLakeDatasetCommandInput, + cb: (err: any, data?: DeleteDataLakeDatasetCommandOutput) => void + ): void; + deleteDataLakeDataset( + args: DeleteDataLakeDatasetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteDataLakeDatasetCommandOutput) => void + ): void; + /** * @see {@link GetBillOfMaterialsImportJobCommand} */ @@ -60,6 +202,91 @@ export interface SupplyChain { cb: (err: any, data?: GetBillOfMaterialsImportJobCommandOutput) => void ): void; + /** + * @see {@link GetDataIntegrationFlowCommand} + */ + getDataIntegrationFlow( + args: GetDataIntegrationFlowCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getDataIntegrationFlow( + args: GetDataIntegrationFlowCommandInput, + cb: (err: any, data?: GetDataIntegrationFlowCommandOutput) => void + ): void; + getDataIntegrationFlow( + args: GetDataIntegrationFlowCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetDataIntegrationFlowCommandOutput) => void + ): void; + + /** + * @see {@link GetDataLakeDatasetCommand} + */ + getDataLakeDataset( + args: GetDataLakeDatasetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getDataLakeDataset( + args: GetDataLakeDatasetCommandInput, + cb: (err: any, data?: GetDataLakeDatasetCommandOutput) => void + ): void; + getDataLakeDataset( + args: GetDataLakeDatasetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetDataLakeDatasetCommandOutput) => void + ): void; + + /** + * @see {@link ListDataIntegrationFlowsCommand} + */ + listDataIntegrationFlows( + args: ListDataIntegrationFlowsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listDataIntegrationFlows( + args: ListDataIntegrationFlowsCommandInput, + cb: (err: any, data?: ListDataIntegrationFlowsCommandOutput) => void + ): void; + listDataIntegrationFlows( + args: ListDataIntegrationFlowsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDataIntegrationFlowsCommandOutput) => void + ): void; + + /** + * @see {@link ListDataLakeDatasetsCommand} + */ + listDataLakeDatasets( + args: ListDataLakeDatasetsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listDataLakeDatasets( + args: ListDataLakeDatasetsCommandInput, + cb: (err: any, data?: ListDataLakeDatasetsCommandOutput) => void + ): void; + listDataLakeDatasets( + args: ListDataLakeDatasetsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDataLakeDatasetsCommandOutput) => void + ): void; + + /** + * @see {@link ListTagsForResourceCommand} + */ + listTagsForResource( + args: ListTagsForResourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listTagsForResource( + args: ListTagsForResourceCommandInput, + cb: (err: any, data?: ListTagsForResourceCommandOutput) => void + ): void; + listTagsForResource( + args: ListTagsForResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTagsForResourceCommandOutput) => void + ): void; + /** * @see {@link SendDataIntegrationEventCommand} */ @@ -76,6 +303,62 @@ export interface SupplyChain { options: __HttpHandlerOptions, cb: (err: any, data?: SendDataIntegrationEventCommandOutput) => void ): void; + + /** + * @see {@link TagResourceCommand} + */ + tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise; + tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void; + tagResource( + args: TagResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: TagResourceCommandOutput) => void + ): void; + + /** + * @see {@link UntagResourceCommand} + */ + untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise; + untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void; + untagResource( + args: UntagResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UntagResourceCommandOutput) => void + ): void; + + /** + * @see {@link UpdateDataIntegrationFlowCommand} + */ + updateDataIntegrationFlow( + args: UpdateDataIntegrationFlowCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateDataIntegrationFlow( + args: UpdateDataIntegrationFlowCommandInput, + cb: (err: any, data?: UpdateDataIntegrationFlowCommandOutput) => void + ): void; + updateDataIntegrationFlow( + args: UpdateDataIntegrationFlowCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDataIntegrationFlowCommandOutput) => void + ): void; + + /** + * @see {@link UpdateDataLakeDatasetCommand} + */ + updateDataLakeDataset( + args: UpdateDataLakeDatasetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateDataLakeDataset( + args: UpdateDataLakeDatasetCommandInput, + cb: (err: any, data?: UpdateDataLakeDatasetCommandOutput) => void + ): void; + updateDataLakeDataset( + args: UpdateDataLakeDatasetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDataLakeDatasetCommandOutput) => void + ): void; } /** diff --git a/clients/client-supplychain/src/SupplyChainClient.ts b/clients/client-supplychain/src/SupplyChainClient.ts index 58090d8ba10e..b6ccc9e0b7aa 100644 --- a/clients/client-supplychain/src/SupplyChainClient.ts +++ b/clients/client-supplychain/src/SupplyChainClient.ts @@ -57,14 +57,57 @@ import { CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput, } from "./commands/CreateBillOfMaterialsImportJobCommand"; +import { + CreateDataIntegrationFlowCommandInput, + CreateDataIntegrationFlowCommandOutput, +} from "./commands/CreateDataIntegrationFlowCommand"; +import { + CreateDataLakeDatasetCommandInput, + CreateDataLakeDatasetCommandOutput, +} from "./commands/CreateDataLakeDatasetCommand"; +import { + DeleteDataIntegrationFlowCommandInput, + DeleteDataIntegrationFlowCommandOutput, +} from "./commands/DeleteDataIntegrationFlowCommand"; +import { + DeleteDataLakeDatasetCommandInput, + DeleteDataLakeDatasetCommandOutput, +} from "./commands/DeleteDataLakeDatasetCommand"; import { GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput, } from "./commands/GetBillOfMaterialsImportJobCommand"; +import { + GetDataIntegrationFlowCommandInput, + GetDataIntegrationFlowCommandOutput, +} from "./commands/GetDataIntegrationFlowCommand"; +import { GetDataLakeDatasetCommandInput, GetDataLakeDatasetCommandOutput } from "./commands/GetDataLakeDatasetCommand"; +import { + ListDataIntegrationFlowsCommandInput, + ListDataIntegrationFlowsCommandOutput, +} from "./commands/ListDataIntegrationFlowsCommand"; +import { + ListDataLakeDatasetsCommandInput, + ListDataLakeDatasetsCommandOutput, +} from "./commands/ListDataLakeDatasetsCommand"; +import { + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, +} from "./commands/ListTagsForResourceCommand"; import { SendDataIntegrationEventCommandInput, SendDataIntegrationEventCommandOutput, } from "./commands/SendDataIntegrationEventCommand"; +import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; +import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; +import { + UpdateDataIntegrationFlowCommandInput, + UpdateDataIntegrationFlowCommandOutput, +} from "./commands/UpdateDataIntegrationFlowCommand"; +import { + UpdateDataLakeDatasetCommandInput, + UpdateDataLakeDatasetCommandOutput, +} from "./commands/UpdateDataLakeDatasetCommand"; import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, @@ -81,16 +124,42 @@ export { __Client }; */ export type ServiceInputTypes = | CreateBillOfMaterialsImportJobCommandInput + | CreateDataIntegrationFlowCommandInput + | CreateDataLakeDatasetCommandInput + | DeleteDataIntegrationFlowCommandInput + | DeleteDataLakeDatasetCommandInput | GetBillOfMaterialsImportJobCommandInput - | SendDataIntegrationEventCommandInput; + | GetDataIntegrationFlowCommandInput + | GetDataLakeDatasetCommandInput + | ListDataIntegrationFlowsCommandInput + | ListDataLakeDatasetsCommandInput + | ListTagsForResourceCommandInput + | SendDataIntegrationEventCommandInput + | TagResourceCommandInput + | UntagResourceCommandInput + | UpdateDataIntegrationFlowCommandInput + | UpdateDataLakeDatasetCommandInput; /** * @public */ export type ServiceOutputTypes = | CreateBillOfMaterialsImportJobCommandOutput + | CreateDataIntegrationFlowCommandOutput + | CreateDataLakeDatasetCommandOutput + | DeleteDataIntegrationFlowCommandOutput + | DeleteDataLakeDatasetCommandOutput | GetBillOfMaterialsImportJobCommandOutput - | SendDataIntegrationEventCommandOutput; + | GetDataIntegrationFlowCommandOutput + | GetDataLakeDatasetCommandOutput + | ListDataIntegrationFlowsCommandOutput + | ListDataLakeDatasetsCommandOutput + | ListTagsForResourceCommandOutput + | SendDataIntegrationEventCommandOutput + | TagResourceCommandOutput + | UntagResourceCommandOutput + | UpdateDataIntegrationFlowCommandOutput + | UpdateDataLakeDatasetCommandOutput; /** * @public diff --git a/clients/client-supplychain/src/commands/CreateDataIntegrationFlowCommand.ts b/clients/client-supplychain/src/commands/CreateDataIntegrationFlowCommand.ts new file mode 100644 index 000000000000..f0fc64cdb09b --- /dev/null +++ b/clients/client-supplychain/src/commands/CreateDataIntegrationFlowCommand.ts @@ -0,0 +1,161 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { CreateDataIntegrationFlowRequest, CreateDataIntegrationFlowResponse } from "../models/models_0"; +import { de_CreateDataIntegrationFlowCommand, se_CreateDataIntegrationFlowCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link CreateDataIntegrationFlowCommand}. + */ +export interface CreateDataIntegrationFlowCommandInput extends CreateDataIntegrationFlowRequest {} +/** + * @public + * + * The output of {@link CreateDataIntegrationFlowCommand}. + */ +export interface CreateDataIntegrationFlowCommandOutput extends CreateDataIntegrationFlowResponse, __MetadataBearer {} + +/** + *

Create DataIntegrationFlow to map one or more different sources to one target using the SQL transformation query.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, CreateDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, CreateDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // CreateDataIntegrationFlowRequest + * instanceId: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * sources: [ // DataIntegrationFlowSourceList // required + * { // DataIntegrationFlowSource + * sourceType: "S3" || "DATASET", // required + * sourceName: "STRING_VALUE", // required + * s3Source: { // DataIntegrationFlowS3SourceConfiguration + * bucketName: "STRING_VALUE", // required + * prefix: "STRING_VALUE", // required + * options: { // DataIntegrationFlowS3Options + * fileType: "CSV" || "PARQUET" || "JSON", + * }, + * }, + * datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration + * datasetIdentifier: "STRING_VALUE", // required + * options: { // DataIntegrationFlowDatasetOptions + * loadType: "INCREMENTAL" || "REPLACE", + * dedupeRecords: true || false, + * }, + * }, + * }, + * ], + * transformation: { // DataIntegrationFlowTransformation + * transformationType: "SQL" || "NONE", // required + * sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration + * query: "STRING_VALUE", // required + * }, + * }, + * target: { // DataIntegrationFlowTarget + * targetType: "S3" || "DATASET", // required + * s3Target: { // DataIntegrationFlowS3TargetConfiguration + * bucketName: "STRING_VALUE", // required + * prefix: "STRING_VALUE", // required + * options: { + * fileType: "CSV" || "PARQUET" || "JSON", + * }, + * }, + * datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration + * datasetIdentifier: "STRING_VALUE", // required + * options: { + * loadType: "INCREMENTAL" || "REPLACE", + * dedupeRecords: true || false, + * }, + * }, + * }, + * tags: { // TagMap + * "": "STRING_VALUE", + * }, + * }; + * const command = new CreateDataIntegrationFlowCommand(input); + * const response = await client.send(command); + * // { // CreateDataIntegrationFlowResponse + * // instanceId: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param CreateDataIntegrationFlowCommandInput - {@link CreateDataIntegrationFlowCommandInput} + * @returns {@link CreateDataIntegrationFlowCommandOutput} + * @see {@link CreateDataIntegrationFlowCommandInput} for command's `input` shape. + * @see {@link CreateDataIntegrationFlowCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class CreateDataIntegrationFlowCommand extends $Command + .classBuilder< + CreateDataIntegrationFlowCommandInput, + CreateDataIntegrationFlowCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "CreateDataIntegrationFlow", {}) + .n("SupplyChainClient", "CreateDataIntegrationFlowCommand") + .f(void 0, void 0) + .ser(se_CreateDataIntegrationFlowCommand) + .de(de_CreateDataIntegrationFlowCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: CreateDataIntegrationFlowRequest; + output: CreateDataIntegrationFlowResponse; + }; + sdk: { + input: CreateDataIntegrationFlowCommandInput; + output: CreateDataIntegrationFlowCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/CreateDataLakeDatasetCommand.ts b/clients/client-supplychain/src/commands/CreateDataLakeDatasetCommand.ts new file mode 100644 index 000000000000..1a097f14a861 --- /dev/null +++ b/clients/client-supplychain/src/commands/CreateDataLakeDatasetCommand.ts @@ -0,0 +1,147 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { CreateDataLakeDatasetRequest, CreateDataLakeDatasetResponse } from "../models/models_0"; +import { de_CreateDataLakeDatasetCommand, se_CreateDataLakeDatasetCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link CreateDataLakeDatasetCommand}. + */ +export interface CreateDataLakeDatasetCommandInput extends CreateDataLakeDatasetRequest {} +/** + * @public + * + * The output of {@link CreateDataLakeDatasetCommand}. + */ +export interface CreateDataLakeDatasetCommandOutput extends CreateDataLakeDatasetResponse, __MetadataBearer {} + +/** + *

Create a data lake dataset.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, CreateDataLakeDatasetCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, CreateDataLakeDatasetCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // CreateDataLakeDatasetRequest + * instanceId: "STRING_VALUE", // required + * namespace: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * schema: { // DataLakeDatasetSchema + * name: "STRING_VALUE", // required + * fields: [ // DataLakeDatasetSchemaFieldList // required + * { // DataLakeDatasetSchemaField + * name: "STRING_VALUE", // required + * type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required + * isRequired: true || false, // required + * }, + * ], + * }, + * description: "STRING_VALUE", + * tags: { // TagMap + * "": "STRING_VALUE", + * }, + * }; + * const command = new CreateDataLakeDatasetCommand(input); + * const response = await client.send(command); + * // { // CreateDataLakeDatasetResponse + * // dataset: { // DataLakeDataset + * // instanceId: "STRING_VALUE", // required + * // namespace: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // schema: { // DataLakeDatasetSchema + * // name: "STRING_VALUE", // required + * // fields: [ // DataLakeDatasetSchemaFieldList // required + * // { // DataLakeDatasetSchemaField + * // name: "STRING_VALUE", // required + * // type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required + * // isRequired: true || false, // required + * // }, + * // ], + * // }, + * // description: "STRING_VALUE", + * // createdTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // }, + * // }; + * + * ``` + * + * @param CreateDataLakeDatasetCommandInput - {@link CreateDataLakeDatasetCommandInput} + * @returns {@link CreateDataLakeDatasetCommandOutput} + * @see {@link CreateDataLakeDatasetCommandInput} for command's `input` shape. + * @see {@link CreateDataLakeDatasetCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class CreateDataLakeDatasetCommand extends $Command + .classBuilder< + CreateDataLakeDatasetCommandInput, + CreateDataLakeDatasetCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "CreateDataLakeDataset", {}) + .n("SupplyChainClient", "CreateDataLakeDatasetCommand") + .f(void 0, void 0) + .ser(se_CreateDataLakeDatasetCommand) + .de(de_CreateDataLakeDatasetCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: CreateDataLakeDatasetRequest; + output: CreateDataLakeDatasetResponse; + }; + sdk: { + input: CreateDataLakeDatasetCommandInput; + output: CreateDataLakeDatasetCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/DeleteDataIntegrationFlowCommand.ts b/clients/client-supplychain/src/commands/DeleteDataIntegrationFlowCommand.ts new file mode 100644 index 000000000000..dc2223b4c4a9 --- /dev/null +++ b/clients/client-supplychain/src/commands/DeleteDataIntegrationFlowCommand.ts @@ -0,0 +1,115 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteDataIntegrationFlowRequest, DeleteDataIntegrationFlowResponse } from "../models/models_0"; +import { de_DeleteDataIntegrationFlowCommand, se_DeleteDataIntegrationFlowCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DeleteDataIntegrationFlowCommand}. + */ +export interface DeleteDataIntegrationFlowCommandInput extends DeleteDataIntegrationFlowRequest {} +/** + * @public + * + * The output of {@link DeleteDataIntegrationFlowCommand}. + */ +export interface DeleteDataIntegrationFlowCommandOutput extends DeleteDataIntegrationFlowResponse, __MetadataBearer {} + +/** + *

Delete the DataIntegrationFlow.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, DeleteDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, DeleteDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // DeleteDataIntegrationFlowRequest + * instanceId: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * }; + * const command = new DeleteDataIntegrationFlowCommand(input); + * const response = await client.send(command); + * // { // DeleteDataIntegrationFlowResponse + * // instanceId: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param DeleteDataIntegrationFlowCommandInput - {@link DeleteDataIntegrationFlowCommandInput} + * @returns {@link DeleteDataIntegrationFlowCommandOutput} + * @see {@link DeleteDataIntegrationFlowCommandInput} for command's `input` shape. + * @see {@link DeleteDataIntegrationFlowCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class DeleteDataIntegrationFlowCommand extends $Command + .classBuilder< + DeleteDataIntegrationFlowCommandInput, + DeleteDataIntegrationFlowCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "DeleteDataIntegrationFlow", {}) + .n("SupplyChainClient", "DeleteDataIntegrationFlowCommand") + .f(void 0, void 0) + .ser(se_DeleteDataIntegrationFlowCommand) + .de(de_DeleteDataIntegrationFlowCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DeleteDataIntegrationFlowRequest; + output: DeleteDataIntegrationFlowResponse; + }; + sdk: { + input: DeleteDataIntegrationFlowCommandInput; + output: DeleteDataIntegrationFlowCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/DeleteDataLakeDatasetCommand.ts b/clients/client-supplychain/src/commands/DeleteDataLakeDatasetCommand.ts new file mode 100644 index 000000000000..2a7654f75d2a --- /dev/null +++ b/clients/client-supplychain/src/commands/DeleteDataLakeDatasetCommand.ts @@ -0,0 +1,117 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteDataLakeDatasetRequest, DeleteDataLakeDatasetResponse } from "../models/models_0"; +import { de_DeleteDataLakeDatasetCommand, se_DeleteDataLakeDatasetCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DeleteDataLakeDatasetCommand}. + */ +export interface DeleteDataLakeDatasetCommandInput extends DeleteDataLakeDatasetRequest {} +/** + * @public + * + * The output of {@link DeleteDataLakeDatasetCommand}. + */ +export interface DeleteDataLakeDatasetCommandOutput extends DeleteDataLakeDatasetResponse, __MetadataBearer {} + +/** + *

Delete a data lake dataset.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, DeleteDataLakeDatasetCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, DeleteDataLakeDatasetCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // DeleteDataLakeDatasetRequest + * instanceId: "STRING_VALUE", // required + * namespace: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * }; + * const command = new DeleteDataLakeDatasetCommand(input); + * const response = await client.send(command); + * // { // DeleteDataLakeDatasetResponse + * // instanceId: "STRING_VALUE", // required + * // namespace: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param DeleteDataLakeDatasetCommandInput - {@link DeleteDataLakeDatasetCommandInput} + * @returns {@link DeleteDataLakeDatasetCommandOutput} + * @see {@link DeleteDataLakeDatasetCommandInput} for command's `input` shape. + * @see {@link DeleteDataLakeDatasetCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class DeleteDataLakeDatasetCommand extends $Command + .classBuilder< + DeleteDataLakeDatasetCommandInput, + DeleteDataLakeDatasetCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "DeleteDataLakeDataset", {}) + .n("SupplyChainClient", "DeleteDataLakeDatasetCommand") + .f(void 0, void 0) + .ser(se_DeleteDataLakeDatasetCommand) + .de(de_DeleteDataLakeDatasetCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DeleteDataLakeDatasetRequest; + output: DeleteDataLakeDatasetResponse; + }; + sdk: { + input: DeleteDataLakeDatasetCommandInput; + output: DeleteDataLakeDatasetCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/GetDataIntegrationFlowCommand.ts b/clients/client-supplychain/src/commands/GetDataIntegrationFlowCommand.ts new file mode 100644 index 000000000000..9b5384847fde --- /dev/null +++ b/clients/client-supplychain/src/commands/GetDataIntegrationFlowCommand.ts @@ -0,0 +1,162 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { GetDataIntegrationFlowRequest, GetDataIntegrationFlowResponse } from "../models/models_0"; +import { de_GetDataIntegrationFlowCommand, se_GetDataIntegrationFlowCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link GetDataIntegrationFlowCommand}. + */ +export interface GetDataIntegrationFlowCommandInput extends GetDataIntegrationFlowRequest {} +/** + * @public + * + * The output of {@link GetDataIntegrationFlowCommand}. + */ +export interface GetDataIntegrationFlowCommandOutput extends GetDataIntegrationFlowResponse, __MetadataBearer {} + +/** + *

View the DataIntegrationFlow details.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, GetDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, GetDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // GetDataIntegrationFlowRequest + * instanceId: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * }; + * const command = new GetDataIntegrationFlowCommand(input); + * const response = await client.send(command); + * // { // GetDataIntegrationFlowResponse + * // flow: { // DataIntegrationFlow + * // instanceId: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // sources: [ // DataIntegrationFlowSourceList // required + * // { // DataIntegrationFlowSource + * // sourceType: "S3" || "DATASET", // required + * // sourceName: "STRING_VALUE", // required + * // s3Source: { // DataIntegrationFlowS3SourceConfiguration + * // bucketName: "STRING_VALUE", // required + * // prefix: "STRING_VALUE", // required + * // options: { // DataIntegrationFlowS3Options + * // fileType: "CSV" || "PARQUET" || "JSON", + * // }, + * // }, + * // datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration + * // datasetIdentifier: "STRING_VALUE", // required + * // options: { // DataIntegrationFlowDatasetOptions + * // loadType: "INCREMENTAL" || "REPLACE", + * // dedupeRecords: true || false, + * // }, + * // }, + * // }, + * // ], + * // transformation: { // DataIntegrationFlowTransformation + * // transformationType: "SQL" || "NONE", // required + * // sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration + * // query: "STRING_VALUE", // required + * // }, + * // }, + * // target: { // DataIntegrationFlowTarget + * // targetType: "S3" || "DATASET", // required + * // s3Target: { // DataIntegrationFlowS3TargetConfiguration + * // bucketName: "STRING_VALUE", // required + * // prefix: "STRING_VALUE", // required + * // options: { + * // fileType: "CSV" || "PARQUET" || "JSON", + * // }, + * // }, + * // datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration + * // datasetIdentifier: "STRING_VALUE", // required + * // options: { + * // loadType: "INCREMENTAL" || "REPLACE", + * // dedupeRecords: true || false, + * // }, + * // }, + * // }, + * // createdTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // }, + * // }; + * + * ``` + * + * @param GetDataIntegrationFlowCommandInput - {@link GetDataIntegrationFlowCommandInput} + * @returns {@link GetDataIntegrationFlowCommandOutput} + * @see {@link GetDataIntegrationFlowCommandInput} for command's `input` shape. + * @see {@link GetDataIntegrationFlowCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class GetDataIntegrationFlowCommand extends $Command + .classBuilder< + GetDataIntegrationFlowCommandInput, + GetDataIntegrationFlowCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "GetDataIntegrationFlow", {}) + .n("SupplyChainClient", "GetDataIntegrationFlowCommand") + .f(void 0, void 0) + .ser(se_GetDataIntegrationFlowCommand) + .de(de_GetDataIntegrationFlowCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: GetDataIntegrationFlowRequest; + output: GetDataIntegrationFlowResponse; + }; + sdk: { + input: GetDataIntegrationFlowCommandInput; + output: GetDataIntegrationFlowCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/GetDataLakeDatasetCommand.ts b/clients/client-supplychain/src/commands/GetDataLakeDatasetCommand.ts new file mode 100644 index 000000000000..61c7507ceb7f --- /dev/null +++ b/clients/client-supplychain/src/commands/GetDataLakeDatasetCommand.ts @@ -0,0 +1,133 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { GetDataLakeDatasetRequest, GetDataLakeDatasetResponse } from "../models/models_0"; +import { de_GetDataLakeDatasetCommand, se_GetDataLakeDatasetCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link GetDataLakeDatasetCommand}. + */ +export interface GetDataLakeDatasetCommandInput extends GetDataLakeDatasetRequest {} +/** + * @public + * + * The output of {@link GetDataLakeDatasetCommand}. + */ +export interface GetDataLakeDatasetCommandOutput extends GetDataLakeDatasetResponse, __MetadataBearer {} + +/** + *

Get a data lake dataset.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, GetDataLakeDatasetCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, GetDataLakeDatasetCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // GetDataLakeDatasetRequest + * instanceId: "STRING_VALUE", // required + * namespace: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * }; + * const command = new GetDataLakeDatasetCommand(input); + * const response = await client.send(command); + * // { // GetDataLakeDatasetResponse + * // dataset: { // DataLakeDataset + * // instanceId: "STRING_VALUE", // required + * // namespace: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // schema: { // DataLakeDatasetSchema + * // name: "STRING_VALUE", // required + * // fields: [ // DataLakeDatasetSchemaFieldList // required + * // { // DataLakeDatasetSchemaField + * // name: "STRING_VALUE", // required + * // type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required + * // isRequired: true || false, // required + * // }, + * // ], + * // }, + * // description: "STRING_VALUE", + * // createdTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // }, + * // }; + * + * ``` + * + * @param GetDataLakeDatasetCommandInput - {@link GetDataLakeDatasetCommandInput} + * @returns {@link GetDataLakeDatasetCommandOutput} + * @see {@link GetDataLakeDatasetCommandInput} for command's `input` shape. + * @see {@link GetDataLakeDatasetCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class GetDataLakeDatasetCommand extends $Command + .classBuilder< + GetDataLakeDatasetCommandInput, + GetDataLakeDatasetCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "GetDataLakeDataset", {}) + .n("SupplyChainClient", "GetDataLakeDatasetCommand") + .f(void 0, void 0) + .ser(se_GetDataLakeDatasetCommand) + .de(de_GetDataLakeDatasetCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: GetDataLakeDatasetRequest; + output: GetDataLakeDatasetResponse; + }; + sdk: { + input: GetDataLakeDatasetCommandInput; + output: GetDataLakeDatasetCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/ListDataIntegrationFlowsCommand.ts b/clients/client-supplychain/src/commands/ListDataIntegrationFlowsCommand.ts new file mode 100644 index 000000000000..fe7fd8ec2e26 --- /dev/null +++ b/clients/client-supplychain/src/commands/ListDataIntegrationFlowsCommand.ts @@ -0,0 +1,166 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListDataIntegrationFlowsRequest, ListDataIntegrationFlowsResponse } from "../models/models_0"; +import { de_ListDataIntegrationFlowsCommand, se_ListDataIntegrationFlowsCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListDataIntegrationFlowsCommand}. + */ +export interface ListDataIntegrationFlowsCommandInput extends ListDataIntegrationFlowsRequest {} +/** + * @public + * + * The output of {@link ListDataIntegrationFlowsCommand}. + */ +export interface ListDataIntegrationFlowsCommandOutput extends ListDataIntegrationFlowsResponse, __MetadataBearer {} + +/** + *

Lists all the DataIntegrationFlows in a paginated way.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, ListDataIntegrationFlowsCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, ListDataIntegrationFlowsCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // ListDataIntegrationFlowsRequest + * instanceId: "STRING_VALUE", // required + * nextToken: "STRING_VALUE", + * maxResults: Number("int"), + * }; + * const command = new ListDataIntegrationFlowsCommand(input); + * const response = await client.send(command); + * // { // ListDataIntegrationFlowsResponse + * // flows: [ // DataIntegrationFlowList // required + * // { // DataIntegrationFlow + * // instanceId: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // sources: [ // DataIntegrationFlowSourceList // required + * // { // DataIntegrationFlowSource + * // sourceType: "S3" || "DATASET", // required + * // sourceName: "STRING_VALUE", // required + * // s3Source: { // DataIntegrationFlowS3SourceConfiguration + * // bucketName: "STRING_VALUE", // required + * // prefix: "STRING_VALUE", // required + * // options: { // DataIntegrationFlowS3Options + * // fileType: "CSV" || "PARQUET" || "JSON", + * // }, + * // }, + * // datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration + * // datasetIdentifier: "STRING_VALUE", // required + * // options: { // DataIntegrationFlowDatasetOptions + * // loadType: "INCREMENTAL" || "REPLACE", + * // dedupeRecords: true || false, + * // }, + * // }, + * // }, + * // ], + * // transformation: { // DataIntegrationFlowTransformation + * // transformationType: "SQL" || "NONE", // required + * // sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration + * // query: "STRING_VALUE", // required + * // }, + * // }, + * // target: { // DataIntegrationFlowTarget + * // targetType: "S3" || "DATASET", // required + * // s3Target: { // DataIntegrationFlowS3TargetConfiguration + * // bucketName: "STRING_VALUE", // required + * // prefix: "STRING_VALUE", // required + * // options: { + * // fileType: "CSV" || "PARQUET" || "JSON", + * // }, + * // }, + * // datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration + * // datasetIdentifier: "STRING_VALUE", // required + * // options: { + * // loadType: "INCREMENTAL" || "REPLACE", + * // dedupeRecords: true || false, + * // }, + * // }, + * // }, + * // createdTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListDataIntegrationFlowsCommandInput - {@link ListDataIntegrationFlowsCommandInput} + * @returns {@link ListDataIntegrationFlowsCommandOutput} + * @see {@link ListDataIntegrationFlowsCommandInput} for command's `input` shape. + * @see {@link ListDataIntegrationFlowsCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class ListDataIntegrationFlowsCommand extends $Command + .classBuilder< + ListDataIntegrationFlowsCommandInput, + ListDataIntegrationFlowsCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "ListDataIntegrationFlows", {}) + .n("SupplyChainClient", "ListDataIntegrationFlowsCommand") + .f(void 0, void 0) + .ser(se_ListDataIntegrationFlowsCommand) + .de(de_ListDataIntegrationFlowsCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListDataIntegrationFlowsRequest; + output: ListDataIntegrationFlowsResponse; + }; + sdk: { + input: ListDataIntegrationFlowsCommandInput; + output: ListDataIntegrationFlowsCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/ListDataLakeDatasetsCommand.ts b/clients/client-supplychain/src/commands/ListDataLakeDatasetsCommand.ts new file mode 100644 index 000000000000..8c55a1e65f2f --- /dev/null +++ b/clients/client-supplychain/src/commands/ListDataLakeDatasetsCommand.ts @@ -0,0 +1,137 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListDataLakeDatasetsRequest, ListDataLakeDatasetsResponse } from "../models/models_0"; +import { de_ListDataLakeDatasetsCommand, se_ListDataLakeDatasetsCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListDataLakeDatasetsCommand}. + */ +export interface ListDataLakeDatasetsCommandInput extends ListDataLakeDatasetsRequest {} +/** + * @public + * + * The output of {@link ListDataLakeDatasetsCommand}. + */ +export interface ListDataLakeDatasetsCommandOutput extends ListDataLakeDatasetsResponse, __MetadataBearer {} + +/** + *

List the data lake datasets for a specific instance and name space.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, ListDataLakeDatasetsCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, ListDataLakeDatasetsCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // ListDataLakeDatasetsRequest + * instanceId: "STRING_VALUE", // required + * namespace: "STRING_VALUE", // required + * nextToken: "STRING_VALUE", + * maxResults: Number("int"), + * }; + * const command = new ListDataLakeDatasetsCommand(input); + * const response = await client.send(command); + * // { // ListDataLakeDatasetsResponse + * // datasets: [ // DataLakeDatasetList // required + * // { // DataLakeDataset + * // instanceId: "STRING_VALUE", // required + * // namespace: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // schema: { // DataLakeDatasetSchema + * // name: "STRING_VALUE", // required + * // fields: [ // DataLakeDatasetSchemaFieldList // required + * // { // DataLakeDatasetSchemaField + * // name: "STRING_VALUE", // required + * // type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required + * // isRequired: true || false, // required + * // }, + * // ], + * // }, + * // description: "STRING_VALUE", + * // createdTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListDataLakeDatasetsCommandInput - {@link ListDataLakeDatasetsCommandInput} + * @returns {@link ListDataLakeDatasetsCommandOutput} + * @see {@link ListDataLakeDatasetsCommandInput} for command's `input` shape. + * @see {@link ListDataLakeDatasetsCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class ListDataLakeDatasetsCommand extends $Command + .classBuilder< + ListDataLakeDatasetsCommandInput, + ListDataLakeDatasetsCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "ListDataLakeDatasets", {}) + .n("SupplyChainClient", "ListDataLakeDatasetsCommand") + .f(void 0, void 0) + .ser(se_ListDataLakeDatasetsCommand) + .de(de_ListDataLakeDatasetsCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListDataLakeDatasetsRequest; + output: ListDataLakeDatasetsResponse; + }; + sdk: { + input: ListDataLakeDatasetsCommandInput; + output: ListDataLakeDatasetsCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/ListTagsForResourceCommand.ts b/clients/client-supplychain/src/commands/ListTagsForResourceCommand.ts new file mode 100644 index 000000000000..a1f413cf03b3 --- /dev/null +++ b/clients/client-supplychain/src/commands/ListTagsForResourceCommand.ts @@ -0,0 +1,115 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0"; +import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListTagsForResourceCommand}. + */ +export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {} +/** + * @public + * + * The output of {@link ListTagsForResourceCommand}. + */ +export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {} + +/** + *

List all the tags for an Amazon Web ServicesSupply Chain resource.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, ListTagsForResourceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, ListTagsForResourceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // ListTagsForResourceRequest + * resourceArn: "STRING_VALUE", // required + * }; + * const command = new ListTagsForResourceCommand(input); + * const response = await client.send(command); + * // { // ListTagsForResourceResponse + * // tags: { // TagMap // required + * // "": "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput} + * @returns {@link ListTagsForResourceCommandOutput} + * @see {@link ListTagsForResourceCommandInput} for command's `input` shape. + * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class ListTagsForResourceCommand extends $Command + .classBuilder< + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "ListTagsForResource", {}) + .n("SupplyChainClient", "ListTagsForResourceCommand") + .f(void 0, void 0) + .ser(se_ListTagsForResourceCommand) + .de(de_ListTagsForResourceCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListTagsForResourceRequest; + output: ListTagsForResourceResponse; + }; + sdk: { + input: ListTagsForResourceCommandInput; + output: ListTagsForResourceCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/TagResourceCommand.ts b/clients/client-supplychain/src/commands/TagResourceCommand.ts new file mode 100644 index 000000000000..a6247565e867 --- /dev/null +++ b/clients/client-supplychain/src/commands/TagResourceCommand.ts @@ -0,0 +1,114 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { TagResourceRequest, TagResourceResponse } from "../models/models_0"; +import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link TagResourceCommand}. + */ +export interface TagResourceCommandInput extends TagResourceRequest {} +/** + * @public + * + * The output of {@link TagResourceCommand}. + */ +export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {} + +/** + *

Create tags for an Amazon Web Services Supply chain resource.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, TagResourceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, TagResourceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // TagResourceRequest + * resourceArn: "STRING_VALUE", // required + * tags: { // TagMap // required + * "": "STRING_VALUE", + * }, + * }; + * const command = new TagResourceCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param TagResourceCommandInput - {@link TagResourceCommandInput} + * @returns {@link TagResourceCommandOutput} + * @see {@link TagResourceCommandInput} for command's `input` shape. + * @see {@link TagResourceCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class TagResourceCommand extends $Command + .classBuilder< + TagResourceCommandInput, + TagResourceCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "TagResource", {}) + .n("SupplyChainClient", "TagResourceCommand") + .f(void 0, void 0) + .ser(se_TagResourceCommand) + .de(de_TagResourceCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: TagResourceRequest; + output: {}; + }; + sdk: { + input: TagResourceCommandInput; + output: TagResourceCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/UntagResourceCommand.ts b/clients/client-supplychain/src/commands/UntagResourceCommand.ts new file mode 100644 index 000000000000..ce5b09aeb16e --- /dev/null +++ b/clients/client-supplychain/src/commands/UntagResourceCommand.ts @@ -0,0 +1,114 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0"; +import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UntagResourceCommand}. + */ +export interface UntagResourceCommandInput extends UntagResourceRequest {} +/** + * @public + * + * The output of {@link UntagResourceCommand}. + */ +export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {} + +/** + *

Delete tags for an Amazon Web Services Supply chain resource.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, UntagResourceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, UntagResourceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // UntagResourceRequest + * resourceArn: "STRING_VALUE", // required + * tagKeys: [ // TagKeyList // required + * "STRING_VALUE", + * ], + * }; + * const command = new UntagResourceCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UntagResourceCommandInput - {@link UntagResourceCommandInput} + * @returns {@link UntagResourceCommandOutput} + * @see {@link UntagResourceCommandInput} for command's `input` shape. + * @see {@link UntagResourceCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class UntagResourceCommand extends $Command + .classBuilder< + UntagResourceCommandInput, + UntagResourceCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "UntagResource", {}) + .n("SupplyChainClient", "UntagResourceCommand") + .f(void 0, void 0) + .ser(se_UntagResourceCommand) + .de(de_UntagResourceCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UntagResourceRequest; + output: {}; + }; + sdk: { + input: UntagResourceCommandInput; + output: UntagResourceCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/UpdateDataIntegrationFlowCommand.ts b/clients/client-supplychain/src/commands/UpdateDataIntegrationFlowCommand.ts new file mode 100644 index 000000000000..971c537b9983 --- /dev/null +++ b/clients/client-supplychain/src/commands/UpdateDataIntegrationFlowCommand.ts @@ -0,0 +1,205 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateDataIntegrationFlowRequest, UpdateDataIntegrationFlowResponse } from "../models/models_0"; +import { de_UpdateDataIntegrationFlowCommand, se_UpdateDataIntegrationFlowCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateDataIntegrationFlowCommand}. + */ +export interface UpdateDataIntegrationFlowCommandInput extends UpdateDataIntegrationFlowRequest {} +/** + * @public + * + * The output of {@link UpdateDataIntegrationFlowCommand}. + */ +export interface UpdateDataIntegrationFlowCommandOutput extends UpdateDataIntegrationFlowResponse, __MetadataBearer {} + +/** + *

Update the DataIntegrationFlow.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, UpdateDataIntegrationFlowCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, UpdateDataIntegrationFlowCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // UpdateDataIntegrationFlowRequest + * instanceId: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * sources: [ // DataIntegrationFlowSourceList + * { // DataIntegrationFlowSource + * sourceType: "S3" || "DATASET", // required + * sourceName: "STRING_VALUE", // required + * s3Source: { // DataIntegrationFlowS3SourceConfiguration + * bucketName: "STRING_VALUE", // required + * prefix: "STRING_VALUE", // required + * options: { // DataIntegrationFlowS3Options + * fileType: "CSV" || "PARQUET" || "JSON", + * }, + * }, + * datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration + * datasetIdentifier: "STRING_VALUE", // required + * options: { // DataIntegrationFlowDatasetOptions + * loadType: "INCREMENTAL" || "REPLACE", + * dedupeRecords: true || false, + * }, + * }, + * }, + * ], + * transformation: { // DataIntegrationFlowTransformation + * transformationType: "SQL" || "NONE", // required + * sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration + * query: "STRING_VALUE", // required + * }, + * }, + * target: { // DataIntegrationFlowTarget + * targetType: "S3" || "DATASET", // required + * s3Target: { // DataIntegrationFlowS3TargetConfiguration + * bucketName: "STRING_VALUE", // required + * prefix: "STRING_VALUE", // required + * options: { + * fileType: "CSV" || "PARQUET" || "JSON", + * }, + * }, + * datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration + * datasetIdentifier: "STRING_VALUE", // required + * options: { + * loadType: "INCREMENTAL" || "REPLACE", + * dedupeRecords: true || false, + * }, + * }, + * }, + * }; + * const command = new UpdateDataIntegrationFlowCommand(input); + * const response = await client.send(command); + * // { // UpdateDataIntegrationFlowResponse + * // flow: { // DataIntegrationFlow + * // instanceId: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // sources: [ // DataIntegrationFlowSourceList // required + * // { // DataIntegrationFlowSource + * // sourceType: "S3" || "DATASET", // required + * // sourceName: "STRING_VALUE", // required + * // s3Source: { // DataIntegrationFlowS3SourceConfiguration + * // bucketName: "STRING_VALUE", // required + * // prefix: "STRING_VALUE", // required + * // options: { // DataIntegrationFlowS3Options + * // fileType: "CSV" || "PARQUET" || "JSON", + * // }, + * // }, + * // datasetSource: { // DataIntegrationFlowDatasetSourceConfiguration + * // datasetIdentifier: "STRING_VALUE", // required + * // options: { // DataIntegrationFlowDatasetOptions + * // loadType: "INCREMENTAL" || "REPLACE", + * // dedupeRecords: true || false, + * // }, + * // }, + * // }, + * // ], + * // transformation: { // DataIntegrationFlowTransformation + * // transformationType: "SQL" || "NONE", // required + * // sqlTransformation: { // DataIntegrationFlowSQLTransformationConfiguration + * // query: "STRING_VALUE", // required + * // }, + * // }, + * // target: { // DataIntegrationFlowTarget + * // targetType: "S3" || "DATASET", // required + * // s3Target: { // DataIntegrationFlowS3TargetConfiguration + * // bucketName: "STRING_VALUE", // required + * // prefix: "STRING_VALUE", // required + * // options: { + * // fileType: "CSV" || "PARQUET" || "JSON", + * // }, + * // }, + * // datasetTarget: { // DataIntegrationFlowDatasetTargetConfiguration + * // datasetIdentifier: "STRING_VALUE", // required + * // options: { + * // loadType: "INCREMENTAL" || "REPLACE", + * // dedupeRecords: true || false, + * // }, + * // }, + * // }, + * // createdTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // }, + * // }; + * + * ``` + * + * @param UpdateDataIntegrationFlowCommandInput - {@link UpdateDataIntegrationFlowCommandInput} + * @returns {@link UpdateDataIntegrationFlowCommandOutput} + * @see {@link UpdateDataIntegrationFlowCommandInput} for command's `input` shape. + * @see {@link UpdateDataIntegrationFlowCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class UpdateDataIntegrationFlowCommand extends $Command + .classBuilder< + UpdateDataIntegrationFlowCommandInput, + UpdateDataIntegrationFlowCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "UpdateDataIntegrationFlow", {}) + .n("SupplyChainClient", "UpdateDataIntegrationFlowCommand") + .f(void 0, void 0) + .ser(se_UpdateDataIntegrationFlowCommand) + .de(de_UpdateDataIntegrationFlowCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateDataIntegrationFlowRequest; + output: UpdateDataIntegrationFlowResponse; + }; + sdk: { + input: UpdateDataIntegrationFlowCommandInput; + output: UpdateDataIntegrationFlowCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/UpdateDataLakeDatasetCommand.ts b/clients/client-supplychain/src/commands/UpdateDataLakeDatasetCommand.ts new file mode 100644 index 000000000000..051d31c5d1e6 --- /dev/null +++ b/clients/client-supplychain/src/commands/UpdateDataLakeDatasetCommand.ts @@ -0,0 +1,134 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateDataLakeDatasetRequest, UpdateDataLakeDatasetResponse } from "../models/models_0"; +import { de_UpdateDataLakeDatasetCommand, se_UpdateDataLakeDatasetCommand } from "../protocols/Aws_restJson1"; +import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateDataLakeDatasetCommand}. + */ +export interface UpdateDataLakeDatasetCommandInput extends UpdateDataLakeDatasetRequest {} +/** + * @public + * + * The output of {@link UpdateDataLakeDatasetCommand}. + */ +export interface UpdateDataLakeDatasetCommandOutput extends UpdateDataLakeDatasetResponse, __MetadataBearer {} + +/** + *

Update a data lake dataset.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { SupplyChainClient, UpdateDataLakeDatasetCommand } from "@aws-sdk/client-supplychain"; // ES Modules import + * // const { SupplyChainClient, UpdateDataLakeDatasetCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import + * const client = new SupplyChainClient(config); + * const input = { // UpdateDataLakeDatasetRequest + * instanceId: "STRING_VALUE", // required + * namespace: "STRING_VALUE", // required + * name: "STRING_VALUE", // required + * description: "STRING_VALUE", + * }; + * const command = new UpdateDataLakeDatasetCommand(input); + * const response = await client.send(command); + * // { // UpdateDataLakeDatasetResponse + * // dataset: { // DataLakeDataset + * // instanceId: "STRING_VALUE", // required + * // namespace: "STRING_VALUE", // required + * // name: "STRING_VALUE", // required + * // arn: "STRING_VALUE", // required + * // schema: { // DataLakeDatasetSchema + * // name: "STRING_VALUE", // required + * // fields: [ // DataLakeDatasetSchemaFieldList // required + * // { // DataLakeDatasetSchemaField + * // name: "STRING_VALUE", // required + * // type: "INT" || "DOUBLE" || "STRING" || "TIMESTAMP", // required + * // isRequired: true || false, // required + * // }, + * // ], + * // }, + * // description: "STRING_VALUE", + * // createdTime: new Date("TIMESTAMP"), // required + * // lastModifiedTime: new Date("TIMESTAMP"), // required + * // }, + * // }; + * + * ``` + * + * @param UpdateDataLakeDatasetCommandInput - {@link UpdateDataLakeDatasetCommandInput} + * @returns {@link UpdateDataLakeDatasetCommandOutput} + * @see {@link UpdateDataLakeDatasetCommandInput} for command's `input` shape. + * @see {@link UpdateDataLakeDatasetCommandOutput} for command's `response` shape. + * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have the required privileges to perform this action.

+ * + * @throws {@link InternalServerException} (server fault) + *

Unexpected error during processing of request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

Request references a resource which does not exist.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Request was denied due to request throttling.

+ * + * @throws {@link ValidationException} (client fault) + *

The input does not satisfy the constraints specified by an AWS service.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

Request would cause a service quota to be exceeded.

+ * + * @throws {@link SupplyChainServiceException} + *

Base exception class for all service exceptions from SupplyChain service.

+ * + * @public + */ +export class UpdateDataLakeDatasetCommand extends $Command + .classBuilder< + UpdateDataLakeDatasetCommandInput, + UpdateDataLakeDatasetCommandOutput, + SupplyChainClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: SupplyChainClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("GalaxyPublicAPIGateway", "UpdateDataLakeDataset", {}) + .n("SupplyChainClient", "UpdateDataLakeDatasetCommand") + .f(void 0, void 0) + .ser(se_UpdateDataLakeDatasetCommand) + .de(de_UpdateDataLakeDatasetCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateDataLakeDatasetRequest; + output: UpdateDataLakeDatasetResponse; + }; + sdk: { + input: UpdateDataLakeDatasetCommandInput; + output: UpdateDataLakeDatasetCommandOutput; + }; + }; +} diff --git a/clients/client-supplychain/src/commands/index.ts b/clients/client-supplychain/src/commands/index.ts index b1e83f7c278b..15a96488081d 100644 --- a/clients/client-supplychain/src/commands/index.ts +++ b/clients/client-supplychain/src/commands/index.ts @@ -1,4 +1,17 @@ // smithy-typescript generated code export * from "./CreateBillOfMaterialsImportJobCommand"; +export * from "./CreateDataIntegrationFlowCommand"; +export * from "./CreateDataLakeDatasetCommand"; +export * from "./DeleteDataIntegrationFlowCommand"; +export * from "./DeleteDataLakeDatasetCommand"; export * from "./GetBillOfMaterialsImportJobCommand"; +export * from "./GetDataIntegrationFlowCommand"; +export * from "./GetDataLakeDatasetCommand"; +export * from "./ListDataIntegrationFlowsCommand"; +export * from "./ListDataLakeDatasetsCommand"; +export * from "./ListTagsForResourceCommand"; export * from "./SendDataIntegrationEventCommand"; +export * from "./TagResourceCommand"; +export * from "./UntagResourceCommand"; +export * from "./UpdateDataIntegrationFlowCommand"; +export * from "./UpdateDataLakeDatasetCommand"; diff --git a/clients/client-supplychain/src/index.ts b/clients/client-supplychain/src/index.ts index db689d7f627e..f5e3a3312079 100644 --- a/clients/client-supplychain/src/index.ts +++ b/clients/client-supplychain/src/index.ts @@ -17,6 +17,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; export type { RuntimeExtension } from "./runtimeExtensions"; export type { SupplyChainExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; +export * from "./pagination"; export * from "./models"; export { SupplyChainServiceException } from "./models/SupplyChainServiceException"; diff --git a/clients/client-supplychain/src/models/models_0.ts b/clients/client-supplychain/src/models/models_0.ts index a62bf7ed356d..6092014319a9 100644 --- a/clients/client-supplychain/src/models/models_0.ts +++ b/clients/client-supplychain/src/models/models_0.ts @@ -114,7 +114,7 @@ export interface CreateBillOfMaterialsImportJobRequest { s3uri: string | undefined; /** - *

An idempotency token.

+ *

An idempotency token ensures the API request is only completed no more than once. This way, retrying the request will not trigger the operation multiple times. A client token is a unique, case-sensitive string of 33 to 128 ASCII characters. To make an idempotent API request, specify a client token in the request. You should not reuse the same client token for other requests. If you retry a successful request with the same client token, the request will succeed with no further actions being taken, and you will receive the same API response as the original successful request.

* @public */ clientToken?: string; @@ -266,6 +266,527 @@ export interface GetBillOfMaterialsImportJobResponse { job: BillOfMaterialsImportJob | undefined; } +/** + * @public + * @enum + */ +export const DataIntegrationFlowLoadType = { + INCREMENTAL: "INCREMENTAL", + REPLACE: "REPLACE", +} as const; + +/** + * @public + */ +export type DataIntegrationFlowLoadType = + (typeof DataIntegrationFlowLoadType)[keyof typeof DataIntegrationFlowLoadType]; + +/** + *

The dataset options used in dataset source and target configurations.

+ * @public + */ +export interface DataIntegrationFlowDatasetOptions { + /** + *

The dataset data load type in dataset options.

+ * @public + */ + loadType?: DataIntegrationFlowLoadType; + + /** + *

The dataset load option to remove duplicates.

+ * @public + */ + dedupeRecords?: boolean; +} + +/** + *

The dataset DataIntegrationFlow source configuration parameters.

+ * @public + */ +export interface DataIntegrationFlowDatasetSourceConfiguration { + /** + *

The ARN of the dataset.

+ * @public + */ + datasetIdentifier: string | undefined; + + /** + *

The dataset DataIntegrationFlow source options.

+ * @public + */ + options?: DataIntegrationFlowDatasetOptions; +} + +/** + * @public + * @enum + */ +export const DataIntegrationFlowFileType = { + CSV: "CSV", + JSON: "JSON", + PARQUET: "PARQUET", +} as const; + +/** + * @public + */ +export type DataIntegrationFlowFileType = + (typeof DataIntegrationFlowFileType)[keyof typeof DataIntegrationFlowFileType]; + +/** + *

The Amazon S3 options used in S3 source and target configurations.

+ * @public + */ +export interface DataIntegrationFlowS3Options { + /** + *

The Amazon S3 file type in S3 options.

+ * @public + */ + fileType?: DataIntegrationFlowFileType; +} + +/** + *

The S3 DataIntegrationFlow source configuration parameters.

+ * @public + */ +export interface DataIntegrationFlowS3SourceConfiguration { + /** + *

The bucketName of the S3 source objects.

+ * @public + */ + bucketName: string | undefined; + + /** + *

The prefix of the S3 source objects.

+ * @public + */ + prefix: string | undefined; + + /** + *

The other options of the S3 DataIntegrationFlow source.

+ * @public + */ + options?: DataIntegrationFlowS3Options; +} + +/** + * @public + * @enum + */ +export const DataIntegrationFlowSourceType = { + DATASET: "DATASET", + S3: "S3", +} as const; + +/** + * @public + */ +export type DataIntegrationFlowSourceType = + (typeof DataIntegrationFlowSourceType)[keyof typeof DataIntegrationFlowSourceType]; + +/** + *

The DataIntegrationFlow source parameters.

+ * @public + */ +export interface DataIntegrationFlowSource { + /** + *

The DataIntegrationFlow source type.

+ * @public + */ + sourceType: DataIntegrationFlowSourceType | undefined; + + /** + *

The DataIntegrationFlow source name that can be used as table alias in SQL transformation query.

+ * @public + */ + sourceName: string | undefined; + + /** + *

The S3 DataIntegrationFlow source.

+ * @public + */ + s3Source?: DataIntegrationFlowS3SourceConfiguration; + + /** + *

The dataset DataIntegrationFlow source.

+ * @public + */ + datasetSource?: DataIntegrationFlowDatasetSourceConfiguration; +} + +/** + *

The dataset DataIntegrationFlow target configuration parameters.

+ * @public + */ +export interface DataIntegrationFlowDatasetTargetConfiguration { + /** + *

The dataset ARN.

+ * @public + */ + datasetIdentifier: string | undefined; + + /** + *

The dataset DataIntegrationFlow target options.

+ * @public + */ + options?: DataIntegrationFlowDatasetOptions; +} + +/** + *

The S3 DataIntegrationFlow target configuration parameters.

+ * @public + */ +export interface DataIntegrationFlowS3TargetConfiguration { + /** + *

The bucketName of the S3 target objects.

+ * @public + */ + bucketName: string | undefined; + + /** + *

The prefix of the S3 target objects.

+ * @public + */ + prefix: string | undefined; + + /** + *

The S3 DataIntegrationFlow target options.

+ * @public + */ + options?: DataIntegrationFlowS3Options; +} + +/** + * @public + * @enum + */ +export const DataIntegrationFlowTargetType = { + DATASET: "DATASET", + S3: "S3", +} as const; + +/** + * @public + */ +export type DataIntegrationFlowTargetType = + (typeof DataIntegrationFlowTargetType)[keyof typeof DataIntegrationFlowTargetType]; + +/** + *

The DataIntegrationFlow target parameters.

+ * @public + */ +export interface DataIntegrationFlowTarget { + /** + *

The DataIntegrationFlow target type.

+ * @public + */ + targetType: DataIntegrationFlowTargetType | undefined; + + /** + *

The S3 DataIntegrationFlow target.

+ * @public + */ + s3Target?: DataIntegrationFlowS3TargetConfiguration; + + /** + *

The dataset DataIntegrationFlow target.

+ * @public + */ + datasetTarget?: DataIntegrationFlowDatasetTargetConfiguration; +} + +/** + *

The SQL DataIntegrationFlow transformation configuration parameters.

+ * @public + */ +export interface DataIntegrationFlowSQLTransformationConfiguration { + /** + *

The transformation SQL query body based on SparkSQL.

+ * @public + */ + query: string | undefined; +} + +/** + * @public + * @enum + */ +export const DataIntegrationFlowTransformationType = { + NONE: "NONE", + SQL: "SQL", +} as const; + +/** + * @public + */ +export type DataIntegrationFlowTransformationType = + (typeof DataIntegrationFlowTransformationType)[keyof typeof DataIntegrationFlowTransformationType]; + +/** + *

The DataIntegrationFlow transformation parameters.

+ * @public + */ +export interface DataIntegrationFlowTransformation { + /** + *

The DataIntegrationFlow transformation type.

+ * @public + */ + transformationType: DataIntegrationFlowTransformationType | undefined; + + /** + *

The SQL DataIntegrationFlow transformation configuration.

+ * @public + */ + sqlTransformation?: DataIntegrationFlowSQLTransformationConfiguration; +} + +/** + *

The request parameters for CreateDataIntegrationFlow.

+ * @public + */ +export interface CreateDataIntegrationFlowRequest { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

Name of the DataIntegrationFlow.

+ * @public + */ + name: string | undefined; + + /** + *

The source configurations for DataIntegrationFlow.

+ * @public + */ + sources: DataIntegrationFlowSource[] | undefined; + + /** + *

The transformation configurations for DataIntegrationFlow.

+ * @public + */ + transformation: DataIntegrationFlowTransformation | undefined; + + /** + *

The target configurations for DataIntegrationFlow.

+ * @public + */ + target: DataIntegrationFlowTarget | undefined; + + /** + *

The tags of the DataIntegrationFlow to be created

+ * @public + */ + tags?: Record; +} + +/** + *

The response parameters for CreateDataIntegrationFlow.

+ * @public + */ +export interface CreateDataIntegrationFlowResponse { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name of the DataIntegrationFlow created.

+ * @public + */ + name: string | undefined; +} + +/** + * @public + * @enum + */ +export const DataLakeDatasetSchemaFieldType = { + DOUBLE: "DOUBLE", + INT: "INT", + STRING: "STRING", + TIMESTAMP: "TIMESTAMP", +} as const; + +/** + * @public + */ +export type DataLakeDatasetSchemaFieldType = + (typeof DataLakeDatasetSchemaFieldType)[keyof typeof DataLakeDatasetSchemaFieldType]; + +/** + *

The dataset field details.

+ * @public + */ +export interface DataLakeDatasetSchemaField { + /** + *

The dataset field name.

+ * @public + */ + name: string | undefined; + + /** + *

The dataset field type.

+ * @public + */ + type: DataLakeDatasetSchemaFieldType | undefined; + + /** + *

Indicate if the field is required or not.

+ * @public + */ + isRequired: boolean | undefined; +} + +/** + *

The schema details of the dataset.

+ * @public + */ +export interface DataLakeDatasetSchema { + /** + *

The name of the dataset schema.

+ * @public + */ + name: string | undefined; + + /** + *

The list of field details of the dataset schema.

+ * @public + */ + fields: DataLakeDatasetSchemaField[] | undefined; +} + +/** + *

The request parameters for CreateDataLakeDataset.

+ * @public + */ +export interface CreateDataLakeDatasetRequest { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name space of the dataset.

+ * + * @public + */ + namespace: string | undefined; + + /** + *

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

+ * @public + */ + name: string | undefined; + + /** + *

The custom schema of the data lake dataset and is only required when the name space is default.

+ * @public + */ + schema?: DataLakeDatasetSchema; + + /** + *

The description of the dataset.

+ * @public + */ + description?: string; + + /** + *

The tags of the dataset.

+ * @public + */ + tags?: Record; +} + +/** + *

The data lake dataset details.

+ * @public + */ +export interface DataLakeDataset { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name space of the dataset. The available values are:

+ * + * @public + */ + namespace: string | undefined; + + /** + *

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

+ * @public + */ + name: string | undefined; + + /** + *

The arn of the dataset.

+ * @public + */ + arn: string | undefined; + + /** + *

The schema of the dataset.

+ * @public + */ + schema: DataLakeDatasetSchema | undefined; + + /** + *

The description of the dataset.

+ * @public + */ + description?: string; + + /** + *

The creation time of the dataset.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The last modified time of the dataset.

+ * @public + */ + lastModifiedTime: Date | undefined; +} + +/** + *

The response parameters of CreateDataLakeDataset.

+ * @public + */ +export interface CreateDataLakeDatasetResponse { + /** + *

The detail of created dataset.

+ * @public + */ + dataset: DataLakeDataset | undefined; +} + /** * @public * @enum @@ -291,13 +812,272 @@ export const DataIntegrationEventType = { /** * @public */ -export type DataIntegrationEventType = (typeof DataIntegrationEventType)[keyof typeof DataIntegrationEventType]; +export type DataIntegrationEventType = (typeof DataIntegrationEventType)[keyof typeof DataIntegrationEventType]; + +/** + *

The request parameters for SendDataIntegrationEvent.

+ * @public + */ +export interface SendDataIntegrationEventRequest { + /** + *

The AWS Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The data event type.

+ * @public + */ + eventType: DataIntegrationEventType | undefined; + + /** + *

The data payload of the event. For more information on the data schema to use, see Data entities supported in AWS Supply Chain + * .

+ * @public + */ + data: string | undefined; + + /** + *

Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning.

+ * @public + */ + eventGroupId: string | undefined; + + /** + *

The event timestamp (in epoch seconds).

+ * @public + */ + eventTimestamp?: Date; + + /** + *

The idempotent client token.

+ * @public + */ + clientToken?: string; +} + +/** + *

The response parameters for SendDataIntegrationEvent.

+ * @public + */ +export interface SendDataIntegrationEventResponse { + /** + *

The unique event identifier.

+ * @public + */ + eventId: string | undefined; +} + +/** + *

The DataIntegrationFlow details.

+ * @public + */ +export interface DataIntegrationFlow { + /** + *

The DataIntegrationFlow instance ID.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The DataIntegrationFlow name.

+ * @public + */ + name: string | undefined; + + /** + *

The DataIntegrationFlow source configurations.

+ * @public + */ + sources: DataIntegrationFlowSource[] | undefined; + + /** + *

The DataIntegrationFlow transformation configurations.

+ * @public + */ + transformation: DataIntegrationFlowTransformation | undefined; + + /** + *

The DataIntegrationFlow target configuration.

+ * @public + */ + target: DataIntegrationFlowTarget | undefined; + + /** + *

The DataIntegrationFlow creation timestamp.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The DataIntegrationFlow last modified timestamp.

+ * @public + */ + lastModifiedTime: Date | undefined; +} + +/** + *

The request parameters for DeleteDataIntegrationFlow.

+ * @public + */ +export interface DeleteDataIntegrationFlowRequest { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name of the DataIntegrationFlow to be deleted.

+ * @public + */ + name: string | undefined; +} /** - *

The request parameters for SendDataIntegrationEvent.

+ *

The response parameters for DeleteDataIntegrationFlow.

* @public */ -export interface SendDataIntegrationEventRequest { +export interface DeleteDataIntegrationFlowResponse { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name of the DataIntegrationFlow deleted.

+ * @public + */ + name: string | undefined; +} + +/** + *

The request parameters for GetDataIntegrationFlow.

+ * @public + */ +export interface GetDataIntegrationFlowRequest { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name of the DataIntegrationFlow created.

+ * @public + */ + name: string | undefined; +} + +/** + *

The response parameters for GetDataIntegrationFlow.

+ * @public + */ +export interface GetDataIntegrationFlowResponse { + /** + *

The details of the DataIntegrationFlow returned.

+ * @public + */ + flow: DataIntegrationFlow | undefined; +} + +/** + *

The request parameters for ListDataIntegrationFlows.

+ * @public + */ +export interface ListDataIntegrationFlowsRequest { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The pagination token to fetch the next page of the DataIntegrationFlows.

+ * @public + */ + nextToken?: string; + + /** + *

Specify the maximum number of DataIntegrationFlows to fetch in one paginated request.

+ * @public + */ + maxResults?: number; +} + +/** + *

The response parameters for ListDataIntegrationFlows.

+ * @public + */ +export interface ListDataIntegrationFlowsResponse { + /** + *

The response parameters for ListDataIntegrationFlows.

+ * @public + */ + flows: DataIntegrationFlow[] | undefined; + + /** + *

The pagination token to fetch the next page of the DataIntegrationFlows.

+ * @public + */ + nextToken?: string; +} + +/** + *

The request parameters for UpdateDataIntegrationFlow.

+ * @public + */ +export interface UpdateDataIntegrationFlowRequest { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name of the DataIntegrationFlow to be updated.

+ * @public + */ + name: string | undefined; + + /** + *

The new source configurations for the DataIntegrationFlow.

+ * @public + */ + sources?: DataIntegrationFlowSource[]; + + /** + *

The new transformation configurations for the DataIntegrationFlow.

+ * @public + */ + transformation?: DataIntegrationFlowTransformation; + + /** + *

The new target configurations for the DataIntegrationFlow.

+ * @public + */ + target?: DataIntegrationFlowTarget; +} + +/** + *

The response parameters for UpdateDataIntegrationFlow.

+ * @public + */ +export interface UpdateDataIntegrationFlowResponse { + /** + *

The details of the updated DataIntegrationFlow.

+ * @public + */ + flow: DataIntegrationFlow | undefined; +} + +/** + *

The request parameters of DeleteDataLakeDataset.

+ * @public + */ +export interface DeleteDataLakeDatasetRequest { /** *

The AWS Supply Chain instance identifier.

* @public @@ -305,49 +1085,281 @@ export interface SendDataIntegrationEventRequest { instanceId: string | undefined; /** - *

The data event type.

+ *

The namespace of the dataset. The available values are:

+ * * @public */ - eventType: DataIntegrationEventType | undefined; + namespace: string | undefined; /** - *

The data payload of the event. For more information on the data schema to use, see Data entities supported in AWS Supply Chain + *

The name of the dataset. If the namespace is asc, the name must be one of the supported data entities * .

* @public */ - data: string | undefined; + name: string | undefined; +} +/** + *

The response parameters of DeleteDataLakeDataset.

+ * @public + */ +export interface DeleteDataLakeDatasetResponse { /** - *

Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning.

+ *

The AWS Supply Chain instance identifier.

* @public */ - eventGroupId: string | undefined; + instanceId: string | undefined; /** - *

The event timestamp (in epoch seconds).

+ *

The namespace of deleted dataset.

* @public */ - eventTimestamp?: Date; + namespace: string | undefined; /** - *

The idempotent client token.

+ *

The name of deleted dataset.

* @public */ - clientToken?: string; + name: string | undefined; } /** - *

The response parameters for SendDataIntegrationEvent.

+ *

The request parameters for GetDataLakeDataset.

* @public */ -export interface SendDataIntegrationEventResponse { +export interface GetDataLakeDatasetRequest { /** - *

The unique event identifier.

+ *

The Amazon Web Services Supply Chain instance identifier.

* @public */ - eventId: string | undefined; + instanceId: string | undefined; + + /** + *

The name space of the dataset. The available values are:

+ * + * @public + */ + namespace: string | undefined; + + /** + *

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

+ * @public + */ + name: string | undefined; +} + +/** + *

The response parameters for UpdateDataLakeDataset.

+ * @public + */ +export interface GetDataLakeDatasetResponse { + /** + *

The fetched dataset details.

+ * @public + */ + dataset: DataLakeDataset | undefined; +} + +/** + *

The request parameters of ListDataLakeDatasets.

+ * @public + */ +export interface ListDataLakeDatasetsRequest { + /** + *

The Amazon Web Services Supply Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The namespace of the dataset. The available values are:

+ * + * @public + */ + namespace: string | undefined; + + /** + *

The pagination token to fetch next page of datasets.

+ * @public + */ + nextToken?: string; + + /** + *

The max number of datasets to fetch in this paginated request.

+ * @public + */ + maxResults?: number; +} + +/** + *

The response parameters of ListDataLakeDatasets.

+ * @public + */ +export interface ListDataLakeDatasetsResponse { + /** + *

The list of fetched dataset details.

+ * @public + */ + datasets: DataLakeDataset[] | undefined; + + /** + *

The pagination token to fetch next page of datasets.

+ * @public + */ + nextToken?: string; +} + +/** + *

The request parameters of UpdateDataLakeDataset.

+ * @public + */ +export interface UpdateDataLakeDatasetRequest { + /** + *

The Amazon Web Services Chain instance identifier.

+ * @public + */ + instanceId: string | undefined; + + /** + *

The name space of the dataset. The available values are:

+ * + * @public + */ + namespace: string | undefined; + + /** + *

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

+ * @public + */ + name: string | undefined; + + /** + *

The updated description of the data lake dataset.

+ * @public + */ + description?: string; +} + +/** + *

The response parameters of UpdateDataLakeDataset.

+ * @public + */ +export interface UpdateDataLakeDatasetResponse { + /** + *

The updated dataset details.

+ * @public + */ + dataset: DataLakeDataset | undefined; +} + +/** + *

The request parameters of ListTagsForResource.

+ * @public + */ +export interface ListTagsForResourceRequest { + /** + *

The Amazon Web Services Supply chain resource ARN that needs tags to be listed.

+ * @public + */ + resourceArn: string | undefined; +} + +/** + *

The response parameters of ListTagsForResource.

+ * @public + */ +export interface ListTagsForResourceResponse { + /** + *

The tags added to an Amazon Web Services Supply Chain resource.

+ * @public + */ + tags: Record | undefined; } +/** + *

The request parameters of TagResource.

+ * @public + */ +export interface TagResourceRequest { + /** + *

The Amazon Web Services Supply chain resource ARN that needs to be tagged.

+ * @public + */ + resourceArn: string | undefined; + + /** + *

The tags of the Amazon Web Services Supply chain resource to be created.

+ * @public + */ + tags: Record | undefined; +} + +/** + *

The response parameters for TagResource.

+ * @public + */ +export interface TagResourceResponse {} + +/** + *

The request parameters of UntagResource.

+ * @public + */ +export interface UntagResourceRequest { + /** + *

The Amazon Web Services Supply chain resource ARN that needs to be untagged.

+ * @public + */ + resourceArn: string | undefined; + + /** + *

The list of tag keys to be deleted for an Amazon Web Services Supply Chain resource.

+ * @public + */ + tagKeys: string[] | undefined; +} + +/** + *

The response parameters of UntagResource.

+ * @public + */ +export interface UntagResourceResponse {} + /** * @internal */ diff --git a/clients/client-supplychain/src/pagination/Interfaces.ts b/clients/client-supplychain/src/pagination/Interfaces.ts new file mode 100644 index 000000000000..4c13d4394de4 --- /dev/null +++ b/clients/client-supplychain/src/pagination/Interfaces.ts @@ -0,0 +1,11 @@ +// smithy-typescript generated code +import { PaginationConfiguration } from "@smithy/types"; + +import { SupplyChainClient } from "../SupplyChainClient"; + +/** + * @public + */ +export interface SupplyChainPaginationConfiguration extends PaginationConfiguration { + client: SupplyChainClient; +} diff --git a/clients/client-supplychain/src/pagination/ListDataIntegrationFlowsPaginator.ts b/clients/client-supplychain/src/pagination/ListDataIntegrationFlowsPaginator.ts new file mode 100644 index 000000000000..772194204cf1 --- /dev/null +++ b/clients/client-supplychain/src/pagination/ListDataIntegrationFlowsPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + ListDataIntegrationFlowsCommand, + ListDataIntegrationFlowsCommandInput, + ListDataIntegrationFlowsCommandOutput, +} from "../commands/ListDataIntegrationFlowsCommand"; +import { SupplyChainClient } from "../SupplyChainClient"; +import { SupplyChainPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListDataIntegrationFlows: ( + config: SupplyChainPaginationConfiguration, + input: ListDataIntegrationFlowsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + SupplyChainPaginationConfiguration, + ListDataIntegrationFlowsCommandInput, + ListDataIntegrationFlowsCommandOutput +>(SupplyChainClient, ListDataIntegrationFlowsCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-supplychain/src/pagination/ListDataLakeDatasetsPaginator.ts b/clients/client-supplychain/src/pagination/ListDataLakeDatasetsPaginator.ts new file mode 100644 index 000000000000..9118b8286e85 --- /dev/null +++ b/clients/client-supplychain/src/pagination/ListDataLakeDatasetsPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + ListDataLakeDatasetsCommand, + ListDataLakeDatasetsCommandInput, + ListDataLakeDatasetsCommandOutput, +} from "../commands/ListDataLakeDatasetsCommand"; +import { SupplyChainClient } from "../SupplyChainClient"; +import { SupplyChainPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListDataLakeDatasets: ( + config: SupplyChainPaginationConfiguration, + input: ListDataLakeDatasetsCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + SupplyChainPaginationConfiguration, + ListDataLakeDatasetsCommandInput, + ListDataLakeDatasetsCommandOutput +>(SupplyChainClient, ListDataLakeDatasetsCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-supplychain/src/pagination/index.ts b/clients/client-supplychain/src/pagination/index.ts new file mode 100644 index 000000000000..b8a068a5a4d5 --- /dev/null +++ b/clients/client-supplychain/src/pagination/index.ts @@ -0,0 +1,4 @@ +// smithy-typescript generated code +export * from "./Interfaces"; +export * from "./ListDataIntegrationFlowsPaginator"; +export * from "./ListDataLakeDatasetsPaginator"; diff --git a/clients/client-supplychain/src/protocols/Aws_restJson1.ts b/clients/client-supplychain/src/protocols/Aws_restJson1.ts index 4c0b1a529769..7b5477b5610f 100644 --- a/clients/client-supplychain/src/protocols/Aws_restJson1.ts +++ b/clients/client-supplychain/src/protocols/Aws_restJson1.ts @@ -7,9 +7,12 @@ import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, + expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, + extendedEncodeURIComponent as __extendedEncodeURIComponent, map, + parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, @@ -25,17 +28,74 @@ import { CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput, } from "../commands/CreateBillOfMaterialsImportJobCommand"; +import { + CreateDataIntegrationFlowCommandInput, + CreateDataIntegrationFlowCommandOutput, +} from "../commands/CreateDataIntegrationFlowCommand"; +import { + CreateDataLakeDatasetCommandInput, + CreateDataLakeDatasetCommandOutput, +} from "../commands/CreateDataLakeDatasetCommand"; +import { + DeleteDataIntegrationFlowCommandInput, + DeleteDataIntegrationFlowCommandOutput, +} from "../commands/DeleteDataIntegrationFlowCommand"; +import { + DeleteDataLakeDatasetCommandInput, + DeleteDataLakeDatasetCommandOutput, +} from "../commands/DeleteDataLakeDatasetCommand"; import { GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput, } from "../commands/GetBillOfMaterialsImportJobCommand"; +import { + GetDataIntegrationFlowCommandInput, + GetDataIntegrationFlowCommandOutput, +} from "../commands/GetDataIntegrationFlowCommand"; +import { GetDataLakeDatasetCommandInput, GetDataLakeDatasetCommandOutput } from "../commands/GetDataLakeDatasetCommand"; +import { + ListDataIntegrationFlowsCommandInput, + ListDataIntegrationFlowsCommandOutput, +} from "../commands/ListDataIntegrationFlowsCommand"; +import { + ListDataLakeDatasetsCommandInput, + ListDataLakeDatasetsCommandOutput, +} from "../commands/ListDataLakeDatasetsCommand"; +import { + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, +} from "../commands/ListTagsForResourceCommand"; import { SendDataIntegrationEventCommandInput, SendDataIntegrationEventCommandOutput, } from "../commands/SendDataIntegrationEventCommand"; +import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand"; +import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand"; +import { + UpdateDataIntegrationFlowCommandInput, + UpdateDataIntegrationFlowCommandOutput, +} from "../commands/UpdateDataIntegrationFlowCommand"; +import { + UpdateDataLakeDatasetCommandInput, + UpdateDataLakeDatasetCommandOutput, +} from "../commands/UpdateDataLakeDatasetCommand"; import { AccessDeniedException, ConflictException, + DataIntegrationFlow, + DataIntegrationFlowDatasetOptions, + DataIntegrationFlowDatasetSourceConfiguration, + DataIntegrationFlowDatasetTargetConfiguration, + DataIntegrationFlowS3Options, + DataIntegrationFlowS3SourceConfiguration, + DataIntegrationFlowS3TargetConfiguration, + DataIntegrationFlowSource, + DataIntegrationFlowSQLTransformationConfiguration, + DataIntegrationFlowTarget, + DataIntegrationFlowTransformation, + DataLakeDataset, + DataLakeDatasetSchema, + DataLakeDatasetSchemaField, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, @@ -68,6 +128,95 @@ export const se_CreateBillOfMaterialsImportJobCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1CreateDataIntegrationFlowCommand + */ +export const se_CreateDataIntegrationFlowCommand = async ( + input: CreateDataIntegrationFlowCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/api/data-integration/instance/{instanceId}/data-integration-flows/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + body = JSON.stringify( + take(input, { + sources: (_) => _json(_), + tags: (_) => _json(_), + target: (_) => _json(_), + transformation: (_) => _json(_), + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1CreateDataLakeDatasetCommand + */ +export const se_CreateDataLakeDatasetCommand = async ( + input: CreateDataLakeDatasetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("namespace", () => input.namespace!, "{namespace}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + body = JSON.stringify( + take(input, { + description: [], + schema: (_) => _json(_), + tags: (_) => _json(_), + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1DeleteDataIntegrationFlowCommand + */ +export const se_DeleteDataIntegrationFlowCommand = async ( + input: DeleteDataIntegrationFlowCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/data-integration/instance/{instanceId}/data-integration-flows/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1DeleteDataLakeDatasetCommand + */ +export const se_DeleteDataLakeDatasetCommand = async ( + input: DeleteDataLakeDatasetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("namespace", () => input.namespace!, "{namespace}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1GetBillOfMaterialsImportJobCommand */ @@ -85,6 +234,98 @@ export const se_GetBillOfMaterialsImportJobCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1GetDataIntegrationFlowCommand + */ +export const se_GetDataIntegrationFlowCommand = async ( + input: GetDataIntegrationFlowCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/data-integration/instance/{instanceId}/data-integration-flows/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1GetDataLakeDatasetCommand + */ +export const se_GetDataLakeDatasetCommand = async ( + input: GetDataLakeDatasetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("namespace", () => input.namespace!, "{namespace}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1ListDataIntegrationFlowsCommand + */ +export const se_ListDataIntegrationFlowsCommand = async ( + input: ListDataIntegrationFlowsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/data-integration/instance/{instanceId}/data-integration-flows"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + const query: any = map({ + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1ListDataLakeDatasetsCommand + */ +export const se_ListDataLakeDatasetsCommand = async ( + input: ListDataLakeDatasetsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("namespace", () => input.namespace!, "{namespace}", false); + const query: any = map({ + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1ListTagsForResourceCommand + */ +export const se_ListTagsForResourceCommand = async ( + input: ListTagsForResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1SendDataIntegrationEventCommand */ @@ -112,6 +353,99 @@ export const se_SendDataIntegrationEventCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1TagResourceCommand + */ +export const se_TagResourceCommand = async ( + input: TagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/api/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); + let body: any; + body = JSON.stringify( + take(input, { + tags: (_) => _json(_), + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1UntagResourceCommand + */ +export const se_UntagResourceCommand = async ( + input: UntagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/api/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); + const query: any = map({ + [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK]! || []], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1UpdateDataIntegrationFlowCommand + */ +export const se_UpdateDataIntegrationFlowCommand = async ( + input: UpdateDataIntegrationFlowCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/api/data-integration/instance/{instanceId}/data-integration-flows/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + body = JSON.stringify( + take(input, { + sources: (_) => _json(_), + target: (_) => _json(_), + transformation: (_) => _json(_), + }) + ); + b.m("PATCH").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1UpdateDataLakeDatasetCommand + */ +export const se_UpdateDataLakeDatasetCommand = async ( + input: UpdateDataLakeDatasetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}"); + b.p("instanceId", () => input.instanceId!, "{instanceId}", false); + b.p("namespace", () => input.namespace!, "{namespace}", false); + b.p("name", () => input.name!, "{name}", false); + let body: any; + body = JSON.stringify( + take(input, { + description: [], + }) + ); + b.m("PATCH").h(headers).b(body); + return b.build(); +}; + /** * deserializeAws_restJson1CreateBillOfMaterialsImportJobCommand */ @@ -133,6 +467,94 @@ export const de_CreateBillOfMaterialsImportJobCommand = async ( return contents; }; +/** + * deserializeAws_restJson1CreateDataIntegrationFlowCommand + */ +export const de_CreateDataIntegrationFlowCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + instanceId: __expectString, + name: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CreateDataLakeDatasetCommand + */ +export const de_CreateDataLakeDatasetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + dataset: (_) => de_DataLakeDataset(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteDataIntegrationFlowCommand + */ +export const de_DeleteDataIntegrationFlowCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + instanceId: __expectString, + name: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteDataLakeDatasetCommand + */ +export const de_DeleteDataLakeDatasetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + instanceId: __expectString, + name: __expectString, + namespace: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1GetBillOfMaterialsImportJobCommand */ @@ -154,6 +576,113 @@ export const de_GetBillOfMaterialsImportJobCommand = async ( return contents; }; +/** + * deserializeAws_restJson1GetDataIntegrationFlowCommand + */ +export const de_GetDataIntegrationFlowCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + flow: (_) => de_DataIntegrationFlow(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetDataLakeDatasetCommand + */ +export const de_GetDataLakeDatasetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + dataset: (_) => de_DataLakeDataset(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListDataIntegrationFlowsCommand + */ +export const de_ListDataIntegrationFlowsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + flows: (_) => de_DataIntegrationFlowList(_, context), + nextToken: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListDataLakeDatasetsCommand + */ +export const de_ListDataLakeDatasetsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + datasets: (_) => de_DataLakeDatasetList(_, context), + nextToken: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListTagsForResourceCommand + */ +export const de_ListTagsForResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + tags: _json, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1SendDataIntegrationEventCommand */ @@ -175,6 +704,82 @@ export const de_SendDataIntegrationEventCommand = async ( return contents; }; +/** + * deserializeAws_restJson1TagResourceCommand + */ +export const de_TagResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restJson1UntagResourceCommand + */ +export const de_UntagResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restJson1UpdateDataIntegrationFlowCommand + */ +export const de_UpdateDataIntegrationFlowCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + flow: (_) => de_DataIntegrationFlow(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1UpdateDataLakeDatasetCommand + */ +export const de_UpdateDataLakeDatasetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + dataset: (_) => de_DataLakeDataset(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserialize_Aws_restJson1CommandError */ @@ -348,8 +953,123 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont return __decorateServiceException(exception, parsedOutput.body); }; +// se_DataIntegrationFlowDatasetOptions omitted. + +// se_DataIntegrationFlowDatasetSourceConfiguration omitted. + +// se_DataIntegrationFlowDatasetTargetConfiguration omitted. + +// se_DataIntegrationFlowS3Options omitted. + +// se_DataIntegrationFlowS3SourceConfiguration omitted. + +// se_DataIntegrationFlowS3TargetConfiguration omitted. + +// se_DataIntegrationFlowSource omitted. + +// se_DataIntegrationFlowSourceList omitted. + +// se_DataIntegrationFlowSQLTransformationConfiguration omitted. + +// se_DataIntegrationFlowTarget omitted. + +// se_DataIntegrationFlowTransformation omitted. + +// se_DataLakeDatasetSchema omitted. + +// se_DataLakeDatasetSchemaField omitted. + +// se_DataLakeDatasetSchemaFieldList omitted. + +// se_TagMap omitted. + // de_BillOfMaterialsImportJob omitted. +/** + * deserializeAws_restJson1DataIntegrationFlow + */ +const de_DataIntegrationFlow = (output: any, context: __SerdeContext): DataIntegrationFlow => { + return take(output, { + createdTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + instanceId: __expectString, + lastModifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + name: __expectString, + sources: _json, + target: _json, + transformation: _json, + }) as any; +}; + +// de_DataIntegrationFlowDatasetOptions omitted. + +// de_DataIntegrationFlowDatasetSourceConfiguration omitted. + +// de_DataIntegrationFlowDatasetTargetConfiguration omitted. + +/** + * deserializeAws_restJson1DataIntegrationFlowList + */ +const de_DataIntegrationFlowList = (output: any, context: __SerdeContext): DataIntegrationFlow[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_DataIntegrationFlow(entry, context); + }); + return retVal; +}; + +// de_DataIntegrationFlowS3Options omitted. + +// de_DataIntegrationFlowS3SourceConfiguration omitted. + +// de_DataIntegrationFlowS3TargetConfiguration omitted. + +// de_DataIntegrationFlowSource omitted. + +// de_DataIntegrationFlowSourceList omitted. + +// de_DataIntegrationFlowSQLTransformationConfiguration omitted. + +// de_DataIntegrationFlowTarget omitted. + +// de_DataIntegrationFlowTransformation omitted. + +/** + * deserializeAws_restJson1DataLakeDataset + */ +const de_DataLakeDataset = (output: any, context: __SerdeContext): DataLakeDataset => { + return take(output, { + arn: __expectString, + createdTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + description: __expectString, + instanceId: __expectString, + lastModifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + name: __expectString, + namespace: __expectString, + schema: _json, + }) as any; +}; + +/** + * deserializeAws_restJson1DataLakeDatasetList + */ +const de_DataLakeDatasetList = (output: any, context: __SerdeContext): DataLakeDataset[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_DataLakeDataset(entry, context); + }); + return retVal; +}; + +// de_DataLakeDatasetSchema omitted. + +// de_DataLakeDatasetSchemaField omitted. + +// de_DataLakeDatasetSchemaFieldList omitted. + +// de_TagMap omitted. + const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ httpStatusCode: output.statusCode, requestId: @@ -361,3 +1081,7 @@ const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ // Encode Uint8Array data into string with utf-8. const collectBodyString = (streamBody: any, context: __SerdeContext): Promise => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; diff --git a/codegen/sdk-codegen/aws-models/supplychain.json b/codegen/sdk-codegen/aws-models/supplychain.json index 9bf716bb9362..883da1cce902 100644 --- a/codegen/sdk-codegen/aws-models/supplychain.json +++ b/codegen/sdk-codegen/aws-models/supplychain.json @@ -14,6 +14,16 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.supplychain#AscResourceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 1011 + }, + "smithy.api#pattern": "^arn:aws:scn(?::([a-z0-9-]+):([0-9]+):instance)?/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})[-_./A-Za-z0-9]*$" + } + }, "com.amazonaws.supplychain#BillOfMaterialsImportJob": { "type": "structure", "members": { @@ -233,7 +243,7 @@ "clientToken": { "target": "com.amazonaws.supplychain#ClientToken", "traits": { - "smithy.api#documentation": "

An idempotency token.

", + "smithy.api#documentation": "

An idempotency token ensures the API request is only completed no more than once. This way, retrying the request will not trigger the operation multiple times. A client token is a unique, case-sensitive string of 33 to 128 ASCII characters. To make an idempotent API request, specify a client token in the request. You should not reuse the same client token for other requests. If you retry a successful request with the same client token, the request will succeed with no further actions being taken, and you will receive the same API response as the original successful request.

", "smithy.api#idempotencyToken": {} } } @@ -259,164 +269,208 @@ "smithy.api#output": {} } }, - "com.amazonaws.supplychain#DataIntegrationEventData": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 1048576 + "com.amazonaws.supplychain#CreateDataIntegrationFlow": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#CreateDataIntegrationFlowRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#CreateDataIntegrationFlowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" }, - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.supplychain#DataIntegrationEventGroupId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 - } - } - }, - "com.amazonaws.supplychain#DataIntegrationEventResource": { - "type": "resource", - "identifiers": { - "instanceId": { - "target": "com.amazonaws.supplychain#UUID" + { + "target": "com.amazonaws.supplychain#ConflictException" }, - "eventId": { - "target": "com.amazonaws.supplychain#UUID" - } - }, - "properties": { - "eventType": { - "target": "com.amazonaws.supplychain#DataIntegrationEventType" + { + "target": "com.amazonaws.supplychain#InternalServerException" }, - "data": { - "target": "com.amazonaws.supplychain#DataIntegrationEventData" + { + "target": "com.amazonaws.supplychain#ServiceQuotaExceededException" }, - "eventGroupId": { - "target": "com.amazonaws.supplychain#DataIntegrationEventGroupId" + { + "target": "com.amazonaws.supplychain#ThrottlingException" }, - "eventTimestamp": { - "target": "smithy.api#Timestamp" + { + "target": "com.amazonaws.supplychain#ValidationException" } - }, - "create": { - "target": "com.amazonaws.supplychain#SendDataIntegrationEvent" - }, + ], "traits": { - "aws.api#arn": { - "template": "instance/{instanceId}/data-integration-events/{eventId}" - } + "smithy.api#documentation": "

Create DataIntegrationFlow to map one or more different sources to one target using the SQL transformation query.

", + "smithy.api#examples": [ + { + "title": "Successful CreateDataIntegrationFlow for s3 to dataset flow", + "input": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow", + "sources": [ + { + "sourceType": "S3", + "sourceName": "testSourceName", + "s3Source": { + "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f", + "prefix": "example-prefix" + } + } + ], + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "query": "SELECT * FROM testSourceName" + } + }, + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset" + } + }, + "tags": { + "tagKey1": "tagValue1" + } + }, + "output": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow" + } + }, + { + "title": "Successful CreateDataIntegrationFlow for dataset to dataset flow", + "input": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "trading-partner", + "sources": [ + { + "sourceType": "DATASET", + "sourceName": "testSourceName1", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1" + } + }, + { + "sourceType": "DATASET", + "sourceName": "testSourceName2", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2" + } + } + ], + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "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" + } + }, + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner" + } + }, + "tags": { + "tagKey1": "tagValue1" + } + }, + "output": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "trading-partner" + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "PUT", + "uri": "/api/data-integration/instance/{instanceId}/data-integration-flows/{name}" + }, + "smithy.api#idempotent": {} } }, - "com.amazonaws.supplychain#DataIntegrationEventType": { - "type": "enum", + "com.amazonaws.supplychain#CreateDataIntegrationFlowRequest": { + "type": "structure", "members": { - "FORECAST": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "scn.data.forecast" - } - }, - "INVENTORY_LEVEL": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "scn.data.inventorylevel" - } - }, - "INBOUND_ORDER": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "scn.data.inboundorder" - } - }, - "INBOUND_ORDER_LINE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "scn.data.inboundorderline" - } - }, - "INBOUND_ORDER_LINE_SCHEDULE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "scn.data.inboundorderlineschedule" - } - }, - "OUTBOUND_ORDER_LINE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "scn.data.outboundorderline" - } - }, - "OUTBOUND_SHIPMENT": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "scn.data.outboundshipment" - } - }, - "PROCESS_HEADER": { - "target": "smithy.api#Unit", + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", "traits": { - "smithy.api#enumValue": "scn.data.processheader" + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "PROCESS_OPERATION": { - "target": "smithy.api#Unit", + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName", "traits": { - "smithy.api#enumValue": "scn.data.processoperation" + "smithy.api#documentation": "

Name of the DataIntegrationFlow.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "PROCESS_PRODUCT": { - "target": "smithy.api#Unit", + "sources": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSourceList", "traits": { - "smithy.api#enumValue": "scn.data.processproduct" + "smithy.api#documentation": "

The source configurations for DataIntegrationFlow.

", + "smithy.api#required": {} } }, - "RESERVATION": { - "target": "smithy.api#Unit", + "transformation": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTransformation", "traits": { - "smithy.api#enumValue": "scn.data.reservation" + "smithy.api#documentation": "

The transformation configurations for DataIntegrationFlow.

", + "smithy.api#required": {} } }, - "SHIPMENT": { - "target": "smithy.api#Unit", + "target": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTarget", "traits": { - "smithy.api#enumValue": "scn.data.shipment" + "smithy.api#documentation": "

The target configurations for DataIntegrationFlow.

", + "smithy.api#required": {} } }, - "SHIPMENT_STOP": { - "target": "smithy.api#Unit", + "tags": { + "target": "com.amazonaws.supplychain#TagMap", "traits": { - "smithy.api#enumValue": "scn.data.shipmentstop" + "smithy.api#documentation": "

The tags of the DataIntegrationFlow to be created

", + "smithy.api#notProperty": {} } - }, - "SHIPMENT_STOP_ORDER": { - "target": "smithy.api#Unit", + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for CreateDataIntegrationFlow.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#CreateDataIntegrationFlowResponse": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", "traits": { - "smithy.api#enumValue": "scn.data.shipmentstoporder" + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#required": {} } }, - "SUPPLY_PLAN": { - "target": "smithy.api#Unit", + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName", "traits": { - "smithy.api#enumValue": "scn.data.supplyplan" + "smithy.api#documentation": "

The name of the DataIntegrationFlow created.

", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#documentation": "

The response parameters for CreateDataIntegrationFlow.

", + "smithy.api#output": {} } }, - "com.amazonaws.supplychain#GalaxyPublicAPIGateway": { - "type": "service", - "version": "2024-01-01", - "resources": [ - { - "target": "com.amazonaws.supplychain#BillOfMaterialsImportJobResource" - }, - { - "target": "com.amazonaws.supplychain#DataIntegrationEventResource" - } - ], + "com.amazonaws.supplychain#CreateDataLakeDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#CreateDataLakeDatasetRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#CreateDataLakeDatasetResponse" + }, "errors": [ { "target": "com.amazonaws.supplychain#AccessDeniedException" @@ -427,9 +481,6 @@ { "target": "com.amazonaws.supplychain#InternalServerException" }, - { - "target": "com.amazonaws.supplychain#ResourceNotFoundException" - }, { "target": "com.amazonaws.supplychain#ServiceQuotaExceededException" }, @@ -441,243 +492,1797 @@ } ], "traits": { - "aws.api#service": { - "sdkId": "SupplyChain", - "arnNamespace": "scn", - "endpointPrefix": "scn" - }, - "aws.auth#sigv4": { - "name": "scn" - }, - "aws.protocols#restJson1": {}, - "smithy.api#cors": { - "additionalAllowedHeaders": [ - "*", - "content-type", - "x-amz-content-sha256", - "x-amz-user-agent", - "x-amzn-platform-id", - "x-amzn-trace-id" - ], - "additionalExposedHeaders": ["x-amzn-errortype", "x-amzn-requestid", "x-amzn-trace-id"], - "maxAge": 86400 - }, - "smithy.api#documentation": "

\n AWS Supply Chain is a cloud-based application that works with your enterprise resource planning (ERP) and supply chain management systems. Using AWS Supply Chain, you can connect and extract your inventory, supply, and demand related data from existing ERP or supply chain systems into a single data model.\n

\n

The AWS Supply Chain API supports configuration data import for Supply Planning.

\n

\n All AWS Supply chain API operations are Amazon-authenticated and certificate-signed. They not only require the use of the AWS SDK, but also allow for the exclusive use of AWS Identity and Access Management users and roles to help facilitate access, trust, and permission policies.\n

", - "smithy.api#title": "AWS Supply Chain", - "smithy.rules#endpointRuleSet": { - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" + "smithy.api#documentation": "

Create a data lake dataset.

", + "smithy.api#examples": [ + { + "title": "Create an AWS Supply Chain inbound order dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order", + "description": "This is an AWS Supply Chain inbound order dataset", + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + } }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ + "output": { + "dataset": { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order", + "description": "This is an AWS Supply Chain inbound order dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727116807751e9, + "schema": { + "name": "InboundOrder", + "fields": [ { - "ref": "Endpoint" - } - ] - } - ], - "rules": [ - { - "conditions": [ + "name": "id", + "type": "STRING", + "isRequired": true + }, { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "rules": [ + "name": "tpartner_id", + "type": "STRING", + "isRequired": true + }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "name": "connection_id", + "type": "STRING", + "isRequired": true }, { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "name": "order_type", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_status", + "type": "STRING", + "isRequired": false + }, + { + "name": "inbound_order_url", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_creation_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "company_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "to_site_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "vendor_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "exchange_rate", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "exchange_rate_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "incoterm", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm2", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_1", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_2", + "type": "STRING", + "isRequired": false + }, + { + "name": "submitted_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_start_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_end_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "shipping_instr_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "payment_terms_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement_ver", + "type": "STRING", + "isRequired": false + }, + { + "name": "agreement_number", + "type": "STRING", + "isRequired": false + }, + { + "name": "source", + "type": "STRING", + "isRequired": false + }, + { + "name": "source_update_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "source_event_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "db_creation_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "db_updation_dttm", + "type": "TIMESTAMP", + "isRequired": false } - ], - "type": "tree" + ] } - ], - "type": "tree" + } + } + }, + { + "title": "Create a custom dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset", + "description": "This is a custom dataset", + "schema": { + "name": "MyDataset", + "fields": [ + { + "name": "id", + "type": "INT", + "isRequired": true + }, + { + "name": "description", + "type": "STRING", + "isRequired": true + }, + { + "name": "price", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "creation_time", + "type": "TIMESTAMP", + "isRequired": false + } + ] + }, + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + } }, - { - "conditions": [], - "rules": [ - { - "conditions": [ + "output": { + "dataset": { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset", + "description": "This is a custom dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727116807751e9, + "schema": { + "name": "MyDataset", + "fields": [ { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "rules": [ + "name": "id", + "type": "INT", + "isRequired": true + }, { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://scn-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } + "name": "description", + "type": "STRING", + "isRequired": true + }, + { + "name": "price", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "creation_time", + "type": "TIMESTAMP", + "isRequired": false + } + ] + } + } + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "PUT", + "uri": "/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.supplychain#CreateDataLakeDatasetRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace", + "traits": { + "smithy.api#documentation": "

The name space of the dataset.

\n ", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetName", + "traits": { + "smithy.api#documentation": "

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "schema": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchema", + "traits": { + "smithy.api#documentation": "

The custom schema of the data lake dataset and is only required when the name space is default.

" + } + }, + "description": { + "target": "com.amazonaws.supplychain#DataLakeDatasetDescription", + "traits": { + "smithy.api#documentation": "

The description of the dataset.

" + } + }, + "tags": { + "target": "com.amazonaws.supplychain#TagMap", + "traits": { + "smithy.api#documentation": "

The tags of the dataset.

", + "smithy.api#notProperty": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for CreateDataLakeDataset.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#CreateDataLakeDatasetResponse": { + "type": "structure", + "members": { + "dataset": { + "target": "com.amazonaws.supplychain#DataLakeDataset", + "traits": { + "smithy.api#documentation": "

The detail of created dataset.

", + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters of CreateDataLakeDataset.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#DataIntegrationEventData": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1048576 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.supplychain#DataIntegrationEventGroupId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + } + } + }, + "com.amazonaws.supplychain#DataIntegrationEventResource": { + "type": "resource", + "identifiers": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID" + }, + "eventId": { + "target": "com.amazonaws.supplychain#UUID" + } + }, + "properties": { + "eventType": { + "target": "com.amazonaws.supplychain#DataIntegrationEventType" + }, + "data": { + "target": "com.amazonaws.supplychain#DataIntegrationEventData" + }, + "eventGroupId": { + "target": "com.amazonaws.supplychain#DataIntegrationEventGroupId" + }, + "eventTimestamp": { + "target": "smithy.api#Timestamp" + } + }, + "create": { + "target": "com.amazonaws.supplychain#SendDataIntegrationEvent" + }, + "traits": { + "aws.api#arn": { + "template": "instance/{instanceId}/data-integration-events/{eventId}" + } + } + }, + "com.amazonaws.supplychain#DataIntegrationEventType": { + "type": "enum", + "members": { + "FORECAST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.forecast" + } + }, + "INVENTORY_LEVEL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.inventorylevel" + } + }, + "INBOUND_ORDER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.inboundorder" + } + }, + "INBOUND_ORDER_LINE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.inboundorderline" + } + }, + "INBOUND_ORDER_LINE_SCHEDULE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.inboundorderlineschedule" + } + }, + "OUTBOUND_ORDER_LINE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.outboundorderline" + } + }, + "OUTBOUND_SHIPMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.outboundshipment" + } + }, + "PROCESS_HEADER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.processheader" + } + }, + "PROCESS_OPERATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.processoperation" + } + }, + "PROCESS_PRODUCT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.processproduct" + } + }, + "RESERVATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.reservation" + } + }, + "SHIPMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.shipment" + } + }, + "SHIPMENT_STOP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.shipmentstop" + } + }, + "SHIPMENT_STOP_ORDER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.shipmentstoporder" + } + }, + "SUPPLY_PLAN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "scn.data.supplyplan" + } + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlow": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow instance ID.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "instanceId" + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow name.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "name" + } + }, + "sources": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSourceList", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow source configurations.

", + "smithy.api#required": {} + } + }, + "transformation": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTransformation", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow transformation configurations.

", + "smithy.api#required": {} + } + }, + "target": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTarget", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow target configuration.

", + "smithy.api#required": {} + } + }, + "createdTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow creation timestamp.

", + "smithy.api#required": {} + } + }, + "lastModifiedTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow last modified timestamp.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow details.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowDatasetOptions": { + "type": "structure", + "members": { + "loadType": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowLoadType", + "traits": { + "smithy.api#documentation": "

The dataset data load type in dataset options.

" + } + }, + "dedupeRecords": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

The dataset load option to remove duplicates.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The dataset options used in dataset source and target configurations.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowDatasetSourceConfiguration": { + "type": "structure", + "members": { + "datasetIdentifier": { + "target": "com.amazonaws.supplychain#DatasetIdentifier", + "traits": { + "smithy.api#documentation": "

The ARN of the dataset.

", + "smithy.api#required": {} + } + }, + "options": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowDatasetOptions", + "traits": { + "smithy.api#documentation": "

The dataset DataIntegrationFlow source options.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The dataset DataIntegrationFlow source configuration parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowDatasetTargetConfiguration": { + "type": "structure", + "members": { + "datasetIdentifier": { + "target": "com.amazonaws.supplychain#DatasetIdentifier", + "traits": { + "smithy.api#documentation": "

The dataset ARN.

", + "smithy.api#required": {} + } + }, + "options": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowDatasetOptions", + "traits": { + "smithy.api#documentation": "

The dataset DataIntegrationFlow target options.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The dataset DataIntegrationFlow target configuration parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowFileType": { + "type": "enum", + "members": { + "CSV": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CSV" + } + }, + "PARQUET": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PARQUET" + } + }, + "JSON": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "JSON" + } + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowList": { + "type": "list", + "member": { + "target": "com.amazonaws.supplychain#DataIntegrationFlow" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowLoadType": { + "type": "enum", + "members": { + "INCREMENTAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INCREMENTAL" + } + }, + "REPLACE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REPLACE" + } + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowMaxResults": { + "type": "integer", + "traits": { + "smithy.api#default": 10, + "smithy.api#range": { + "min": 0, + "max": 20 + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9-]+$" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowNextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 65535 + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowResource": { + "type": "resource", + "identifiers": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID" + }, + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName" + } + }, + "properties": { + "sources": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSourceList" + }, + "transformation": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTransformation" + }, + "target": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTarget" + }, + "createdTime": { + "target": "smithy.api#Timestamp" + }, + "lastModifiedTime": { + "target": "smithy.api#Timestamp" + } + }, + "put": { + "target": "com.amazonaws.supplychain#CreateDataIntegrationFlow" + }, + "read": { + "target": "com.amazonaws.supplychain#GetDataIntegrationFlow" + }, + "update": { + "target": "com.amazonaws.supplychain#UpdateDataIntegrationFlow" + }, + "delete": { + "target": "com.amazonaws.supplychain#DeleteDataIntegrationFlow" + }, + "list": { + "target": "com.amazonaws.supplychain#ListDataIntegrationFlows" + }, + "traits": { + "aws.api#arn": { + "template": "instance/{instanceId}/data-integration-flows/{name}" + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowS3Options": { + "type": "structure", + "members": { + "fileType": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowFileType", + "traits": { + "smithy.api#documentation": "

The Amazon S3 file type in S3 options.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The Amazon S3 options used in S3 source and target configurations.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowS3Prefix": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 700 + }, + "smithy.api#pattern": "^[/A-Za-z0-9._-]+$" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowS3SourceConfiguration": { + "type": "structure", + "members": { + "bucketName": { + "target": "com.amazonaws.supplychain#S3BucketName", + "traits": { + "smithy.api#documentation": "

The bucketName of the S3 source objects.

", + "smithy.api#required": {} + } + }, + "prefix": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowS3Prefix", + "traits": { + "smithy.api#documentation": "

The prefix of the S3 source objects.

", + "smithy.api#required": {} + } + }, + "options": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowS3Options", + "traits": { + "smithy.api#documentation": "

The other options of the S3 DataIntegrationFlow source.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The S3 DataIntegrationFlow source configuration parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowS3TargetConfiguration": { + "type": "structure", + "members": { + "bucketName": { + "target": "com.amazonaws.supplychain#S3BucketName", + "traits": { + "smithy.api#documentation": "

The bucketName of the S3 target objects.

", + "smithy.api#required": {} + } + }, + "prefix": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowS3Prefix", + "traits": { + "smithy.api#documentation": "

The prefix of the S3 target objects.

", + "smithy.api#required": {} + } + }, + "options": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowS3Options", + "traits": { + "smithy.api#documentation": "

The S3 DataIntegrationFlow target options.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The S3 DataIntegrationFlow target configuration parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowSQLQuery": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 65535 + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowSQLTransformationConfiguration": { + "type": "structure", + "members": { + "query": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSQLQuery", + "traits": { + "smithy.api#documentation": "

The transformation SQL query body based on SparkSQL.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The SQL DataIntegrationFlow transformation configuration parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowSource": { + "type": "structure", + "members": { + "sourceType": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSourceType", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow source type.

", + "smithy.api#required": {} + } + }, + "sourceName": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSourceName", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow source name that can be used as table alias in SQL transformation query.

", + "smithy.api#required": {} + } + }, + "s3Source": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowS3SourceConfiguration", + "traits": { + "smithy.api#documentation": "

The S3 DataIntegrationFlow source.

" + } + }, + "datasetSource": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowDatasetSourceConfiguration", + "traits": { + "smithy.api#documentation": "

The dataset DataIntegrationFlow source.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow source parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowSourceList": { + "type": "list", + "member": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSource" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 40 + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowSourceName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_]+$" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowSourceType": { + "type": "enum", + "members": { + "S3": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "S3" + } + }, + "DATASET": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DATASET" + } + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowTarget": { + "type": "structure", + "members": { + "targetType": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTargetType", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow target type.

", + "smithy.api#required": {} + } + }, + "s3Target": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowS3TargetConfiguration", + "traits": { + "smithy.api#documentation": "

The S3 DataIntegrationFlow target.

" + } + }, + "datasetTarget": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowDatasetTargetConfiguration", + "traits": { + "smithy.api#documentation": "

The dataset DataIntegrationFlow target.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow target parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowTargetType": { + "type": "enum", + "members": { + "S3": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "S3" + } + }, + "DATASET": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DATASET" + } + } + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowTransformation": { + "type": "structure", + "members": { + "transformationType": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTransformationType", + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow transformation type.

", + "smithy.api#required": {} + } + }, + "sqlTransformation": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSQLTransformationConfiguration", + "traits": { + "smithy.api#documentation": "

The SQL DataIntegrationFlow transformation configuration.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The DataIntegrationFlow transformation parameters.

" + } + }, + "com.amazonaws.supplychain#DataIntegrationFlowTransformationType": { + "type": "enum", + "members": { + "SQL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SQL" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + } + } + }, + "com.amazonaws.supplychain#DataLakeDataset": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "instanceId" + } + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace", + "traits": { + "smithy.api#documentation": "

The name space of the dataset. The available values are:

\n ", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "namespace" + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetName", + "traits": { + "smithy.api#documentation": "

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "name" + } + }, + "arn": { + "target": "com.amazonaws.supplychain#AscResourceArn", + "traits": { + "smithy.api#documentation": "

The arn of the dataset.

", + "smithy.api#required": {} + } + }, + "schema": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchema", + "traits": { + "smithy.api#documentation": "

The schema of the dataset.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.supplychain#DataLakeDatasetDescription", + "traits": { + "smithy.api#documentation": "

The description of the dataset.

" + } + }, + "createdTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation time of the dataset.

", + "smithy.api#required": {} + } + }, + "lastModifiedTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The last modified time of the dataset.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The data lake dataset details.

" + } + }, + "com.amazonaws.supplychain#DataLakeDatasetDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 500 + } + } + }, + "com.amazonaws.supplychain#DataLakeDatasetList": { + "type": "list", + "member": { + "target": "com.amazonaws.supplychain#DataLakeDataset" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.supplychain#DataLakeDatasetMaxResults": { + "type": "integer", + "traits": { + "smithy.api#default": 10, + "smithy.api#range": { + "min": 0, + "max": 20 + } + } + }, + "com.amazonaws.supplychain#DataLakeDatasetName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 75 + }, + "smithy.api#pattern": "^[a-z0-9_]+$" + } + }, + "com.amazonaws.supplychain#DataLakeDatasetNamespace": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + }, + "smithy.api#pattern": "^[a-z]+$" + } + }, + "com.amazonaws.supplychain#DataLakeDatasetNextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 65535 + } + } + }, + "com.amazonaws.supplychain#DataLakeDatasetResource": { + "type": "resource", + "identifiers": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID" + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace" + }, + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetName" + } + }, + "properties": { + "arn": { + "target": "com.amazonaws.supplychain#AscResourceArn" + }, + "schema": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchema" + }, + "description": { + "target": "com.amazonaws.supplychain#DataLakeDatasetDescription" + }, + "createdTime": { + "target": "smithy.api#Timestamp" + }, + "lastModifiedTime": { + "target": "smithy.api#Timestamp" + } + }, + "put": { + "target": "com.amazonaws.supplychain#CreateDataLakeDataset" + }, + "read": { + "target": "com.amazonaws.supplychain#GetDataLakeDataset" + }, + "update": { + "target": "com.amazonaws.supplychain#UpdateDataLakeDataset" + }, + "delete": { + "target": "com.amazonaws.supplychain#DeleteDataLakeDataset" + }, + "list": { + "target": "com.amazonaws.supplychain#ListDataLakeDatasets" + }, + "traits": { + "aws.api#arn": { + "template": "instance/{instanceId}/namespaces/{namespace}/datasets/{name}" + }, + "smithy.api#noReplace": {} + } + }, + "com.amazonaws.supplychain#DataLakeDatasetSchema": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchemaName", + "traits": { + "smithy.api#documentation": "

The name of the dataset schema.

", + "smithy.api#required": {} + } + }, + "fields": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchemaFieldList", + "traits": { + "smithy.api#documentation": "

The list of field details of the dataset schema.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The schema details of the dataset.

" + } + }, + "com.amazonaws.supplychain#DataLakeDatasetSchemaField": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchemaFieldName", + "traits": { + "smithy.api#documentation": "

The dataset field name.

", + "smithy.api#required": {} + } + }, + "type": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchemaFieldType", + "traits": { + "smithy.api#documentation": "

The dataset field type.

", + "smithy.api#required": {} + } + }, + "isRequired": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicate if the field is required or not.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The dataset field details.

" + } + }, + "com.amazonaws.supplychain#DataLakeDatasetSchemaFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.supplychain#DataLakeDatasetSchemaField" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 500 + } + } + }, + "com.amazonaws.supplychain#DataLakeDatasetSchemaFieldName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[a-z0-9_]+$" + } + }, + "com.amazonaws.supplychain#DataLakeDatasetSchemaFieldType": { + "type": "enum", + "members": { + "INT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INT" + } + }, + "DOUBLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DOUBLE" + } + }, + "STRING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STRING" + } + }, + "TIMESTAMP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TIMESTAMP" + } + } + } + }, + "com.amazonaws.supplychain#DataLakeDatasetSchemaName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[A-Za-z0-9]+$" + } + }, + "com.amazonaws.supplychain#DatasetIdentifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1011 + }, + "smithy.api#pattern": "^[-_/A-Za-z0-9:]+$" + } + }, + "com.amazonaws.supplychain#DeleteDataIntegrationFlow": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#DeleteDataIntegrationFlowRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#DeleteDataIntegrationFlowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Delete the DataIntegrationFlow.

", + "smithy.api#examples": [ + { + "title": "Successful DeleteDataIntegrationFlow", + "input": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow" + }, + "output": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow" + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "DELETE", + "uri": "/api/data-integration/instance/{instanceId}/data-integration-flows/{name}" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.supplychain#DeleteDataIntegrationFlowRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName", + "traits": { + "smithy.api#documentation": "

The name of the DataIntegrationFlow to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for DeleteDataIntegrationFlow.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#DeleteDataIntegrationFlowResponse": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName", + "traits": { + "smithy.api#documentation": "

The name of the DataIntegrationFlow deleted.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters for DeleteDataIntegrationFlow.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#DeleteDataLakeDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#DeleteDataLakeDatasetRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#DeleteDataLakeDatasetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Delete a data lake dataset.

", + "smithy.api#examples": [ + { + "title": "Delete an AWS Supply Chain inbound_order dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order" + }, + "output": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order" + } + }, + { + "title": "Delete a custom dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset" + }, + "output": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset" + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "DELETE", + "uri": "/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.supplychain#DeleteDataLakeDatasetRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The AWS Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the dataset. The available values are:

\n ", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetName", + "traits": { + "smithy.api#documentation": "

The name of the dataset. If the namespace is asc, the name must be one of the supported data entities\n .

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters of DeleteDataLakeDataset.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#DeleteDataLakeDatasetResponse": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The AWS Supply Chain instance identifier.

", + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of deleted dataset.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetName", + "traits": { + "smithy.api#documentation": "

The name of deleted dataset.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters of DeleteDataLakeDataset.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#GalaxyPublicAPIGateway": { + "type": "service", + "version": "2024-01-01", + "operations": [ + { + "target": "com.amazonaws.supplychain#ListTagsForResource" + }, + { + "target": "com.amazonaws.supplychain#TagResource" + }, + { + "target": "com.amazonaws.supplychain#UntagResource" + } + ], + "resources": [ + { + "target": "com.amazonaws.supplychain#BillOfMaterialsImportJobResource" + }, + { + "target": "com.amazonaws.supplychain#DataIntegrationEventResource" + }, + { + "target": "com.amazonaws.supplychain#DataIntegrationFlowResource" + }, + { + "target": "com.amazonaws.supplychain#DataLakeDatasetResource" + } + ], + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#ConflictException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "SupplyChain", + "arnNamespace": "scn", + "endpointPrefix": "scn" + }, + "aws.auth#sigv4": { + "name": "scn" + }, + "aws.protocols#restJson1": {}, + "smithy.api#cors": { + "additionalAllowedHeaders": [ + "*", + "content-type", + "x-amz-content-sha256", + "x-amz-user-agent", + "x-amzn-platform-id", + "x-amzn-trace-id" + ], + "additionalExposedHeaders": ["x-amzn-errortype", "x-amzn-requestid", "x-amzn-trace-id"], + "maxAge": 86400 + }, + "smithy.api#documentation": "

\n AWS Supply Chain is a cloud-based application that works with your enterprise resource planning (ERP) and supply chain management systems. Using AWS Supply Chain, you can connect and extract your inventory, supply, and demand related data from existing ERP or supply chain systems into a single data model.\n

\n

The AWS Supply Chain API supports configuration data import for Supply Planning.

\n

\n All AWS Supply chain API operations are Amazon-authenticated and certificate-signed. They not only require the use of the AWS SDK, but also allow for the exclusive use of AWS Identity and Access Management users and roles to help facilitate access, trust, and permission policies.\n

", + "smithy.api#title": "AWS Supply Chain", + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://scn-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } ], "rules": [ { @@ -825,318 +2430,1840 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://scn.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://scn-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://scn.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://scn-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://scn.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://scn.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { - "url": "https://scn-fips.us-east-1.amazonaws.com" + "url": "https://example.com" } }, "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { - "endpoint": { - "url": "https://scn.us-east-1.api.aws" - } + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { - "endpoint": { - "url": "https://scn.us-east-1.amazonaws.com" - } + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": true, + "Endpoint": "https://example.com" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "documentation": "Missing region", "expect": { - "endpoint": { - "url": "https://scn-fips.cn-north-1.api.amazonwebservices.com.cn" + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" + } + } + }, + "com.amazonaws.supplychain#GetBillOfMaterialsImportJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#GetBillOfMaterialsImportJobRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#GetBillOfMaterialsImportJobResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Get status and details of a BillOfMaterialsImportJob.

", + "smithy.api#examples": [ + { + "title": "Invoke GetBillOfMaterialsImportJob for a successful job", + "input": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4" + }, + "output": { + "job": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4", + "status": "SUCCESS", + "s3uri": "s3://mybucketname/pathelemene/file.csv", + "message": "Import job completed successfully." + } + } + }, + { + "title": "Invoke GetBillOfMaterialsImportJob for an in-progress job", + "input": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4" + }, + "output": { + "job": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4", + "status": "IN_PROGRESS", + "s3uri": "s3://mybucketname/pathelemene/file.csv" + } + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/api/configuration/instances/{instanceId}/bill-of-materials-import-jobs/{jobId}" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.supplychain#GetBillOfMaterialsImportJobRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The AWS Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "jobId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The BillOfMaterialsImportJob identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for GetBillOfMaterialsImportJob.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#GetBillOfMaterialsImportJobResponse": { + "type": "structure", + "members": { + "job": { + "target": "com.amazonaws.supplychain#BillOfMaterialsImportJob", + "traits": { + "smithy.api#documentation": "

The BillOfMaterialsImportJob.

", + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters for GetBillOfMaterialsImportJob.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#GetDataIntegrationFlow": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#GetDataIntegrationFlowRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#GetDataIntegrationFlowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

View the DataIntegrationFlow details.

", + "smithy.api#examples": [ + { + "title": "Successful GetDataIntegrationFlow", + "input": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow" + }, + "output": { + "flow": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow", + "sources": [ + { + "sourceType": "S3", + "sourceName": "testSourceName", + "s3Source": { + "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f", + "prefix": "example-prefix" + } + } + ], + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset" + } + }, + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "query": "SELECT * FROM testSourceName" + } + }, + "createdTime": 1.72495640044e9, + "lastModifiedTime": 1.72495640044e9 + } + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/api/data-integration/instance/{instanceId}/data-integration-flows/{name}" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.supplychain#GetDataIntegrationFlowRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName", + "traits": { + "smithy.api#documentation": "

The name of the DataIntegrationFlow created.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for GetDataIntegrationFlow.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#GetDataIntegrationFlowResponse": { + "type": "structure", + "members": { + "flow": { + "target": "com.amazonaws.supplychain#DataIntegrationFlow", + "traits": { + "smithy.api#documentation": "

The details of the DataIntegrationFlow returned.

", + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters for GetDataIntegrationFlow.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#GetDataLakeDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#GetDataLakeDatasetRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#GetDataLakeDatasetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Get a data lake dataset.

", + "smithy.api#examples": [ + { + "title": "Get properties of an existing AWS Supply Chain inbound order dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order" + }, + "output": { + "dataset": { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order", + "description": "This is an AWS Supply Chain inbound order dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727116807751e9, + "schema": { + "name": "InboundOrder", + "fields": [ + { + "name": "id", + "type": "STRING", + "isRequired": true + }, + { + "name": "tpartner_id", + "type": "STRING", + "isRequired": true + }, + { + "name": "connection_id", + "type": "STRING", + "isRequired": true + }, + { + "name": "order_type", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_status", + "type": "STRING", + "isRequired": false + }, + { + "name": "inbound_order_url", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_creation_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "company_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "to_site_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "vendor_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "exchange_rate", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "exchange_rate_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "incoterm", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm2", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_1", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_2", + "type": "STRING", + "isRequired": false + }, + { + "name": "submitted_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_start_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_end_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "shipping_instr_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "payment_terms_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement_ver", + "type": "STRING", + "isRequired": false + }, + { + "name": "agreement_number", + "type": "STRING", + "isRequired": false + }, + { + "name": "source", + "type": "STRING", + "isRequired": false + }, + { + "name": "source_update_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "source_event_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "db_creation_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "db_updation_dttm", + "type": "TIMESTAMP", + "isRequired": false + } + ] } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true } + } + }, + { + "title": "Get proporties of an existing custom dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset" }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn-fips.cn-north-1.amazonaws.com.cn" + "output": { + "dataset": { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset", + "description": "This is a custom dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727116807751e9, + "schema": { + "name": "MyDataset", + "fields": [ + { + "name": "id", + "type": "INT", + "isRequired": true + }, + { + "name": "description", + "type": "STRING", + "isRequired": true + }, + { + "name": "price", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "creation_time", + "type": "TIMESTAMP", + "isRequired": false + } + ] } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false } + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.supplychain#GetDataLakeDatasetRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace", + "traits": { + "smithy.api#documentation": "

The name space of the dataset. The available values are:

\n ", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetName", + "traits": { + "smithy.api#documentation": "

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for GetDataLakeDataset.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#GetDataLakeDatasetResponse": { + "type": "structure", + "members": { + "dataset": { + "target": "com.amazonaws.supplychain#DataLakeDataset", + "traits": { + "smithy.api#documentation": "

The fetched dataset details.

", + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters for UpdateDataLakeDataset.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#InternalServerException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String" + } + }, + "traits": { + "smithy.api#documentation": "

Unexpected error during processing of request.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.supplychain#ListDataIntegrationFlows": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#ListDataIntegrationFlowsRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#ListDataIntegrationFlowsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists all the DataIntegrationFlows in a paginated way.

", + "smithy.api#examples": [ + { + "title": "Successful ListDataIntegrationFlow", + "input": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d" }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://scn.cn-north-1.api.amazonwebservices.com.cn" + "output": { + "flows": [ + { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow", + "sources": [ + { + "sourceType": "S3", + "sourceName": "testSourceName", + "s3Source": { + "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f", + "prefix": "example-prefix" + } + } + ], + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset" + } + }, + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "query": "SELECT * FROM testSourceName" + } + }, + "createdTime": 1.72495640044e9, + "lastModifiedTime": 1.72495640044e9 + }, + { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "trading-partner", + "sources": [ + { + "sourceType": "DATASET", + "sourceName": "testSourceName1", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1" + } + }, + { + "sourceType": "DATASET", + "sourceName": "testSourceName2", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2" + } + } + ], + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "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" + } + }, + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner" + } + }, + "createdTime": 1.723576350688e10, + "lastModifiedTime": 1.723576350688e10 } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } + ] + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/api/data-integration/instance/{instanceId}/data-integration-flows" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "flows" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.supplychain#ListDataIntegrationFlowsRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowNextToken", + "traits": { + "smithy.api#documentation": "

The pagination token to fetch the next page of the DataIntegrationFlows.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowMaxResults", + "traits": { + "smithy.api#default": 10, + "smithy.api#documentation": "

Specify the maximum number of DataIntegrationFlows to fetch in one paginated request.

", + "smithy.api#httpQuery": "maxResults" + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for ListDataIntegrationFlows.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#ListDataIntegrationFlowsResponse": { + "type": "structure", + "members": { + "flows": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowList", + "traits": { + "smithy.api#documentation": "

The response parameters for ListDataIntegrationFlows.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowNextToken", + "traits": { + "smithy.api#documentation": "

The pagination token to fetch the next page of the DataIntegrationFlows.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters for ListDataIntegrationFlows.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#ListDataLakeDatasets": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#ListDataLakeDatasetsRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#ListDataLakeDatasetsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

List the data lake datasets for a specific instance and name space.

", + "smithy.api#examples": [ + { + "title": "List AWS Supply Chain datasets", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc" }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn.cn-north-1.amazonaws.com.cn" + "output": { + "datasets": [ + { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order", + "description": "This is an AWS Supply Chain inbound order dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727116807751e9, + "schema": { + "name": "InboundOrder", + "fields": [ + { + "name": "id", + "type": "STRING", + "isRequired": true + }, + { + "name": "tpartner_id", + "type": "STRING", + "isRequired": true + }, + { + "name": "connection_id", + "type": "STRING", + "isRequired": true + }, + { + "name": "order_type", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_status", + "type": "STRING", + "isRequired": false + }, + { + "name": "inbound_order_url", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_creation_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "company_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "to_site_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "vendor_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "exchange_rate", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "exchange_rate_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "incoterm", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm2", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_1", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_2", + "type": "STRING", + "isRequired": false + }, + { + "name": "submitted_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_start_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_end_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "shipping_instr_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "payment_terms_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement_ver", + "type": "STRING", + "isRequired": false + }, + { + "name": "agreement_number", + "type": "STRING", + "isRequired": false + }, + { + "name": "source", + "type": "STRING", + "isRequired": false + }, + { + "name": "source_update_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "source_event_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "db_creation_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "db_updation_dttm", + "type": "TIMESTAMP", + "isRequired": false + } + ] + } } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } + ] + } + }, + { + "title": "List custom datasets using pagination", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "maxResults": 2, + "nextToken": "next_token_returned_from_previous_list_request" }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://scn-fips.us-gov-east-1.api.aws" + "output": { + "datasets": [ + { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset", + "description": "This is a custom dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727116807751e9, + "schema": { + "name": "MyDataset", + "fields": [ + { + "name": "id", + "type": "INT", + "isRequired": true + }, + { + "name": "description", + "type": "STRING", + "isRequired": true + }, + { + "name": "price", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "creation_time", + "type": "TIMESTAMP", + "isRequired": false + } + ] + } + }, + { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset_2", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset_2", + "description": "This is a custom dataset 2", + "createdTime": 1.727116907751e9, + "lastModifiedTime": 1.727116907751e9, + "schema": { + "name": "MyDataset2", + "fields": [ + { + "name": "id", + "type": "INT", + "isRequired": true + }, + { + "name": "description", + "type": "STRING", + "isRequired": true + } + ] + } } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } + ], + "nextToken": "next_token_for_next_list_request" + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "datasets" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.supplychain#ListDataLakeDatasetsRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace", + "traits": { + "smithy.api#documentation": "

The namespace of the dataset. The available values are:

\n ", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNextToken", + "traits": { + "smithy.api#documentation": "

The pagination token to fetch next page of datasets.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.supplychain#DataLakeDatasetMaxResults", + "traits": { + "smithy.api#default": 10, + "smithy.api#documentation": "

The max number of datasets to fetch in this paginated request.

", + "smithy.api#httpQuery": "maxResults" + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters of ListDataLakeDatasets.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#ListDataLakeDatasetsResponse": { + "type": "structure", + "members": { + "datasets": { + "target": "com.amazonaws.supplychain#DataLakeDatasetList", + "traits": { + "smithy.api#documentation": "

The list of fetched dataset details.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNextToken", + "traits": { + "smithy.api#documentation": "

The pagination token to fetch next page of datasets.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters of ListDataLakeDatasets.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

List all the tags for an Amazon Web ServicesSupply Chain resource.

", + "smithy.api#examples": [ + { + "title": "Successful ListTagsForResource", + "input": { + "resourceArn": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1" }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false + "output": { + "tags": { + "tagKey1": "tagValue1" } + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/api/tags/{resourceArn}" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.supplychain#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.supplychain#AscResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply chain resource ARN that needs tags to be listed.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters of ListTagsForResource.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.supplychain#TagMap", + "traits": { + "smithy.api#documentation": "

The tags added to an Amazon Web Services Supply Chain resource.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters of ListTagsForResource.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#ResourceNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String" + } + }, + "traits": { + "smithy.api#documentation": "

Request references a resource which does not exist.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.supplychain#S3BucketName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 63 + }, + "smithy.api#pattern": "^[a-z0-9][a-z0-9.-]*[a-z0-9]$" + } + }, + "com.amazonaws.supplychain#SendDataIntegrationEvent": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#SendDataIntegrationEventRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#SendDataIntegrationEventResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#ConflictException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Send the transactional data payload for the event with real-time data for analysis or monitoring. The real-time data events are stored in an Amazon Web Services service before being processed and stored in data lake. \n New data events are synced with data lake at 5 PM GMT everyday. The updated transactional data is available in data lake after ingestion.

", + "smithy.api#examples": [ + { + "title": "Successful SendDataIntegrationEvent for inboundorder event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.inboundorder", + "data": "{\"id\": \"inbound-order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\" }", + "eventGroupId": "inboundOrderId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://scn.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } + "output": { + "eventId": "c4132c1d-8f60-44a2-9932-f723c4f7b8a7" + } + }, + { + "title": "Successful SendDataIntegrationEvent for inboundorderline event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.inboundorderline", + "data": "{\"id\": \"inbound-order-line-id-test-123\", \"order_id\": \"order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\", \"product_id\": \"product-id-test-123\", \"quantity_submitted\": \"100.0\" }", + "eventGroupId": "inboundOrderLineId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } + "output": { + "eventId": "45d95db2-d106-40e0-aa98-f1204230a691" + } + }, + { + "title": "Successful SendDataIntegrationEvent for inboundorderlineschedule event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.inboundorderlineschedule", + "data": "{\"id\": \"inbound-order-line-schedule-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"product_id\": \"product-id-test-123\"}", + "eventGroupId": "inboundOrderLineScheduleId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } + "output": { + "eventId": "5abba995-7735-4d1e-95c4-7cc93e48cf9f" + } + }, + { + "title": "Successful SendDataIntegrationEvent for forecast event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.forecast", + "data": "{\"snapshot_date\": \"1672470400000\", \"product_id\": \"product-id-test-123\", \"site_id\": \"site-id-test-123\", \"region_id\": \"region-id-test-123\", \"product_group_id\": \"product-group-id-test-123\", \"forecast_start_dttm\": \"1672470400000\", \"forecast_end_dttm\": \"1672470400000\" }", + "eventGroupId": "forecastId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } + "output": { + "eventId": "29312d5b-f499-4dcd-b017-3dab3cd34d61" + } + }, + { + "title": "Successful SendDataIntegrationEvent for inventorylevel event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.inventorylevel", + "data": "{\"snapshot_date\": \"1672470400000\", \"site_id\": \"site-id-test-123\", \"product_id\": \"product-id-test-123\", \"on_hand_inventory\": \"100.0\", \"inv_condition\": \"good\", \"lot_number\": \"lot-number-test-123\"}", + "eventGroupId": "inventoryLevelId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } + "output": { + "eventId": "3aa78324-acd8-4fdd-a19e-231ea003c2b3" + } + }, + { + "title": "Successful SendDataIntegrationEvent for outboundorderline event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.outboundorderline", + "data": "{\"id\": \"outbound-orderline-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"product_id\": \"product-id-test-123\" }", + "eventGroupId": "outboundOrderLineId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } + "output": { + "eventId": "959b7ef9-5e2d-4795-b1ca-5b16a3eb6b89" + } + }, + { + "title": "Successful SendDataIntegrationEvent for outboundshipment event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.outboundshipment", + "data": "{\"id\": \"outbound-shipment-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"cust_order_line_id\": \"cust-order-line-id-test-123\", \"product_id\": \"product-id-test-123\" }", + "eventGroupId": "outboundShipmentId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } + "output": { + "eventId": "59feded3-5e46-4126-81bf-0137ca176ee0" + } + }, + { + "title": "Successful SendDataIntegrationEvent for processheader event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.processheader", + "data": "{\"process_id\": \"process-id-test-123\" }", + "eventGroupId": "processHeaderId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } + "output": { + "eventId": "564130eb-2d8a-4550-a768-ddf0daf7b4a9" + } + }, + { + "title": "Successful SendDataIntegrationEvent for processoperation event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.processoperation", + "data": "{\"process_operation_id\": \"process-operation-id-test-123\", \"process_id\": \"process-id-test-123\" }", + "eventGroupId": "processOperationId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } + "output": { + "eventId": "db5df408-89c7-4b9f-a326-016f6c2b3396" + } + }, + { + "title": "Successful SendDataIntegrationEvent for processproduct event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.processproduct", + "data": "{\"process_product_id\": \"process-product-id-test-123\", \"process_id\": \"process-id-test-123\" }", + "eventGroupId": "processProductId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://scn.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } + "output": { + "eventId": "6929b275-485e-4035-a798-99077ca6d669" + } + }, + { + "title": "Successful SendDataIntegrationEvent for reservation event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.reservation", + "data": "{\"reservation_id\": \"reservation-id-test-123\", \"reservation_detail_id\": \"reservation-detail-id-test-123\" }", + "eventGroupId": "reservationId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } + "output": { + "eventId": "f6c55a8b-fde2-44f6-848a-9b4336c77209" + } + }, + { + "title": "Successful SendDataIntegrationEvent for shipment event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.shipment", + "data": "{\"id\": \"shipment-id-test-123\", \"supplier_tpartner_id\": \"supplier-tpartner-id-test-123\", \"product_id\": \"product-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"package_id\": \"package-id-test-123\" }", + "eventGroupId": "shipmentId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } + "output": { + "eventId": "61d079d8-3f56-49bb-b35a-c0271a4e4f0a" + } + }, + { + "title": "Successful SendDataIntegrationEvent for shipmentstop event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.shipmentstop", + "data": "{\"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }", + "eventGroupId": "shipmentStopId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } + "output": { + "eventId": "3610992a-fc2f-4da4-9beb-724994622ba1" + } + }, + { + "title": "Successful SendDataIntegrationEvent for shipmentstoporder event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.shipmentstoporder", + "data": "{\"shipment_stop_order_id\": \"shipment-stop-order-id-test-123\", \"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }", + "eventGroupId": "shipmentStopOrderId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } + "output": { + "eventId": "1d550a60-9321-4d25-a132-9dd4b2d9e934" + } + }, + { + "title": "Successful SendDataIntegrationEvent for supplyplan event type", + "input": { + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", + "eventType": "scn.data.supplyplan", + "data": "{\"supply_plan_id\": \"supply-plan-id-test-123\" }", + "eventGroupId": "supplyPlanId", + "eventTimestamp": 1.515531081123e9 }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } + "output": { + "eventId": "9abaee56-5dc4-4c31-8250-3206a651d8a1" } - ], - "version": "1.0" + } + ], + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/api-data/data-integration/instance/{instanceId}/data-integration-events" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.supplychain#SendDataIntegrationEventRequest": { + "type": "structure", + "members": { + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The AWS Supply Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "eventType": { + "target": "com.amazonaws.supplychain#DataIntegrationEventType", + "traits": { + "smithy.api#documentation": "

The data event type.

", + "smithy.api#required": {} + } + }, + "data": { + "target": "com.amazonaws.supplychain#DataIntegrationEventData", + "traits": { + "smithy.api#documentation": "

The data payload of the event. For more information on the data schema to use, see Data entities supported in AWS Supply Chain\n .

", + "smithy.api#required": {} + } + }, + "eventGroupId": { + "target": "com.amazonaws.supplychain#DataIntegrationEventGroupId", + "traits": { + "smithy.api#documentation": "

Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning.

", + "smithy.api#required": {} + } + }, + "eventTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The event timestamp (in epoch seconds).

", + "smithy.api#timestampFormat": "epoch-seconds" + } + }, + "clientToken": { + "target": "com.amazonaws.supplychain#ClientToken", + "traits": { + "smithy.api#documentation": "

The idempotent client token.

", + "smithy.api#idempotencyToken": {} + } } + }, + "traits": { + "smithy.api#documentation": "

The request parameters for SendDataIntegrationEvent.

", + "smithy.api#input": {} } }, - "com.amazonaws.supplychain#GetBillOfMaterialsImportJob": { + "com.amazonaws.supplychain#SendDataIntegrationEventResponse": { + "type": "structure", + "members": { + "eventId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The unique event identifier.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The response parameters for SendDataIntegrationEvent.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String" + } + }, + "traits": { + "smithy.api#documentation": "

Request would cause a service quota to be exceeded.

", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.supplychain#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, + "com.amazonaws.supplychain#TagKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.supplychain#TagKey" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 200 + } + } + }, + "com.amazonaws.supplychain#TagMap": { + "type": "map", + "key": { + "target": "com.amazonaws.supplychain#TagKey" + }, + "value": { + "target": "com.amazonaws.supplychain#TagValue" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 200 + } + } + }, + "com.amazonaws.supplychain#TagResource": { "type": "operation", "input": { - "target": "com.amazonaws.supplychain#GetBillOfMaterialsImportJobRequest" + "target": "com.amazonaws.supplychain#TagResourceRequest" }, "output": { - "target": "com.amazonaws.supplychain#GetBillOfMaterialsImportJobResponse" + "target": "com.amazonaws.supplychain#TagResourceResponse" }, "errors": [ { @@ -1156,105 +4283,68 @@ } ], "traits": { - "smithy.api#documentation": "

Get status and details of a BillOfMaterialsImportJob.

", + "smithy.api#documentation": "

Create tags for an Amazon Web Services Supply chain resource.

", "smithy.api#examples": [ { - "title": "Invoke GetBillOfMaterialsImportJob for a successful job", + "title": "Successful TagResource", "input": { - "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", - "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4" - }, - "output": { - "job": { - "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", - "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4", - "status": "SUCCESS", - "s3uri": "s3://mybucketname/pathelemene/file.csv", - "message": "Import job completed successfully." + "resourceArn": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1", + "tags": { + "tagKey1": "tagValue1" } - } - }, - { - "title": "Invoke GetBillOfMaterialsImportJob for an in-progress job", - "input": { - "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", - "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4" }, - "output": { - "job": { - "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", - "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4", - "status": "IN_PROGRESS", - "s3uri": "s3://mybucketname/pathelemene/file.csv" - } - } + "output": {} } ], "smithy.api#http": { "code": 200, - "method": "GET", - "uri": "/api/configuration/instances/{instanceId}/bill-of-materials-import-jobs/{jobId}" - }, - "smithy.api#readonly": {} + "method": "POST", + "uri": "/api/tags/{resourceArn}" + } } }, - "com.amazonaws.supplychain#GetBillOfMaterialsImportJobRequest": { + "com.amazonaws.supplychain#TagResourceRequest": { "type": "structure", "members": { - "instanceId": { - "target": "com.amazonaws.supplychain#UUID", + "resourceArn": { + "target": "com.amazonaws.supplychain#AscResourceArn", "traits": { - "smithy.api#documentation": "

The AWS Supply Chain instance identifier.

", + "smithy.api#documentation": "

The Amazon Web Services Supply chain resource ARN that needs to be tagged.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "jobId": { - "target": "com.amazonaws.supplychain#UUID", - "traits": { - "smithy.api#documentation": "

The BillOfMaterialsImportJob identifier.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The request parameters for GetBillOfMaterialsImportJob.

", - "smithy.api#input": {} - } - }, - "com.amazonaws.supplychain#GetBillOfMaterialsImportJobResponse": { - "type": "structure", - "members": { - "job": { - "target": "com.amazonaws.supplychain#BillOfMaterialsImportJob", + "tags": { + "target": "com.amazonaws.supplychain#TagMap", "traits": { - "smithy.api#documentation": "

The BillOfMaterialsImportJob.

", - "smithy.api#nestedProperties": {}, + "smithy.api#documentation": "

The tags of the Amazon Web Services Supply chain resource to be created.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The response parameters for GetBillOfMaterialsImportJob.

", - "smithy.api#output": {} + "smithy.api#documentation": "

The request parameters of TagResource.

", + "smithy.api#input": {} } }, - "com.amazonaws.supplychain#InternalServerException": { + "com.amazonaws.supplychain#TagResourceResponse": { "type": "structure", - "members": { - "message": { - "target": "smithy.api#String" - } - }, + "members": {}, "traits": { - "smithy.api#documentation": "

Unexpected error during processing of request.

", - "smithy.api#error": "server", - "smithy.api#httpError": 500, - "smithy.api#retryable": {} + "smithy.api#documentation": "

The response parameters for TagResource.

", + "smithy.api#output": {} } }, - "com.amazonaws.supplychain#ResourceNotFoundException": { + "com.amazonaws.supplychain#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + } + } + }, + "com.amazonaws.supplychain#ThrottlingException": { "type": "structure", "members": { "message": { @@ -1262,35 +4352,42 @@ } }, "traits": { - "smithy.api#documentation": "

Request references a resource which does not exist.

", + "smithy.api#documentation": "

Request was denied due to request throttling.

", "smithy.api#error": "client", - "smithy.api#httpError": 404 + "smithy.api#httpError": 429, + "smithy.api#retryable": { + "throttling": true + } } }, - "com.amazonaws.supplychain#SendDataIntegrationEvent": { + "com.amazonaws.supplychain#UUID": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 36, + "max": 36 + }, + "smithy.api#pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + } + }, + "com.amazonaws.supplychain#UntagResource": { "type": "operation", "input": { - "target": "com.amazonaws.supplychain#SendDataIntegrationEventRequest" + "target": "com.amazonaws.supplychain#UntagResourceRequest" }, "output": { - "target": "com.amazonaws.supplychain#SendDataIntegrationEventResponse" + "target": "com.amazonaws.supplychain#UntagResourceResponse" }, "errors": [ { "target": "com.amazonaws.supplychain#AccessDeniedException" }, - { - "target": "com.amazonaws.supplychain#ConflictException" - }, { "target": "com.amazonaws.supplychain#InternalServerException" }, { "target": "com.amazonaws.supplychain#ResourceNotFoundException" }, - { - "target": "com.amazonaws.supplychain#ServiceQuotaExceededException" - }, { "target": "com.amazonaws.supplychain#ThrottlingException" }, @@ -1299,317 +4396,594 @@ } ], "traits": { - "smithy.api#documentation": "

Send the transactional data payload for the event with real-time data for analysis or monitoring. The real-time data events are stored in an Amazon Web Services service before being processed and stored in data lake. \n New data events are synced with data lake at 5 PM GMT everyday. The updated transactional data is available in data lake after ingestion.

", + "smithy.api#documentation": "

Delete tags for an Amazon Web Services Supply chain resource.

", "smithy.api#examples": [ { - "title": "Successful SendDataIntegrationEvent for inboundorder event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.inboundorder", - "data": "{\"id\": \"inbound-order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\" }", - "eventGroupId": "inboundOrderId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "c4132c1d-8f60-44a2-9932-f723c4f7b8a7" - } - }, - { - "title": "Successful SendDataIntegrationEvent for inboundorderline event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.inboundorderline", - "data": "{\"id\": \"inbound-order-line-id-test-123\", \"order_id\": \"order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\", \"product_id\": \"product-id-test-123\", \"quantity_submitted\": \"100.0\" }", - "eventGroupId": "inboundOrderLineId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "45d95db2-d106-40e0-aa98-f1204230a691" - } - }, - { - "title": "Successful SendDataIntegrationEvent for inboundorderlineschedule event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.inboundorderlineschedule", - "data": "{\"id\": \"inbound-order-line-schedule-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"product_id\": \"product-id-test-123\"}", - "eventGroupId": "inboundOrderLineScheduleId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "5abba995-7735-4d1e-95c4-7cc93e48cf9f" - } - }, - { - "title": "Successful SendDataIntegrationEvent for forecast event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.forecast", - "data": "{\"snapshot_date\": \"1672470400000\", \"product_id\": \"product-id-test-123\", \"site_id\": \"site-id-test-123\", \"region_id\": \"region-id-test-123\", \"product_group_id\": \"product-group-id-test-123\", \"forecast_start_dttm\": \"1672470400000\", \"forecast_end_dttm\": \"1672470400000\" }", - "eventGroupId": "forecastId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "29312d5b-f499-4dcd-b017-3dab3cd34d61" - } - }, - { - "title": "Successful SendDataIntegrationEvent for inventorylevel event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.inventorylevel", - "data": "{\"snapshot_date\": \"1672470400000\", \"site_id\": \"site-id-test-123\", \"product_id\": \"product-id-test-123\", \"on_hand_inventory\": \"100.0\", \"inv_condition\": \"good\", \"lot_number\": \"lot-number-test-123\"}", - "eventGroupId": "inventoryLevelId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "3aa78324-acd8-4fdd-a19e-231ea003c2b3" - } - }, - { - "title": "Successful SendDataIntegrationEvent for outboundorderline event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.outboundorderline", - "data": "{\"id\": \"outbound-orderline-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"product_id\": \"product-id-test-123\" }", - "eventGroupId": "outboundOrderLineId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "959b7ef9-5e2d-4795-b1ca-5b16a3eb6b89" - } - }, - { - "title": "Successful SendDataIntegrationEvent for outboundshipment event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.outboundshipment", - "data": "{\"id\": \"outbound-shipment-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"cust_order_line_id\": \"cust-order-line-id-test-123\", \"product_id\": \"product-id-test-123\" }", - "eventGroupId": "outboundShipmentId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "59feded3-5e46-4126-81bf-0137ca176ee0" - } - }, - { - "title": "Successful SendDataIntegrationEvent for processheader event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.processheader", - "data": "{\"process_id\": \"process-id-test-123\" }", - "eventGroupId": "processHeaderId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "564130eb-2d8a-4550-a768-ddf0daf7b4a9" - } - }, - { - "title": "Successful SendDataIntegrationEvent for processoperation event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.processoperation", - "data": "{\"process_operation_id\": \"process-operation-id-test-123\", \"process_id\": \"process-id-test-123\" }", - "eventGroupId": "processOperationId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "db5df408-89c7-4b9f-a326-016f6c2b3396" - } - }, - { - "title": "Successful SendDataIntegrationEvent for processproduct event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.processproduct", - "data": "{\"process_product_id\": \"process-product-id-test-123\", \"process_id\": \"process-id-test-123\" }", - "eventGroupId": "processProductId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "6929b275-485e-4035-a798-99077ca6d669" - } - }, - { - "title": "Successful SendDataIntegrationEvent for reservation event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.reservation", - "data": "{\"reservation_id\": \"reservation-id-test-123\", \"reservation_detail_id\": \"reservation-detail-id-test-123\" }", - "eventGroupId": "reservationId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "f6c55a8b-fde2-44f6-848a-9b4336c77209" - } - }, - { - "title": "Successful SendDataIntegrationEvent for shipment event type", - "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.shipment", - "data": "{\"id\": \"shipment-id-test-123\", \"supplier_tpartner_id\": \"supplier-tpartner-id-test-123\", \"product_id\": \"product-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"package_id\": \"package-id-test-123\" }", - "eventGroupId": "shipmentId", - "eventTimestamp": 1.515531081123e9 - }, - "output": { - "eventId": "61d079d8-3f56-49bb-b35a-c0271a4e4f0a" - } - }, - { - "title": "Successful SendDataIntegrationEvent for shipmentstop event type", + "title": "Successful UntagResource", "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.shipmentstop", - "data": "{\"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }", - "eventGroupId": "shipmentStopId", - "eventTimestamp": 1.515531081123e9 + "resourceArn": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1", + "tagKeys": ["tagKey1"] }, - "output": { - "eventId": "3610992a-fc2f-4da4-9beb-724994622ba1" - } - }, + "output": {} + } + ], + "smithy.api#http": { + "code": 200, + "method": "DELETE", + "uri": "/api/tags/{resourceArn}" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.supplychain#UntagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.supplychain#AscResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Supply chain resource ARN that needs to be untagged.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tagKeys": { + "target": "com.amazonaws.supplychain#TagKeyList", + "traits": { + "smithy.api#documentation": "

The list of tag keys to be deleted for an Amazon Web Services Supply Chain resource.

", + "smithy.api#httpQuery": "tagKeys", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request parameters of UntagResource.

", + "smithy.api#input": {} + } + }, + "com.amazonaws.supplychain#UntagResourceResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "

The response parameters of UntagResource.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.supplychain#UpdateDataIntegrationFlow": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#UpdateDataIntegrationFlowRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#UpdateDataIntegrationFlowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Update the DataIntegrationFlow.

", + "smithy.api#examples": [ { - "title": "Successful SendDataIntegrationEvent for shipmentstoporder event type", + "title": "Successful UpdateDataIntegrationFlow for s3 to dataset flow to update SQL transformation", "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.shipmentstoporder", - "data": "{\"shipment_stop_order_id\": \"shipment-stop-order-id-test-123\", \"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }", - "eventGroupId": "shipmentStopOrderId", - "eventTimestamp": 1.515531081123e9 + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow", + "sources": [ + { + "sourceType": "S3", + "sourceName": "testSourceName", + "s3Source": { + "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f", + "prefix": "example-prefix" + } + } + ], + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "query": "SELECT connection_id, bukrs AS id, txtmd AS description FROM testSourceName WHERE langu = 'E'" + } + }, + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset" + } + } }, "output": { - "eventId": "1d550a60-9321-4d25-a132-9dd4b2d9e934" + "flow": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "testStagingFlow", + "sources": [ + { + "sourceType": "S3", + "sourceName": "testSourceName", + "s3Source": { + "bucketName": "aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f", + "prefix": "example-prefix" + } + } + ], + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset" + } + }, + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "query": "SELECT connection_id, bukrs AS id, txtmd AS description FROM testSourceName WHERE langu = 'E'" + } + }, + "createdTime": 1.72495640044e9, + "lastModifiedTime": 1.73245640577e9 + } } }, { - "title": "Successful SendDataIntegrationEvent for supplyplan event type", + "title": "Successful UpdateDataIntegrationFlow for dataset to dataset flow to update sources", "input": { - "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a", - "eventType": "scn.data.supplyplan", - "data": "{\"supply_plan_id\": \"supply-plan-id-test-123\" }", - "eventGroupId": "supplyPlanId", - "eventTimestamp": 1.515531081123e9 + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "trading-partner", + "sources": [ + { + "sourceType": "DATASET", + "sourceName": "testSourceName1", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1" + } + }, + { + "sourceType": "DATASET", + "sourceName": "testSourceName2", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2_updated" + } + } + ], + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "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" + } + }, + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner" + } + } }, "output": { - "eventId": "9abaee56-5dc4-4c31-8250-3206a651d8a1" + "flow": { + "instanceId": "8850c54e-e187-4fa7-89d4-6370f165174d", + "name": "trading-partner", + "sources": [ + { + "sourceType": "DATASET", + "sourceName": "testSourceName1", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1" + } + }, + { + "sourceType": "DATASET", + "sourceName": "testSourceName2", + "datasetSource": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2_updated" + } + } + ], + "transformation": { + "transformationType": "SQL", + "sqlTransformation": { + "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" + } + }, + "target": { + "targetType": "DATASET", + "datasetTarget": { + "datasetIdentifier": "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner" + } + }, + "createdTime": 1.72495640044e9, + "lastModifiedTime": 1.73245640577e9 + } } } ], "smithy.api#http": { "code": 200, - "method": "POST", - "uri": "/api-data/data-integration/instance/{instanceId}/data-integration-events" - }, - "smithy.api#idempotent": {} + "method": "PATCH", + "uri": "/api/data-integration/instance/{instanceId}/data-integration-flows/{name}" + } } }, - "com.amazonaws.supplychain#SendDataIntegrationEventRequest": { + "com.amazonaws.supplychain#UpdateDataIntegrationFlowRequest": { "type": "structure", "members": { "instanceId": { "target": "com.amazonaws.supplychain#UUID", "traits": { - "smithy.api#documentation": "

The AWS Supply Chain instance identifier.

", + "smithy.api#documentation": "

The Amazon Web Services Supply Chain instance identifier.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "eventType": { - "target": "com.amazonaws.supplychain#DataIntegrationEventType", - "traits": { - "smithy.api#documentation": "

The data event type.

", - "smithy.api#required": {} - } - }, - "data": { - "target": "com.amazonaws.supplychain#DataIntegrationEventData", + "name": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowName", "traits": { - "smithy.api#documentation": "

The data payload of the event. For more information on the data schema to use, see Data entities supported in AWS Supply Chain\n .

", + "smithy.api#documentation": "

The name of the DataIntegrationFlow to be updated.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "eventGroupId": { - "target": "com.amazonaws.supplychain#DataIntegrationEventGroupId", + "sources": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowSourceList", "traits": { - "smithy.api#documentation": "

Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The new source configurations for the DataIntegrationFlow.

" } }, - "eventTimestamp": { - "target": "smithy.api#Timestamp", + "transformation": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTransformation", "traits": { - "smithy.api#documentation": "

The event timestamp (in epoch seconds).

", - "smithy.api#timestampFormat": "epoch-seconds" + "smithy.api#documentation": "

The new transformation configurations for the DataIntegrationFlow.

" } }, - "clientToken": { - "target": "com.amazonaws.supplychain#ClientToken", + "target": { + "target": "com.amazonaws.supplychain#DataIntegrationFlowTarget", "traits": { - "smithy.api#documentation": "

The idempotent client token.

", - "smithy.api#idempotencyToken": {} + "smithy.api#documentation": "

The new target configurations for the DataIntegrationFlow.

" } } }, "traits": { - "smithy.api#documentation": "

The request parameters for SendDataIntegrationEvent.

", + "smithy.api#documentation": "

The request parameters for UpdateDataIntegrationFlow.

", "smithy.api#input": {} } }, - "com.amazonaws.supplychain#SendDataIntegrationEventResponse": { + "com.amazonaws.supplychain#UpdateDataIntegrationFlowResponse": { "type": "structure", "members": { - "eventId": { - "target": "com.amazonaws.supplychain#UUID", + "flow": { + "target": "com.amazonaws.supplychain#DataIntegrationFlow", "traits": { - "smithy.api#documentation": "

The unique event identifier.

", + "smithy.api#documentation": "

The details of the updated DataIntegrationFlow.

", + "smithy.api#nestedProperties": {}, "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The response parameters for SendDataIntegrationEvent.

", + "smithy.api#documentation": "

The response parameters for UpdateDataIntegrationFlow.

", "smithy.api#output": {} } }, - "com.amazonaws.supplychain#ServiceQuotaExceededException": { - "type": "structure", - "members": { - "message": { - "target": "smithy.api#String" - } + "com.amazonaws.supplychain#UpdateDataLakeDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.supplychain#UpdateDataLakeDatasetRequest" + }, + "output": { + "target": "com.amazonaws.supplychain#UpdateDataLakeDatasetResponse" }, + "errors": [ + { + "target": "com.amazonaws.supplychain#AccessDeniedException" + }, + { + "target": "com.amazonaws.supplychain#InternalServerException" + }, + { + "target": "com.amazonaws.supplychain#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.supplychain#ThrottlingException" + }, + { + "target": "com.amazonaws.supplychain#ValidationException" + } + ], "traits": { - "smithy.api#documentation": "

Request would cause a service quota to be exceeded.

", - "smithy.api#error": "client", - "smithy.api#httpError": 402 + "smithy.api#documentation": "

Update a data lake dataset.

", + "smithy.api#examples": [ + { + "title": "Update description of an existing AWS Supply Chain inbound order dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order", + "description": "This is an updated AWS Supply Chain inbound order dataset" + }, + "output": { + "dataset": { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "asc", + "name": "inbound_order", + "description": "This is an updated AWS Supply Chain inbound order dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727117453568e9, + "schema": { + "name": "InboundOrder", + "fields": [ + { + "name": "id", + "type": "STRING", + "isRequired": true + }, + { + "name": "tpartner_id", + "type": "STRING", + "isRequired": true + }, + { + "name": "connection_id", + "type": "STRING", + "isRequired": true + }, + { + "name": "order_type", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_status", + "type": "STRING", + "isRequired": false + }, + { + "name": "inbound_order_url", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_creation_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "company_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "to_site_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "order_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "vendor_currency_uom", + "type": "STRING", + "isRequired": false + }, + { + "name": "exchange_rate", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "exchange_rate_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "incoterm", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm2", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_1", + "type": "STRING", + "isRequired": false + }, + { + "name": "incoterm_location_2", + "type": "STRING", + "isRequired": false + }, + { + "name": "submitted_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_start_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "agreement_end_date", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "shipping_instr_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "payment_terms_code", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement", + "type": "STRING", + "isRequired": false + }, + { + "name": "std_terms_agreement_ver", + "type": "STRING", + "isRequired": false + }, + { + "name": "agreement_number", + "type": "STRING", + "isRequired": false + }, + { + "name": "source", + "type": "STRING", + "isRequired": false + }, + { + "name": "source_update_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "source_event_id", + "type": "STRING", + "isRequired": false + }, + { + "name": "db_creation_dttm", + "type": "TIMESTAMP", + "isRequired": false + }, + { + "name": "db_updation_dttm", + "type": "TIMESTAMP", + "isRequired": false + } + ] + } + } + } + }, + { + "title": "Update description of an existing custom dataset", + "input": { + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset", + "description": "This is an updated custom dataset" + }, + "output": { + "dataset": { + "arn": "arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset", + "instanceId": "1877dd20-dee9-4639-8e99-cb67acf21fe5", + "namespace": "default", + "name": "my_dataset", + "description": "This is an updated custom dataset", + "createdTime": 1.727116807751e9, + "lastModifiedTime": 1.727117453568e9, + "schema": { + "name": "MyDataset", + "fields": [ + { + "name": "id", + "type": "INT", + "isRequired": true + }, + { + "name": "description", + "type": "STRING", + "isRequired": true + }, + { + "name": "price", + "type": "DOUBLE", + "isRequired": false + }, + { + "name": "creation_time", + "type": "TIMESTAMP", + "isRequired": false + } + ] + } + } + } + } + ], + "smithy.api#http": { + "code": 200, + "method": "PATCH", + "uri": "/api/datalake/instance/{instanceId}/namespaces/{namespace}/datasets/{name}" + } } }, - "com.amazonaws.supplychain#ThrottlingException": { + "com.amazonaws.supplychain#UpdateDataLakeDatasetRequest": { "type": "structure", "members": { - "message": { - "target": "smithy.api#String" + "instanceId": { + "target": "com.amazonaws.supplychain#UUID", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Chain instance identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "namespace": { + "target": "com.amazonaws.supplychain#DataLakeDatasetNamespace", + "traits": { + "smithy.api#documentation": "

The name space of the dataset. The available values are:

\n ", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.supplychain#DataLakeDatasetName", + "traits": { + "smithy.api#documentation": "

The name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.supplychain#DataLakeDatasetDescription", + "traits": { + "smithy.api#documentation": "

The updated description of the data lake dataset.

" + } } }, "traits": { - "smithy.api#documentation": "

Request was denied due to request throttling.

", - "smithy.api#error": "client", - "smithy.api#httpError": 429, - "smithy.api#retryable": { - "throttling": true - } + "smithy.api#documentation": "

The request parameters of UpdateDataLakeDataset.

", + "smithy.api#input": {} } }, - "com.amazonaws.supplychain#UUID": { - "type": "string", + "com.amazonaws.supplychain#UpdateDataLakeDatasetResponse": { + "type": "structure", + "members": { + "dataset": { + "target": "com.amazonaws.supplychain#DataLakeDataset", + "traits": { + "smithy.api#documentation": "

The updated dataset details.

", + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, "traits": { - "smithy.api#length": { - "min": 36, - "max": 36 - }, - "smithy.api#pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + "smithy.api#documentation": "

The response parameters of UpdateDataLakeDataset.

", + "smithy.api#output": {} } }, "com.amazonaws.supplychain#ValidationException": {