Skip to content
v2.278.0

InputProperty Struct ​

Represents information on how DataBrew can find data, in either the AWS Glue Data Catalog or Amazon S3.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_databrew as databrew } from 'aws-cdk-lib';
const inputProperty: databrew.CfnDataset.InputProperty = {
  databaseInputDefinition: {
    glueConnectionName: 'glueConnectionName',

    // the properties below are optional
    databaseTableName: 'databaseTableName',
    queryString: 'queryString',
    tempDirectory: {
      bucket: 'bucket',

      // the properties below are optional
      bucketOwner: 'bucketOwner',
      key: 'key',
    },
  },
  dataCatalogInputDefinition: {
    catalogId: 'catalogId',
    databaseName: 'databaseName',
    tableName: 'tableName',
    tempDirectory: {
      bucket: 'bucket',

      // the properties below are optional
      bucketOwner: 'bucketOwner',
      key: 'key',
    },
  },
  metadata: {
    sourceArn: 'sourceArn',
  },
  s3InputDefinition: {
    bucket: 'bucket',

    // the properties below are optional
    bucketOwner: 'bucketOwner',
    key: 'key',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_databrew as databrew

input_property = databrew.CfnDataset.InputProperty(
    database_input_definition=databrew.CfnDataset.DatabaseInputDefinitionProperty(
        glue_connection_name="glueConnectionName",

        # the properties below are optional
        database_table_name="databaseTableName",
        query_string="queryString",
        temp_directory=databrew.CfnDataset.S3LocationProperty(
            bucket="bucket",

            # the properties below are optional
            bucket_owner="bucketOwner",
            key="key"
        )
    ),
    data_catalog_input_definition=databrew.CfnDataset.DataCatalogInputDefinitionProperty(
        catalog_id="catalogId",
        database_name="databaseName",
        table_name="tableName",
        temp_directory=databrew.CfnDataset.S3LocationProperty(
            bucket="bucket",

            # the properties below are optional
            bucket_owner="bucketOwner",
            key="key"
        )
    ),
    metadata=databrew.CfnDataset.MetadataProperty(
        source_arn="sourceArn"
    ),
    s3_input_definition=databrew.CfnDataset.S3LocationProperty(
        bucket="bucket",

        # the properties below are optional
        bucket_owner="bucketOwner",
        key="key"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.databrew.*;

InputProperty inputProperty = InputProperty.builder()
        .databaseInputDefinition(DatabaseInputDefinitionProperty.builder()
                .glueConnectionName("glueConnectionName")

                // the properties below are optional
                .databaseTableName("databaseTableName")
                .queryString("queryString")
                .tempDirectory(S3LocationProperty.builder()
                        .bucket("bucket")

                        // the properties below are optional
                        .bucketOwner("bucketOwner")
                        .key("key")
                        .build())
                .build())
        .dataCatalogInputDefinition(DataCatalogInputDefinitionProperty.builder()
                .catalogId("catalogId")
                .databaseName("databaseName")
                .tableName("tableName")
                .tempDirectory(S3LocationProperty.builder()
                        .bucket("bucket")

                        // the properties below are optional
                        .bucketOwner("bucketOwner")
                        .key("key")
                        .build())
                .build())
        .metadata(MetadataProperty.builder()
                .sourceArn("sourceArn")
                .build())
        .s3InputDefinition(S3LocationProperty.builder()
                .bucket("bucket")

                // the properties below are optional
                .bucketOwner("bucketOwner")
                .key("key")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataBrew;

var inputProperty = new InputProperty {
    DatabaseInputDefinition = new DatabaseInputDefinitionProperty {
        GlueConnectionName = "glueConnectionName",

        // the properties below are optional
        DatabaseTableName = "databaseTableName",
        QueryString = "queryString",
        TempDirectory = new S3LocationProperty {
            Bucket = "bucket",

            // the properties below are optional
            BucketOwner = "bucketOwner",
            Key = "key"
        }
    },
    DataCatalogInputDefinition = new DataCatalogInputDefinitionProperty {
        CatalogId = "catalogId",
        DatabaseName = "databaseName",
        TableName = "tableName",
        TempDirectory = new S3LocationProperty {
            Bucket = "bucket",

            // the properties below are optional
            BucketOwner = "bucketOwner",
            Key = "key"
        }
    },
    Metadata = new MetadataProperty {
        SourceArn = "sourceArn"
    },
    S3InputDefinition = new S3LocationProperty {
        Bucket = "bucket",

        // the properties below are optional
        BucketOwner = "bucketOwner",
        Key = "key"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

inputProperty := &InputProperty{
	DatabaseInputDefinition: &DatabaseInputDefinitionProperty{
		GlueConnectionName: jsii.String("glueConnectionName"),

		// the properties below are optional
		DatabaseTableName: jsii.String("databaseTableName"),
		QueryString: jsii.String("queryString"),
		TempDirectory: &S3LocationProperty{
			Bucket: jsii.String("bucket"),

			// the properties below are optional
			BucketOwner: jsii.String("bucketOwner"),
			Key: jsii.String("key"),
		},
	},
	DataCatalogInputDefinition: &DataCatalogInputDefinitionProperty{
		CatalogId: jsii.String("catalogId"),
		DatabaseName: jsii.String("databaseName"),
		TableName: jsii.String("tableName"),
		TempDirectory: &S3LocationProperty{
			Bucket: jsii.String("bucket"),

			// the properties below are optional
			BucketOwner: jsii.String("bucketOwner"),
			Key: jsii.String("key"),
		},
	},
	Metadata: &MetadataProperty{
		SourceArn: jsii.String("sourceArn"),
	},
	S3InputDefinition: &S3LocationProperty{
		Bucket: jsii.String("bucket"),

		// the properties below are optional
		BucketOwner: jsii.String("bucketOwner"),
		Key: jsii.String("key"),
	},
}

Properties ​

databaseInputDefinitionoptionalIResolvable | CfnDataset.DatabaseInputDefinitionPropertydatabase_input_definitionoptionaltyping.Union[IResolvable, DatabaseInputDefinitionProperty]databaseInputDefinitionoptionalIResolvableDatabaseInputDefinitionoptionalIResolvableDatabaseInputDefinitionoptionalinterface{} #
Connection information for dataset input files stored in a database.
dataCatalogInputDefinitionoptionalIResolvable | CfnDataset.DataCatalogInputDefinitionPropertydata_catalog_input_definitionoptionaltyping.Union[IResolvable, DataCatalogInputDefinitionProperty]dataCatalogInputDefinitionoptionalIResolvableDataCatalogInputDefinitionoptionalIResolvableDataCatalogInputDefinitionoptionalinterface{} #
The AWS Glue Data Catalog parameters for the data.
metadataoptionalIResolvable | CfnDataset.MetadataPropertymetadataoptionaltyping.Union[IResolvable, MetadataProperty]metadataoptionalIResolvableMetadataoptionalIResolvableMetadataoptionalinterface{} #
Contains additional resource information needed for specific datasets.
s3InputDefinitionoptionalIResolvable | CfnDataset.S3LocationPropertys3_input_definitionoptionaltyping.Union[IResolvable, S3LocationProperty]s3InputDefinitionoptionalIResolvableS3InputDefinitionoptionalIResolvableS3InputDefinitionoptionalinterface{} #
The Amazon S3 location where the data is stored.