TableReferenceProperty Struct
A pointer to the dataset that underlies this table.
| 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_cleanrooms as cleanrooms } from 'aws-cdk-lib';
const tableReferenceProperty: cleanrooms.CfnConfiguredTable.TableReferenceProperty = {
athena: {
databaseName: 'databaseName',
tableName: 'tableName',
workGroup: 'workGroup',
// the properties below are optional
catalogName: 'catalogName',
outputLocation: 'outputLocation',
region: 'region',
},
databricks: {
connectionType: {
deltaSharing: {
deltaShareEndpoint: 'deltaShareEndpoint',
shareName: 'shareName',
},
},
schemaName: 'schemaName',
tableName: 'tableName',
workspaceUrl: 'workspaceUrl',
},
glue: {
databaseName: 'databaseName',
tableName: 'tableName',
// the properties below are optional
region: 'region',
},
snowflake: {
accountIdentifier: 'accountIdentifier',
databaseName: 'databaseName',
schemaName: 'schemaName',
secretArn: 'secretArn',
tableName: 'tableName',
tableSchema: {
v1: [{
columnName: 'columnName',
columnType: 'columnType',
}],
},
},
};
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_cleanrooms as cleanrooms
table_reference_property = cleanrooms.CfnConfiguredTable.TableReferenceProperty(
athena=cleanrooms.CfnConfiguredTable.AthenaTableReferenceProperty(
database_name="databaseName",
table_name="tableName",
work_group="workGroup",
# the properties below are optional
catalog_name="catalogName",
output_location="outputLocation",
region="region"
),
databricks=cleanrooms.CfnConfiguredTable.DatabricksTableReferenceProperty(
connection_type=cleanrooms.CfnConfiguredTable.DatabricksConnectionTypeProperty(
delta_sharing=cleanrooms.CfnConfiguredTable.DatabricksDeltaSharingConnectionProperty(
delta_share_endpoint="deltaShareEndpoint",
share_name="shareName"
)
),
schema_name="schemaName",
table_name="tableName",
workspace_url="workspaceUrl"
),
glue=cleanrooms.CfnConfiguredTable.GlueTableReferenceProperty(
database_name="databaseName",
table_name="tableName",
# the properties below are optional
region="region"
),
snowflake=cleanrooms.CfnConfiguredTable.SnowflakeTableReferenceProperty(
account_identifier="accountIdentifier",
database_name="databaseName",
schema_name="schemaName",
secret_arn="secretArn",
table_name="tableName",
table_schema=cleanrooms.CfnConfiguredTable.SnowflakeTableSchemaProperty(
v1=[cleanrooms.CfnConfiguredTable.SnowflakeTableSchemaV1Property(
column_name="columnName",
column_type="columnType"
)]
)
)
)
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.cleanrooms.*;
TableReferenceProperty tableReferenceProperty = TableReferenceProperty.builder()
.athena(AthenaTableReferenceProperty.builder()
.databaseName("databaseName")
.tableName("tableName")
.workGroup("workGroup")
// the properties below are optional
.catalogName("catalogName")
.outputLocation("outputLocation")
.region("region")
.build())
.databricks(DatabricksTableReferenceProperty.builder()
.connectionType(DatabricksConnectionTypeProperty.builder()
.deltaSharing(DatabricksDeltaSharingConnectionProperty.builder()
.deltaShareEndpoint("deltaShareEndpoint")
.shareName("shareName")
.build())
.build())
.schemaName("schemaName")
.tableName("tableName")
.workspaceUrl("workspaceUrl")
.build())
.glue(GlueTableReferenceProperty.builder()
.databaseName("databaseName")
.tableName("tableName")
// the properties below are optional
.region("region")
.build())
.snowflake(SnowflakeTableReferenceProperty.builder()
.accountIdentifier("accountIdentifier")
.databaseName("databaseName")
.schemaName("schemaName")
.secretArn("secretArn")
.tableName("tableName")
.tableSchema(SnowflakeTableSchemaProperty.builder()
.v1(List.of(SnowflakeTableSchemaV1Property.builder()
.columnName("columnName")
.columnType("columnType")
.build()))
.build())
.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.CleanRooms;
var tableReferenceProperty = new TableReferenceProperty {
Athena = new AthenaTableReferenceProperty {
DatabaseName = "databaseName",
TableName = "tableName",
WorkGroup = "workGroup",
// the properties below are optional
CatalogName = "catalogName",
OutputLocation = "outputLocation",
Region = "region"
},
Databricks = new DatabricksTableReferenceProperty {
ConnectionType = new DatabricksConnectionTypeProperty {
DeltaSharing = new DatabricksDeltaSharingConnectionProperty {
DeltaShareEndpoint = "deltaShareEndpoint",
ShareName = "shareName"
}
},
SchemaName = "schemaName",
TableName = "tableName",
WorkspaceUrl = "workspaceUrl"
},
Glue = new GlueTableReferenceProperty {
DatabaseName = "databaseName",
TableName = "tableName",
// the properties below are optional
Region = "region"
},
Snowflake = new SnowflakeTableReferenceProperty {
AccountIdentifier = "accountIdentifier",
DatabaseName = "databaseName",
SchemaName = "schemaName",
SecretArn = "secretArn",
TableName = "tableName",
TableSchema = new SnowflakeTableSchemaProperty {
V1 = new [] { new SnowflakeTableSchemaV1Property {
ColumnName = "columnName",
ColumnType = "columnType"
} }
}
}
};
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"
tableReferenceProperty := &TableReferenceProperty{
Athena: &AthenaTableReferenceProperty{
DatabaseName: jsii.String("databaseName"),
TableName: jsii.String("tableName"),
WorkGroup: jsii.String("workGroup"),
// the properties below are optional
CatalogName: jsii.String("catalogName"),
OutputLocation: jsii.String("outputLocation"),
Region: jsii.String("region"),
},
Databricks: &DatabricksTableReferenceProperty{
ConnectionType: &DatabricksConnectionTypeProperty{
DeltaSharing: &DatabricksDeltaSharingConnectionProperty{
DeltaShareEndpoint: jsii.String("deltaShareEndpoint"),
ShareName: jsii.String("shareName"),
},
},
SchemaName: jsii.String("schemaName"),
TableName: jsii.String("tableName"),
WorkspaceUrl: jsii.String("workspaceUrl"),
},
Glue: &GlueTableReferenceProperty{
DatabaseName: jsii.String("databaseName"),
TableName: jsii.String("tableName"),
// the properties below are optional
Region: jsii.String("region"),
},
Snowflake: &SnowflakeTableReferenceProperty{
AccountIdentifier: jsii.String("accountIdentifier"),
DatabaseName: jsii.String("databaseName"),
SchemaName: jsii.String("schemaName"),
SecretArn: jsii.String("secretArn"),
TableName: jsii.String("tableName"),
TableSchema: &SnowflakeTableSchemaProperty{
V1: []interface{}{
&SnowflakeTableSchemaV1Property{
ColumnName: jsii.String("columnName"),
ColumnType: jsii.String("columnType"),
},
},
},
},
}
Properties
athenaoptionalIResolvable | CfnConfiguredTable.athenaoptionaltyping.Union[IResolvable, AthenaTableReferenceProperty]athenaoptionalIResolvableAthenaoptionalIResolvableAthenaoptionalinterface{} #If present, a reference to the Athena table referred to by this table reference.
databricksoptionalIResolvable | CfnConfiguredTable.databricksoptionaltyping.Union[IResolvable, DatabricksTableReferenceProperty]databricksoptionalIResolvableDatabricksoptionalIResolvableDatabricksoptionalinterface{} #glueoptionalIResolvable | CfnConfiguredTable.glueoptionaltyping.Union[IResolvable, GlueTableReferenceProperty]glueoptionalIResolvableGlueoptionalIResolvableGlueoptionalinterface{} #If present, a reference to the AWS Glue table referred to by this table reference.
snowflakeoptionalIResolvable | CfnConfiguredTable.snowflakeoptionaltyping.Union[IResolvable, SnowflakeTableReferenceProperty]snowflakeoptionalIResolvableSnowflakeoptionalIResolvableSnowflakeoptionalinterface{} #If present, a reference to the Snowflake table referred to by this table reference.