AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Enables you to programmatically view an Amazon Web Services Supply Chain data lake dataset. Developers can view the data lake dataset information such as namespace, schema, and so on for a given instance ID, namespace, and dataset name.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to GetDataLakeDatasetAsync.

Namespace: Amazon.SupplyChain
Assembly: AWSSDK.SupplyChain.dll
Version: 3.x.y.z

Syntax

C#
public virtual GetDataLakeDatasetResponse GetDataLakeDataset(
         GetDataLakeDatasetRequest request
)

Parameters

request
Type: Amazon.SupplyChain.Model.GetDataLakeDatasetRequest

Container for the necessary parameters to execute the GetDataLakeDataset service method.

Return Value


The response from the GetDataLakeDataset service method, as returned by SupplyChain.

Exceptions

ExceptionCondition
AccessDeniedException You do not have the required privileges to perform this action.
ConflictException Updating or deleting a resource can cause an inconsistent state.
InternalServerException Unexpected error during processing of request.
ResourceNotFoundException Request references a resource which does not exist.
ServiceQuotaExceededException Request would cause a service quota to be exceeded.
ThrottlingException Request was denied due to request throttling.
ValidationException The input does not satisfy the constraints specified by an AWS service.

Examples

Get properties of an existing AWS Supply Chain inbound order dataset


var client = new AmazonSupplyChainClient();
var response = client.CreateBillOfMaterialsImportJob(new CreateBillOfMaterialsImportJobRequest 
{
    ClientToken = "550e8400-e29b-41d4-a716-446655440000",
    InstanceId = "60f82bbd-71f7-4fcd-a941-472f574c5243",
    S3uri = "s3://mybucketname/pathelemene/file.csv"
});

string jobId = response.JobId;

            

Get proporties of an existing custom dataset


var client = new AmazonSupplyChainClient();
var response = client.CreateDataIntegrationFlow(new CreateDataIntegrationFlowRequest 
{
    Name = "trading-partner",
    InstanceId = "8850c54e-e187-4fa7-89d4-6370f165174d",
    Sources = new List<DataIntegrationFlowSource> {
        new DataIntegrationFlowSource {
            DatasetSource = new DataIntegrationFlowDatasetSourceConfiguration { DatasetIdentifier = "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/default/datasets/my_staging_dataset1" },
            SourceName = "testSourceName1",
            SourceType = "DATASET"
        },
        new DataIntegrationFlowSource {
            DatasetSource = new DataIntegrationFlowDatasetSourceConfiguration { 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 = new Dictionary<string, string> {
        { "tagKey1", "tagValue1" }
    },
    Target = new DataIntegrationFlowTarget {
        DatasetTarget = new DataIntegrationFlowDatasetTargetConfiguration { DatasetIdentifier = "arn:aws:scn:us-east-1:123456789012:instance/8850c54e-e187-4fa7-89d4-6370f165174d/namespaces/asc/datasets/trading_partner" },
        TargetType = "DATASET"
    },
    Transformation = new DataIntegrationFlowTransformation {
        SqlTransformation = new DataIntegrationFlowSQLTransformationConfiguration { 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"
    }
});

string name = response.Name;
string instanceId = response.InstanceId;

            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also