<?php
// This file was auto-generated from sdk-root/src/data/supplychain/2024-01-01/examples-1.json
return [ 'version' => '1.0', 'examples' => [ 'CreateBillOfMaterialsImportJob' => [ [ 'input' => [ 'clientToken' => '550e8400-e29b-41d4-a716-446655440000', 'instanceId' => '60f82bbd-71f7-4fcd-a941-472f574c5243', 's3uri' => 's3://mybucketname/pathelemene/file.csv', ], 'output' => [ 'jobId' => 'f79b359b-1515-4436-a3bf-bae7b33e47b4', ], 'id' => 'example-1', 'title' => 'Invoke CreateBillOfMaterialsImportJob', ], ], 'CreateDataIntegrationFlow' => [ [ 'input' => [ 'name' => 'testStagingFlow', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'sources' => [ [ 's3Source' => [ 'bucketName' => 'aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f', 'prefix' => 'example-prefix', ], 'sourceName' => 'testSourceName', 'sourceType' => 'S3', ], ], 'tags' => [ 'tagKey1' => 'tagValue1', ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset', ], 'targetType' => 'DATASET', ], 'transformation' => [ 'sqlTransformation' => [ 'query' => 'SELECT * FROM testSourceName', ], 'transformationType' => 'SQL', ], ], 'output' => [ 'name' => 'testStagingFlow', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', ], 'id' => 'example-1', 'title' => 'Successful CreateDataIntegrationFlow for s3 to dataset flow', ], [ 'input' => [ 'name' => 'trading-partner', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'sources' => [ [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1', ], 'sourceName' => 'testSourceName1', 'sourceType' => 'DATASET', ], [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2', ], 'sourceName' => 'testSourceName2', 'sourceType' => 'DATASET', ], ], 'tags' => [ 'tagKey1' => 'tagValue1', ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner', 'options' => [ 'dedupeRecords' => true, 'dedupeStrategy' => [ 'type' => 'FIELD_PRIORITY', 'fieldPriority' => [ 'fields' => [ [ 'name' => 'eff_start_date', 'sortOrder' => 'DESC', ], ], ], ], 'loadType' => 'REPLACE', ], ], 'targetType' => 'DATASET', ], 'transformation' => [ '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', ], 'transformationType' => 'SQL', ], ], 'output' => [ 'name' => 'trading-partner', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', ], 'id' => 'example-2', 'title' => 'Successful CreateDataIntegrationFlow for dataset to dataset flow', ], ], 'CreateDataLakeDataset' => [ [ 'input' => [ 'name' => 'inbound_order', 'description' => 'This is an AWS Supply Chain inbound order dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'asc', 'tags' => [ 'tagKey1' => 'tagValue1', 'tagKey2' => 'tagValue2', ], ], 'output' => [ 'dataset' => [ 'name' => 'inbound_order', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order', 'createdTime' => 1727116807.751, 'description' => 'This is an AWS Supply Chain inbound order dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727116807.751, 'namespace' => 'asc', '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, ], ], ], ], ], 'id' => 'example-1', 'title' => 'Create an AWS Supply Chain inbound order dataset', ], [ 'input' => [ 'name' => 'my_dataset', 'description' => 'This is a custom dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'default', 'partitionSpec' => [ 'fields' => [ [ 'name' => 'creation_time', 'transform' => [ 'type' => 'DAY', ], ], [ 'name' => 'description', 'transform' => [ 'type' => 'IDENTITY', ], ], ], ], '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, ], [ 'name' => 'quantity', 'type' => 'LONG', 'isRequired' => false, ], ], 'primaryKeys' => [ [ 'name' => 'id', ], ], ], 'tags' => [ 'tagKey1' => 'tagValue1', 'tagKey2' => 'tagValue2', ], ], 'output' => [ 'dataset' => [ 'name' => 'my_dataset', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset', 'createdTime' => 1727116807.751, 'description' => 'This is a custom dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727116807.751, 'namespace' => 'default', 'partitionSpec' => [ 'fields' => [ [ 'name' => 'creation_time', 'transform' => [ 'type' => 'DAY', ], ], [ 'name' => 'description', 'transform' => [ 'type' => 'IDENTITY', ], ], ], ], '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, ], [ 'name' => 'quantity', 'type' => 'LONG', 'isRequired' => false, ], ], 'primaryKeys' => [ [ 'name' => 'id', ], ], ], ], ], 'id' => 'example-2', 'title' => 'Create a custom dataset', ], ], 'CreateDataLakeNamespace' => [ [ 'input' => [ 'name' => 'my_namespace', 'description' => 'This is my AWS Supply Chain namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'tags' => [ 'tagKey1' => 'tagValue1', 'tagKey2' => 'tagValue2', ], ], 'output' => [ 'namespace' => [ 'name' => 'my_namespace', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/my_namespace', 'createdTime' => 1736892560.751, 'description' => 'This is my AWS Supply Chain namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1736892560.751, ], ], 'id' => 'example-1', 'title' => 'Create a data lake namespace', ], ], 'CreateInstance' => [ [ 'input' => [ 'instanceDescription' => 'example instance description', 'instanceName' => 'example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'tags' => [ 'tagKey1' => 'tagValue1', ], ], 'output' => [ 'instance' => [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => 'example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'Initializing', 'versionNumber' => 2.0, ], ], 'id' => 'example-1', 'title' => 'Successful CreateInstance request with all input data', ], [ 'input' => [], 'output' => [ 'instance' => [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => '', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:456789012345:key/7372eb6d-874c-4212-8d49-7804282d33a8', 'lastModifiedTime' => 172615383136, 'state' => 'Initializing', 'versionNumber' => 2.0, ], ], 'id' => 'example-2', 'title' => 'Successful CreateInstance request with no input data', ], ], 'DeleteDataIntegrationFlow' => [ [ 'input' => [ 'name' => 'testStagingFlow', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', ], 'output' => [ 'name' => 'testStagingFlow', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', ], 'id' => 'example-1', 'title' => 'Successful DeleteDataIntegrationFlow', ], ], 'DeleteDataLakeDataset' => [ [ 'input' => [ 'name' => 'inbound_order', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'asc', ], 'output' => [ 'name' => 'inbound_order', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'asc', ], 'id' => 'example-1', 'title' => 'Delete an AWS Supply Chain inbound_order dataset', ], [ 'input' => [ 'name' => 'my_dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'default', ], 'output' => [ 'name' => 'my_dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'default', ], 'id' => 'example-2', 'title' => 'Delete a custom dataset', ], ], 'DeleteDataLakeNamespace' => [ [ 'input' => [ 'name' => 'my_namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', ], 'output' => [ 'name' => 'my_namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', ], 'id' => 'example-1', 'title' => 'Delete an AWS Supply Chain namespace', ], ], 'DeleteInstance' => [ [ 'input' => [ 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', ], 'output' => [ 'instance' => [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => 'updated example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'updated example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'Deleting', 'versionNumber' => 2.0, ], ], 'id' => 'example-1', 'title' => 'Successful DeleteInstance request', ], ], 'GetBillOfMaterialsImportJob' => [ [ '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', 'message' => 'Import job completed successfully.', 's3uri' => 's3://mybucketname/pathelemene/file.csv', 'status' => 'SUCCESS', ], ], 'id' => 'example-1', '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', 's3uri' => 's3://mybucketname/pathelemene/file.csv', 'status' => 'IN_PROGRESS', ], ], 'id' => 'example-2', 'title' => 'Invoke GetBillOfMaterialsImportJob for an in-progress job', ], ], 'GetDataIntegrationEvent' => [ [ 'input' => [ 'eventId' => '19739c8e-cd2e-4cbc-a2f7-0dc43239f042', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'event' => [ 'datasetTargetDetails' => [ 'datasetIdentifier' => 'arn:aws:scn:us-west-2:135808960812:instance/8928ae12-15e5-4441-825d-ec2184f0a43a/namespaces/asc/datasets/product', 'datasetLoadExecution' => [ 'status' => 'SUCCEEDED', ], 'operationType' => 'APPEND', ], 'eventGroupId' => 'datasetId', 'eventId' => '19739c8e-cd2e-4cbc-a2f7-0dc43239f042', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.dataset', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], ], 'id' => 'example-1', 'title' => 'Successful GetDataIntegrationEvent', ], ], 'GetDataIntegrationFlow' => [ [ 'input' => [ 'name' => 'testStagingFlow', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', ], 'output' => [ 'flow' => [ 'name' => 'testStagingFlow', 'createdTime' => 1724956400.44, 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'lastModifiedTime' => 1724956400.44, 'sources' => [ [ 's3Source' => [ 'bucketName' => 'aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f', 'prefix' => 'example-prefix', ], 'sourceName' => 'testSourceName', 'sourceType' => 'S3', ], ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset', ], 'targetType' => 'DATASET', ], 'transformation' => [ 'sqlTransformation' => [ 'query' => 'SELECT * FROM testSourceName', ], 'transformationType' => 'SQL', ], ], ], 'id' => 'example-1', 'title' => 'Successful GetDataIntegrationFlow', ], ], 'GetDataIntegrationFlowExecution' => [ [ 'input' => [ 'executionId' => 'edbbdd3f-c0f9-49d9-ab01-f64542f803b7', 'flowName' => 'source-product', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'flowExecution' => [ 'endTime' => 1515531090.123, 'executionId' => 'edbbdd3f-c0f9-49d9-ab01-f64542f803b7', 'flowName' => 'source-product', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', 'sourceInfo' => [ 's3Source' => [ 'key' => 'sources/product-sources.csv', 'bucketName' => 'galaxy-raw-input-test-data-prod-pdx-1', ], 'sourceType' => 'S3', ], 'startTime' => 1515531081.123, 'status' => 'SUCCEEDED', ], ], 'id' => 'example-1', 'title' => 'Successful GetDataIntegrationFlowExecution for S3 source', ], [ 'input' => [ 'executionId' => '9daf6071-d12c-4eef-864c-73cea2557825', 'flowName' => 'target-product', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'flowExecution' => [ 'endTime' => 1515531090.123, 'executionId' => '9daf6071-d12c-4eef-864c-73cea2557825', 'flowName' => 'target-product', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', 'sourceInfo' => [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-west-2:135808960812:instance/8928ae12-15e5-4441-825d-ec2184f0a43a/namespaces/default/datasets/product', ], 'sourceType' => 'DATASET', ], 'startTime' => 1515531081.123, 'status' => 'SUCCEEDED', ], ], 'id' => 'example-2', 'title' => 'Successful GetDataIntegrationFlowExecution for DATASET source', ], ], 'GetDataLakeDataset' => [ [ 'input' => [ 'name' => 'inbound_order', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'asc', ], 'output' => [ 'dataset' => [ 'name' => 'inbound_order', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order', 'createdTime' => 1727116807.751, 'description' => 'This is an AWS Supply Chain inbound order dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727116807.751, 'namespace' => 'asc', '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, ], ], ], ], ], 'id' => 'example-1', 'title' => 'Get properties of an existing AWS Supply Chain inbound order dataset', ], [ 'input' => [ 'name' => 'my_dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'default', ], 'output' => [ 'dataset' => [ 'name' => 'my_dataset', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset', 'createdTime' => 1727116807.751, 'description' => 'This is a custom dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727116807.751, 'namespace' => 'default', 'partitionSpec' => [ 'fields' => [ [ 'name' => 'creation_time', 'transform' => [ 'type' => 'DAY', ], ], [ 'name' => 'description', 'transform' => [ 'type' => 'IDENTITY', ], ], ], ], '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, ], [ 'name' => 'quantity', 'type' => 'LONG', 'isRequired' => false, ], ], 'primaryKeys' => [ [ 'name' => 'id', ], ], ], ], ], 'id' => 'example-2', 'title' => 'Get proporties of an existing custom dataset', ], ], 'GetDataLakeNamespace' => [ [ 'input' => [ 'name' => 'my_namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', ], 'output' => [ 'namespace' => [ 'name' => 'my_namespace', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/my_namespace', 'createdTime' => 1736892560.751, 'description' => 'This is my AWS Supply Chain namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1736892560.751, ], ], 'id' => 'example-1', 'title' => 'Get properties of an existing AWS Supply Chain namespace', ], [ 'input' => [ 'name' => 'asc', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', ], 'output' => [ 'namespace' => [ 'name' => 'asc', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc', 'createdTime' => 1736892430.234, 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1736892430.234, ], ], 'id' => 'example-2', 'title' => 'Get proporties of an existing pre-defined AWS Supply Chain namespace', ], ], 'GetInstance' => [ [ 'input' => [ 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', ], 'output' => [ 'instance' => [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => 'example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'Active', 'versionNumber' => 2.0, ], ], 'id' => 'example-1', 'title' => 'Successful GetInstance request', ], [ 'input' => [ 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', ], 'output' => [ 'instance' => [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'errorMessage' => 'Access denied when attempting to create an S3 bucket. Please correct your IAM policy and try again.', 'instanceDescription' => 'example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'CreateFailed', 'versionNumber' => 2.0, ], ], 'id' => 'example-2', 'title' => 'Successful GetInstance request with error message', ], ], 'ListDataIntegrationEvents' => [ [ 'input' => [ 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'events' => [ [ 'datasetTargetDetails' => [ 'datasetIdentifier' => 'arn:aws:scn:us-west-2:135808960812:instance/8928ae12-15e5-4441-825d-ec2184f0a43a/namespaces/asc/datasets/product', 'datasetLoadExecution' => [ 'status' => 'SUCCEEDED', ], 'operationType' => 'APPEND', ], 'eventGroupId' => 'datasetId', 'eventId' => '19739c8e-cd2e-4cbc-a2f7-0dc43239f042', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.dataset', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], ], ], 'id' => 'example-1', 'title' => 'Successful ListDataIntegrationEvents', ], ], 'ListDataIntegrationFlowExecutions' => [ [ 'input' => [ 'flowName' => 'source-product', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'flowExecutions' => [ [ 'endTime' => 1515531090.123, 'executionId' => 'edbbdd3f-c0f9-49d9-ab01-f64542f803b7', 'flowName' => 'source-product', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', 'sourceInfo' => [ 's3Source' => [ 'key' => 'sources/product-sources.csv', 'bucketName' => 'galaxy-raw-input-test-data-prod-pdx-1', ], 'sourceType' => 'S3', ], 'startTime' => 1515531081.123, 'status' => 'SUCCEEDED', ], ], ], 'id' => 'example-1', 'title' => 'Successful ListDataIntegrationFlowExecutions', ], ], 'ListDataIntegrationFlows' => [ [ 'input' => [ 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', ], 'output' => [ 'flows' => [ [ 'name' => 'testStagingFlow', 'createdTime' => 1724956400.44, 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'lastModifiedTime' => 1724956400.44, 'sources' => [ [ 's3Source' => [ 'bucketName' => 'aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f', 'prefix' => 'example-prefix', ], 'sourceName' => 'testSourceName', 'sourceType' => 'S3', ], ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset', ], 'targetType' => 'DATASET', ], 'transformation' => [ 'sqlTransformation' => [ 'query' => 'SELECT * FROM testSourceName', ], 'transformationType' => 'SQL', ], ], [ 'name' => 'trading-partner', 'createdTime' => 17235763506.88, 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'lastModifiedTime' => 17235763506.88, 'sources' => [ [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1', ], 'sourceName' => 'testSourceName1', 'sourceType' => 'DATASET', ], [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2', ], 'sourceName' => 'testSourceName2', 'sourceType' => 'DATASET', ], ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner', 'options' => [ 'dedupeRecords' => true, 'dedupeStrategy' => [ 'type' => 'FIELD_PRIORITY', 'fieldPriority' => [ 'fields' => [ [ 'name' => 'eff_start_date', 'sortOrder' => 'DESC', ], ], ], ], 'loadType' => 'REPLACE', ], ], 'targetType' => 'DATASET', ], 'transformation' => [ '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', ], 'transformationType' => 'SQL', ], ], ], ], 'id' => 'example-1', 'title' => 'Successful ListDataIntegrationFlow', ], ], 'ListDataLakeDatasets' => [ [ 'input' => [ 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'asc', ], 'output' => [ 'datasets' => [ [ 'name' => 'inbound_order', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order', 'createdTime' => 1727116807.751, 'description' => 'This is an AWS Supply Chain inbound order dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727116807.751, 'namespace' => 'asc', '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, ], ], ], ], ], ], 'id' => 'example-1', 'title' => 'List AWS Supply Chain datasets', ], [ 'input' => [ 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'maxResults' => 2, 'namespace' => 'default', 'nextToken' => 'next_token_returned_from_previous_list_request', ], 'output' => [ 'datasets' => [ [ 'name' => 'my_dataset', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset', 'createdTime' => 1727116807.751, 'description' => 'This is a custom dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727116807.751, 'namespace' => 'default', 'partitionSpec' => [ 'fields' => [ [ 'name' => 'creation_time', 'transform' => [ 'type' => 'DAY', ], ], [ 'name' => 'description', 'transform' => [ 'type' => 'IDENTITY', ], ], ], ], '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, ], [ 'name' => 'quantity', 'type' => 'LONG', 'isRequired' => false, ], ], 'primaryKeys' => [ [ 'name' => 'id', ], ], ], ], [ 'name' => 'my_dataset_2', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset_2', 'createdTime' => 1727116907.751, 'description' => 'This is a custom dataset 2', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727116907.751, 'namespace' => 'default', 'schema' => [ 'name' => 'MyDataset2', 'fields' => [ [ 'name' => 'id', 'type' => 'INT', 'isRequired' => true, ], [ 'name' => 'description', 'type' => 'STRING', 'isRequired' => true, ], ], ], ], ], 'nextToken' => 'next_token_for_next_list_request', ], 'id' => 'example-2', 'title' => 'List custom datasets using pagination', ], ], 'ListDataLakeNamespaces' => [ [ 'input' => [ 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', ], 'output' => [ 'namespaces' => [ [ 'name' => 'custom_namespace', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/custom_namespace', 'createdTime' => 1736892060.751, 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1736892060.751, ], [ 'name' => 'my_namespace', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/my_namespace', 'createdTime' => 1736892560.751, 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1736892586.156, ], ], ], 'id' => 'example-1', 'title' => 'List AWS Supply Chain namespaces', ], [ 'input' => [ 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'maxResults' => 1, 'nextToken' => 'next_token_returned_from_previous_list_request', ], 'output' => [ 'namespaces' => [ [ 'name' => 'my_namespace', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/my_namespace', 'createdTime' => 1736892560.751, 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1736892586.156, ], ], 'nextToken' => 'next_token_for_next_list_request', ], 'id' => 'example-2', 'title' => 'List AWS Supply Chain namespaces using pagination', ], ], 'ListInstances' => [ [ 'input' => [], 'output' => [ 'instances' => [ [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => 'example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'Active', 'versionNumber' => 2.0, ], [ 'awsAccountId' => '123456789012', 'createdTime' => 17261674383136, 'instanceDescription' => 'example instance description', 'instanceId' => '3ad8116a-644d-4172-8dcb-20e51d314c14', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 17261674383136, 'state' => 'Initializing', 'versionNumber' => 2.0, ], ], ], 'id' => 'example-1', 'title' => 'Successful ListInstance request with no input data', ], [ 'input' => [ 'instanceNameFilter' => [ 'example instance name', ], 'instanceStateFilter' => [ 'Active', ], ], 'output' => [ 'instances' => [ [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => 'example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'Active', 'versionNumber' => 2.0, ], ], ], 'id' => 'example-2', 'title' => 'Successful ListInstance request with filters', ], [ 'input' => [ 'maxResults' => 1, ], 'output' => [ 'instances' => [ [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => 'example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'Active', 'versionNumber' => 2.0, ], ], 'nextToken' => 'AAQA-EFRSURBSGhtcng0c0dxbENwUHdnckVIbkFYNU1QVjRTZWN2ak5iMFVicC8zemlHOVF3SEpjSC9WTWJVVXBMV2Z1N3ZvZlQ0WEFBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTTJibW9LemgrSWZTY0RaZEdBZ0VRZ0R2dDhsQnVGbGJ0dnFTZityWmNSWEVPbG93emJoSjhxOGNMbGQ1UGMvY0VRbWlTR3pQUFd4N2RraXY5Y0ovcS9vSmFYZVBGdWVHaU0zWmd0dz09n-rC1ejA5--7ltJxpDT2xP_i8xGqDPMOZfjpp8q6l5NuP9_bnBURvwwYhdqDriMK5_f96LuPEnPbuML-ItfgEiCcUy0p2tApvpZkZqOG5fbqP-4C5aDYPTffHLyq-MMqvfrGVJzL1nvkpZcnTkVR9VJsu5b8I0qqDW0H8EMKGgTo78U9lr4sj3Usi9VMwZxgKCBmr03HhFLYXOW--XMbIx0CTZF0fYIcRxmA_sVS6J7gpaB9yMcnzs5VUKokoA5JTcAPY5d1Y1VyE8KKxv51cfPgXw8OYCDbFQncw8mZPmE-VqxjFbksmk_FmghpPn9j2Ppoe-zr0LQ%3D', ], 'id' => 'example-3', 'title' => 'Successful ListInstance request with maxResult override', ], [ 'input' => [ 'maxResults' => 1, 'nextToken' => 'AAQA-EFRSURBSGhtcng0c0dxbENwUHdnckVIbkFYNU1QVjRTZWN2ak5iMFVicC8zemlHOVF3SEpjSC9WTWJVVXBMV2Z1N3ZvZlQ0WEFBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTTJibW9LemgrSWZTY0RaZEdBZ0VRZ0R2dDhsQnVGbGJ0dnFTZityWmNSWEVPbG93emJoSjhxOGNMbGQ1UGMvY0VRbWlTR3pQUFd4N2RraXY5Y0ovcS9vSmFYZVBGdWVHaU0zWmd0dz09n-rC1ejA5--7ltJxpDT2xP_i8xGqDPMOZfjpp8q6l5NuP9_bnBURvwwYhdqDriMK5_f96LuPEnPbuML-ItfgEiCcUy0p2tApvpZkZqOG5fbqP-4C5aDYPTffHLyq-MMqvfrGVJzL1nvkpZcnTkVR9VJsu5b8I0qqDW0H8EMKGgTo78U9lr4sj3Usi9VMwZxgKCBmr03HhFLYXOW--XMbIx0CTZF0fYIcRxmA_sVS6J7gpaB9yMcnzs5VUKokoA5JTcAPY5d1Y1VyE8KKxv51cfPgXw8OYCDbFQncw8mZPmE-VqxjFbksmk_FmghpPn9j2Ppoe-zr0LQ%3D', ], 'output' => [ 'instances' => [ [ 'awsAccountId' => '123456789012', 'createdTime' => 17261674383136, 'instanceDescription' => 'example instance description', 'instanceId' => '3ad8116a-644d-4172-8dcb-20e51d314c14', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 17261674383136, 'state' => 'Initializing', 'versionNumber' => 2.0, ], ], ], 'id' => 'example-4', 'title' => 'Successful ListInstance request with nextToken', ], ], 'ListTagsForResource' => [ [ 'input' => [ 'resourceArn' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1', ], 'output' => [ 'tags' => [ 'tagKey1' => 'tagValue1', ], ], 'id' => 'example-1', 'title' => 'Successful ListTagsForResource', ], ], 'SendDataIntegrationEvent' => [ [ 'input' => [ 'data' => '{"id": "inbound-order-id-test-123", "tpartner_id": "partner-id-test-123" }', 'eventGroupId' => 'inboundOrderId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.inboundorder', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => 'c4132c1d-8f60-44a2-9932-f723c4f7b8a7', ], 'id' => 'example-1', 'title' => 'Successful SendDataIntegrationEvent for inboundorder event type', ], [ 'input' => [ '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' => 1515531081.123, 'eventType' => 'scn.data.inboundorderline', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '45d95db2-d106-40e0-aa98-f1204230a691', ], 'id' => 'example-2', 'title' => 'Successful SendDataIntegrationEvent for inboundorderline event type', ], [ 'input' => [ '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' => 1515531081.123, 'eventType' => 'scn.data.inboundorderlineschedule', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '5abba995-7735-4d1e-95c4-7cc93e48cf9f', ], 'id' => 'example-3', 'title' => 'Successful SendDataIntegrationEvent for inboundorderlineschedule event type', ], [ 'input' => [ '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' => 1515531081.123, 'eventType' => 'scn.data.forecast', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '29312d5b-f499-4dcd-b017-3dab3cd34d61', ], 'id' => 'example-4', 'title' => 'Successful SendDataIntegrationEvent for forecast event type', ], [ 'input' => [ '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' => 1515531081.123, 'eventType' => 'scn.data.inventorylevel', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '3aa78324-acd8-4fdd-a19e-231ea003c2b3', ], 'id' => 'example-5', 'title' => 'Successful SendDataIntegrationEvent for inventorylevel event type', ], [ 'input' => [ 'data' => '{"id": "outbound-orderline-id-test-123", "cust_order_id": "cust-order-id-test-123", "product_id": "product-id-test-123" }', 'eventGroupId' => 'outboundOrderLineId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.outboundorderline', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '959b7ef9-5e2d-4795-b1ca-5b16a3eb6b89', ], 'id' => 'example-6', 'title' => 'Successful SendDataIntegrationEvent for outboundorderline event type', ], [ 'input' => [ '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' => 1515531081.123, 'eventType' => 'scn.data.outboundshipment', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '59feded3-5e46-4126-81bf-0137ca176ee0', ], 'id' => 'example-7', 'title' => 'Successful SendDataIntegrationEvent for outboundshipment event type', ], [ 'input' => [ 'data' => '{"process_id": "process-id-test-123" }', 'eventGroupId' => 'processHeaderId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.processheader', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '564130eb-2d8a-4550-a768-ddf0daf7b4a9', ], 'id' => 'example-8', 'title' => 'Successful SendDataIntegrationEvent for processheader event type', ], [ 'input' => [ 'data' => '{"process_operation_id": "process-operation-id-test-123", "process_id": "process-id-test-123" }', 'eventGroupId' => 'processOperationId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.processoperation', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => 'db5df408-89c7-4b9f-a326-016f6c2b3396', ], 'id' => 'example-9', 'title' => 'Successful SendDataIntegrationEvent for processoperation event type', ], [ 'input' => [ 'data' => '{"process_product_id": "process-product-id-test-123", "process_id": "process-id-test-123" }', 'eventGroupId' => 'processProductId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.processproduct', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '6929b275-485e-4035-a798-99077ca6d669', ], 'id' => 'example-10', 'title' => 'Successful SendDataIntegrationEvent for processproduct event type', ], [ 'input' => [ 'data' => '{"reservation_id": "reservation-id-test-123", "reservation_detail_id": "reservation-detail-id-test-123" }', 'eventGroupId' => 'reservationId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.reservation', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => 'f6c55a8b-fde2-44f6-848a-9b4336c77209', ], 'id' => 'example-11', 'title' => 'Successful SendDataIntegrationEvent for reservation event type', ], [ 'input' => [ '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' => 1515531081.123, 'eventType' => 'scn.data.shipment', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '61d079d8-3f56-49bb-b35a-c0271a4e4f0a', ], 'id' => 'example-12', 'title' => 'Successful SendDataIntegrationEvent for shipment event type', ], [ 'input' => [ 'data' => '{"shipment_stop_id": "shipment-stop-id-test-123", "shipment_id": "shipment-id-test-123" }', 'eventGroupId' => 'shipmentStopId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.shipmentstop', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '3610992a-fc2f-4da4-9beb-724994622ba1', ], 'id' => 'example-13', 'title' => 'Successful SendDataIntegrationEvent for shipmentstop event type', ], [ 'input' => [ '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' => 1515531081.123, 'eventType' => 'scn.data.shipmentstoporder', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '1d550a60-9321-4d25-a132-9dd4b2d9e934', ], 'id' => 'example-14', 'title' => 'Successful SendDataIntegrationEvent for shipmentstoporder event type', ], [ 'input' => [ 'data' => '{"supply_plan_id": "supply-plan-id-test-123" }', 'eventGroupId' => 'supplyPlanId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.supplyplan', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '9abaee56-5dc4-4c31-8250-3206a651d8a1', ], 'id' => 'example-15', 'title' => 'Successful SendDataIntegrationEvent for supplyplan event type', ], [ 'input' => [ 'data' => '{"dataset_id": "datset-id-test-123" }', 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-west-2:135808960812:instance/8928ae12-15e5-4441-825d-ec2184f0a43a/namespaces/asc/datasets/product', 'operationType' => 'APPEND', ], 'eventGroupId' => 'datasetId', 'eventTimestamp' => 1515531081.123, 'eventType' => 'scn.data.dataset', 'instanceId' => '8928ae12-15e5-4441-825d-ec2184f0a43a', ], 'output' => [ 'eventId' => '19739c8e-cd2e-4cbc-a2f7-0dc43239f042', ], 'id' => 'example-16', 'title' => 'Successful SendDataIntegrationEvent for dataset event type', ], ], 'TagResource' => [ [ 'input' => [ 'resourceArn' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1', 'tags' => [ 'tagKey1' => 'tagValue1', ], ], 'output' => [], 'id' => 'example-1', 'title' => 'Successful TagResource', ], ], 'UntagResource' => [ [ 'input' => [ 'resourceArn' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/data-integration-flows/my_flow1', 'tagKeys' => [ 'tagKey1', ], ], 'output' => [], 'id' => 'example-1', 'title' => 'Successful UntagResource', ], ], 'UpdateDataIntegrationFlow' => [ [ 'input' => [ 'name' => 'testStagingFlow', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'sources' => [ [ 's3Source' => [ 'bucketName' => 'aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f', 'prefix' => 'example-prefix', ], 'sourceName' => 'testSourceName', 'sourceType' => 'S3', ], ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset', ], 'targetType' => 'DATASET', ], 'transformation' => [ 'sqlTransformation' => [ 'query' => 'SELECT connection_id, bukrs AS id, txtmd AS description FROM testSourceName WHERE langu = \'E\'', ], 'transformationType' => 'SQL', ], ], 'output' => [ 'flow' => [ 'name' => 'testStagingFlow', 'createdTime' => 1724956400.44, 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'lastModifiedTime' => 1732456405.77, 'sources' => [ [ 's3Source' => [ 'bucketName' => 'aws-supply-chain-data-b8c7bb28-a576-4334-b481-6d6e8e47371f', 'prefix' => 'example-prefix', ], 'sourceName' => 'testSourceName', 'sourceType' => 'S3', ], ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset', ], 'targetType' => 'DATASET', ], 'transformation' => [ 'sqlTransformation' => [ 'query' => 'SELECT connection_id, bukrs AS id, txtmd AS description FROM testSourceName WHERE langu = \'E\'', ], 'transformationType' => 'SQL', ], ], ], 'id' => 'example-1', 'title' => 'Successful UpdateDataIntegrationFlow for s3 to dataset flow to update SQL transformation', ], [ 'input' => [ 'name' => 'trading-partner', 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'sources' => [ [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1', ], 'sourceName' => 'testSourceName1', 'sourceType' => 'DATASET', ], [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2_updated', ], 'sourceName' => 'testSourceName2', 'sourceType' => 'DATASET', ], ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner', 'options' => [ 'dedupeRecords' => true, 'dedupeStrategy' => [ 'type' => 'FIELD_PRIORITY', 'fieldPriority' => [ 'fields' => [ [ 'name' => 'eff_start_date', 'sortOrder' => 'ASC', ], ], ], ], 'loadType' => 'REPLACE', ], ], 'targetType' => 'DATASET', ], 'transformation' => [ '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', ], 'transformationType' => 'SQL', ], ], 'output' => [ 'flow' => [ 'name' => 'trading-partner', 'createdTime' => 1724956400.44, 'instanceId' => '8850c54e-e187-4fa7-89d4-6370f165174d', 'lastModifiedTime' => 1732456405.77, 'sources' => [ [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1', ], 'sourceName' => 'testSourceName1', 'sourceType' => 'DATASET', ], [ 'datasetSource' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset2_updated', ], 'sourceName' => 'testSourceName2', 'sourceType' => 'DATASET', ], ], 'target' => [ 'datasetTarget' => [ 'datasetIdentifier' => 'arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner', 'options' => [ 'dedupeRecords' => true, 'dedupeStrategy' => [ 'type' => 'FIELD_PRIORITY', 'fieldPriority' => [ 'fields' => [ [ 'name' => 'eff_start_date', 'sortOrder' => 'ASC', ], ], ], ], 'loadType' => 'REPLACE', ], ], 'targetType' => 'DATASET', ], 'transformation' => [ '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', ], 'transformationType' => 'SQL', ], ], ], 'id' => 'example-2', 'title' => 'Successful UpdateDataIntegrationFlow for dataset to dataset flow to update sources', ], ], 'UpdateDataLakeDataset' => [ [ 'input' => [ 'name' => 'inbound_order', 'description' => 'This is an updated AWS Supply Chain inbound order dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'asc', ], 'output' => [ 'dataset' => [ 'name' => 'inbound_order', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/asc/datasets/inbound_order', 'createdTime' => 1727116807.751, 'description' => 'This is an updated AWS Supply Chain inbound order dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727117453.568, 'namespace' => 'asc', '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, ], ], ], ], ], 'id' => 'example-1', 'title' => 'Update description of an existing AWS Supply Chain inbound order dataset', ], [ 'input' => [ 'name' => 'my_dataset', 'description' => 'This is an updated custom dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'namespace' => 'default', ], 'output' => [ 'dataset' => [ 'name' => 'my_dataset', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/default/datasets/my_dataset', 'createdTime' => 1727116807.751, 'description' => 'This is an updated custom dataset', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1727117453.568, 'namespace' => 'default', 'partitionSpec' => [ 'fields' => [ [ 'name' => 'creation_time', 'transform' => [ 'type' => 'DAY', ], ], [ 'name' => 'description', 'transform' => [ 'type' => 'IDENTITY', ], ], ], ], '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, ], [ 'name' => 'quantity', 'type' => 'LONG', 'isRequired' => false, ], ], 'primaryKeys' => [ [ 'name' => 'id', ], ], ], ], ], 'id' => 'example-2', 'title' => 'Update description of an existing custom dataset', ], ], 'UpdateDataLakeNamespace' => [ [ 'input' => [ 'name' => 'my_namespace', 'description' => 'This is an updated AWS Supply Chain namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', ], 'output' => [ 'namespace' => [ 'name' => 'my_namespace', 'arn' => 'arn:aws:scn:us-east-1:012345678910:instance/1877dd20-dee9-4639-8e99-cb67acf21fe5/namespaces/my_namespace', 'createdTime' => 1736892560.751, 'description' => 'This is an updated AWS Supply Chain namespace', 'instanceId' => '1877dd20-dee9-4639-8e99-cb67acf21fe5', 'lastModifiedTime' => 1736892586.156, ], ], 'id' => 'example-1', 'title' => 'Update description of an existing AWS Supply Chain namespace', ], ], 'UpdateInstance' => [ [ 'input' => [ 'instanceDescription' => 'updated example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'updated example instance name', ], 'output' => [ 'instance' => [ 'awsAccountId' => '123456789012', 'createdTime' => 172615383136, 'instanceDescription' => 'updated example instance description', 'instanceId' => '9e193580-7cc5-45f7-9609-c43ba0ada793', 'instanceName' => 'updated example instance name', 'kmsKeyArn' => 'arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d', 'lastModifiedTime' => 172615383136, 'state' => 'Active', 'versionNumber' => 2.0, ], ], 'id' => 'example-1', 'title' => 'Successful UpdateInstance request', ], ], ],];
