DatabaseOutputProperty Struct
Represents a JDBC database output object which defines the output destination for a DataBrew recipe job to write into.
| Source | |
|---|---|
| Type last changed |
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 databaseOutputProperty: databrew.CfnJob.DatabaseOutputProperty = {
databaseOptions: {
tableName: 'tableName',
// the properties below are optional
tempDirectory: {
bucket: 'bucket',
// the properties below are optional
bucketOwner: 'bucketOwner',
key: 'key',
},
},
glueConnectionName: 'glueConnectionName',
// the properties below are optional
databaseOutputMode: 'databaseOutputMode',
};
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
database_output_property = databrew.CfnJob.DatabaseOutputProperty(
database_options=databrew.CfnJob.DatabaseTableOutputOptionsProperty(
table_name="tableName",
# the properties below are optional
temp_directory=databrew.CfnJob.S3LocationProperty(
bucket="bucket",
# the properties below are optional
bucket_owner="bucketOwner",
key="key"
)
),
glue_connection_name="glueConnectionName",
# the properties below are optional
database_output_mode="databaseOutputMode"
)
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.*;
DatabaseOutputProperty databaseOutputProperty = DatabaseOutputProperty.builder()
.databaseOptions(DatabaseTableOutputOptionsProperty.builder()
.tableName("tableName")
// the properties below are optional
.tempDirectory(S3LocationProperty.builder()
.bucket("bucket")
// the properties below are optional
.bucketOwner("bucketOwner")
.key("key")
.build())
.build())
.glueConnectionName("glueConnectionName")
// the properties below are optional
.databaseOutputMode("databaseOutputMode")
.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 databaseOutputProperty = new DatabaseOutputProperty {
DatabaseOptions = new DatabaseTableOutputOptionsProperty {
TableName = "tableName",
// the properties below are optional
TempDirectory = new S3LocationProperty {
Bucket = "bucket",
// the properties below are optional
BucketOwner = "bucketOwner",
Key = "key"
}
},
GlueConnectionName = "glueConnectionName",
// the properties below are optional
DatabaseOutputMode = "databaseOutputMode"
};
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"
databaseOutputProperty := &DatabaseOutputProperty{
DatabaseOptions: &DatabaseTableOutputOptionsProperty{
TableName: jsii.String("tableName"),
// the properties below are optional
TempDirectory: &S3LocationProperty{
Bucket: jsii.String("bucket"),
// the properties below are optional
BucketOwner: jsii.String("bucketOwner"),
Key: jsii.String("key"),
},
},
GlueConnectionName: jsii.String("glueConnectionName"),
// the properties below are optional
DatabaseOutputMode: jsii.String("databaseOutputMode"),
}
Properties
databaseOptionsIResolvable | CfnJob.database_optionstyping.Union[IResolvable, DatabaseTableOutputOptionsProperty]databaseOptionsIResolvableDatabaseOptionsIResolvableDatabaseOptionsinterface{} required #Represents options that specify how and where DataBrew writes the database output generated by recipe jobs.
databaseOutputModeoptionalstringdatabase_output_modeoptionalstrdatabaseOutputModeoptionalStringDatabaseOutputModeoptionalstringDatabaseOutputModeoptional*string #The output mode to write into the database.
Currently supported option: NEW_TABLE.
glueConnectionNamestringglue_connection_namestrglueConnectionNameStringGlueConnectionNamestringGlueConnectionName*string required #The AWS Glue connection that stores the connection information for the target database.