CfnConfiguredTableProps Struct
Properties for defining a CfnConfiguredTable.
| 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 cfnConfiguredTableProps: cleanrooms.CfnConfiguredTableProps = {
allowedColumns: ['allowedColumns'],
analysisMethod: 'analysisMethod',
name: 'name',
tableReference: {
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',
}],
},
},
},
// the properties below are optional
analysisRules: [{
policy: {
v1: {
aggregation: {
aggregateColumns: [{
columnNames: ['columnNames'],
function: 'function',
}],
dimensionColumns: ['dimensionColumns'],
joinColumns: ['joinColumns'],
outputConstraints: [{
columnName: 'columnName',
minimum: 123,
type: 'type',
}],
scalarFunctions: ['scalarFunctions'],
// the properties below are optional
additionalAnalyses: 'additionalAnalyses',
allowedJoinOperators: ['allowedJoinOperators'],
joinRequired: 'joinRequired',
},
custom: {
allowedAnalyses: ['allowedAnalyses'],
// the properties below are optional
additionalAnalyses: 'additionalAnalyses',
aggregationThresholds: [{
allowedAggregateExpressionType: 'allowedAggregateExpressionType',
identityColumns: ['identityColumns'],
minimumIdentityCount: 123,
type: 'type',
// the properties below are optional
outputColumnThresholds: [{
minimumIdentityCount: 123,
outputColumnName: 'outputColumnName',
}],
}],
allowedAnalysisProviders: ['allowedAnalysisProviders'],
comparisonControls: {
allowedColumnComparisonColumns: ['allowedColumnComparisonColumns'],
allowedLiteralComparisonColumns: ['allowedLiteralComparisonColumns'],
},
differentialPrivacy: {
columns: [{
name: 'name',
}],
},
disallowedOutputColumns: ['disallowedOutputColumns'],
},
list: {
joinColumns: ['joinColumns'],
listColumns: ['listColumns'],
// the properties below are optional
additionalAnalyses: 'additionalAnalyses',
allowedJoinOperators: ['allowedJoinOperators'],
},
},
},
type: 'type',
}],
description: 'description',
selectedAnalysisMethods: ['selectedAnalysisMethods'],
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# 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
cfn_configured_table_props = cleanrooms.CfnConfiguredTableProps(
allowed_columns=["allowedColumns"],
analysis_method="analysisMethod",
name="name",
table_reference=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"
)]
)
)
),
# the properties below are optional
analysis_rules=[cleanrooms.CfnConfiguredTable.AnalysisRuleProperty(
policy=cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyProperty(
v1=cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyV1Property(
aggregation=cleanrooms.CfnConfiguredTable.AnalysisRuleAggregationProperty(
aggregate_columns=[cleanrooms.CfnConfiguredTable.AggregateColumnProperty(
column_names=["columnNames"],
function="function"
)],
dimension_columns=["dimensionColumns"],
join_columns=["joinColumns"],
output_constraints=[cleanrooms.CfnConfiguredTable.AggregationConstraintProperty(
column_name="columnName",
minimum=123,
type="type"
)],
scalar_functions=["scalarFunctions"],
# the properties below are optional
additional_analyses="additionalAnalyses",
allowed_join_operators=["allowedJoinOperators"],
join_required="joinRequired"
),
custom=cleanrooms.CfnConfiguredTable.AnalysisRuleCustomProperty(
allowed_analyses=["allowedAnalyses"],
# the properties below are optional
additional_analyses="additionalAnalyses",
aggregation_thresholds=[cleanrooms.CfnConfiguredTable.AggregationThresholdProperty(
allowed_aggregate_expression_type="allowedAggregateExpressionType",
identity_columns=["identityColumns"],
minimum_identity_count=123,
type="type",
# the properties below are optional
output_column_thresholds=[cleanrooms.CfnConfiguredTable.OutputColumnThresholdProperty(
minimum_identity_count=123,
output_column_name="outputColumnName"
)]
)],
allowed_analysis_providers=["allowedAnalysisProviders"],
comparison_controls=cleanrooms.CfnConfiguredTable.ComparisonControlsProperty(
allowed_column_comparison_columns=["allowedColumnComparisonColumns"],
allowed_literal_comparison_columns=["allowedLiteralComparisonColumns"]
),
differential_privacy=cleanrooms.CfnConfiguredTable.DifferentialPrivacyProperty(
columns=[cleanrooms.CfnConfiguredTable.DifferentialPrivacyColumnProperty(
name="name"
)]
),
disallowed_output_columns=["disallowedOutputColumns"]
),
list=cleanrooms.CfnConfiguredTable.AnalysisRuleListProperty(
join_columns=["joinColumns"],
list_columns=["listColumns"],
# the properties below are optional
additional_analyses="additionalAnalyses",
allowed_join_operators=["allowedJoinOperators"]
)
)
),
type="type"
)],
description="description",
selected_analysis_methods=["selectedAnalysisMethods"],
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnConfiguredTableProps cfnConfiguredTableProps = CfnConfiguredTableProps.builder()
.allowedColumns(List.of("allowedColumns"))
.analysisMethod("analysisMethod")
.name("name")
.tableReference(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())
// the properties below are optional
.analysisRules(List.of(AnalysisRuleProperty.builder()
.policy(ConfiguredTableAnalysisRulePolicyProperty.builder()
.v1(ConfiguredTableAnalysisRulePolicyV1Property.builder()
.aggregation(AnalysisRuleAggregationProperty.builder()
.aggregateColumns(List.of(AggregateColumnProperty.builder()
.columnNames(List.of("columnNames"))
.function("function")
.build()))
.dimensionColumns(List.of("dimensionColumns"))
.joinColumns(List.of("joinColumns"))
.outputConstraints(List.of(AggregationConstraintProperty.builder()
.columnName("columnName")
.minimum(123)
.type("type")
.build()))
.scalarFunctions(List.of("scalarFunctions"))
// the properties below are optional
.additionalAnalyses("additionalAnalyses")
.allowedJoinOperators(List.of("allowedJoinOperators"))
.joinRequired("joinRequired")
.build())
.custom(AnalysisRuleCustomProperty.builder()
.allowedAnalyses(List.of("allowedAnalyses"))
// the properties below are optional
.additionalAnalyses("additionalAnalyses")
.aggregationThresholds(List.of(AggregationThresholdProperty.builder()
.allowedAggregateExpressionType("allowedAggregateExpressionType")
.identityColumns(List.of("identityColumns"))
.minimumIdentityCount(123)
.type("type")
// the properties below are optional
.outputColumnThresholds(List.of(OutputColumnThresholdProperty.builder()
.minimumIdentityCount(123)
.outputColumnName("outputColumnName")
.build()))
.build()))
.allowedAnalysisProviders(List.of("allowedAnalysisProviders"))
.comparisonControls(ComparisonControlsProperty.builder()
.allowedColumnComparisonColumns(List.of("allowedColumnComparisonColumns"))
.allowedLiteralComparisonColumns(List.of("allowedLiteralComparisonColumns"))
.build())
.differentialPrivacy(DifferentialPrivacyProperty.builder()
.columns(List.of(DifferentialPrivacyColumnProperty.builder()
.name("name")
.build()))
.build())
.disallowedOutputColumns(List.of("disallowedOutputColumns"))
.build())
.list(AnalysisRuleListProperty.builder()
.joinColumns(List.of("joinColumns"))
.listColumns(List.of("listColumns"))
// the properties below are optional
.additionalAnalyses("additionalAnalyses")
.allowedJoinOperators(List.of("allowedJoinOperators"))
.build())
.build())
.build())
.type("type")
.build()))
.description("description")
.selectedAnalysisMethods(List.of("selectedAnalysisMethods"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.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 cfnConfiguredTableProps = new CfnConfiguredTableProps {
AllowedColumns = new [] { "allowedColumns" },
AnalysisMethod = "analysisMethod",
Name = "name",
TableReference = 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"
} }
}
}
},
// the properties below are optional
AnalysisRules = new [] { new AnalysisRuleProperty {
Policy = new ConfiguredTableAnalysisRulePolicyProperty {
V1 = new ConfiguredTableAnalysisRulePolicyV1Property {
Aggregation = new AnalysisRuleAggregationProperty {
AggregateColumns = new [] { new AggregateColumnProperty {
ColumnNames = new [] { "columnNames" },
Function = "function"
} },
DimensionColumns = new [] { "dimensionColumns" },
JoinColumns = new [] { "joinColumns" },
OutputConstraints = new [] { new AggregationConstraintProperty {
ColumnName = "columnName",
Minimum = 123,
Type = "type"
} },
ScalarFunctions = new [] { "scalarFunctions" },
// the properties below are optional
AdditionalAnalyses = "additionalAnalyses",
AllowedJoinOperators = new [] { "allowedJoinOperators" },
JoinRequired = "joinRequired"
},
Custom = new AnalysisRuleCustomProperty {
AllowedAnalyses = new [] { "allowedAnalyses" },
// the properties below are optional
AdditionalAnalyses = "additionalAnalyses",
AggregationThresholds = new [] { new AggregationThresholdProperty {
AllowedAggregateExpressionType = "allowedAggregateExpressionType",
IdentityColumns = new [] { "identityColumns" },
MinimumIdentityCount = 123,
Type = "type",
// the properties below are optional
OutputColumnThresholds = new [] { new OutputColumnThresholdProperty {
MinimumIdentityCount = 123,
OutputColumnName = "outputColumnName"
} }
} },
AllowedAnalysisProviders = new [] { "allowedAnalysisProviders" },
ComparisonControls = new ComparisonControlsProperty {
AllowedColumnComparisonColumns = new [] { "allowedColumnComparisonColumns" },
AllowedLiteralComparisonColumns = new [] { "allowedLiteralComparisonColumns" }
},
DifferentialPrivacy = new DifferentialPrivacyProperty {
Columns = new [] { new DifferentialPrivacyColumnProperty {
Name = "name"
} }
},
DisallowedOutputColumns = new [] { "disallowedOutputColumns" }
},
List = new AnalysisRuleListProperty {
JoinColumns = new [] { "joinColumns" },
ListColumns = new [] { "listColumns" },
// the properties below are optional
AdditionalAnalyses = "additionalAnalyses",
AllowedJoinOperators = new [] { "allowedJoinOperators" }
}
}
},
Type = "type"
} },
Description = "description",
SelectedAnalysisMethods = new [] { "selectedAnalysisMethods" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnConfiguredTableProps := &CfnConfiguredTableProps{
AllowedColumns: []*string{
jsii.String("allowedColumns"),
},
AnalysisMethod: jsii.String("analysisMethod"),
Name: jsii.String("name"),
TableReference: &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"),
},
},
},
},
},
// the properties below are optional
AnalysisRules: []interface{}{
&AnalysisRuleProperty{
Policy: &ConfiguredTableAnalysisRulePolicyProperty{
V1: &ConfiguredTableAnalysisRulePolicyV1Property{
Aggregation: &AnalysisRuleAggregationProperty{
AggregateColumns: []interface{}{
&AggregateColumnProperty{
ColumnNames: []*string{
jsii.String("columnNames"),
},
Function: jsii.String("function"),
},
},
DimensionColumns: []*string{
jsii.String("dimensionColumns"),
},
JoinColumns: []*string{
jsii.String("joinColumns"),
},
OutputConstraints: []interface{}{
&AggregationConstraintProperty{
ColumnName: jsii.String("columnName"),
Minimum: jsii.Number(123),
Type: jsii.String("type"),
},
},
ScalarFunctions: []*string{
jsii.String("scalarFunctions"),
},
// the properties below are optional
AdditionalAnalyses: jsii.String("additionalAnalyses"),
AllowedJoinOperators: []*string{
jsii.String("allowedJoinOperators"),
},
JoinRequired: jsii.String("joinRequired"),
},
Custom: &AnalysisRuleCustomProperty{
AllowedAnalyses: []*string{
jsii.String("allowedAnalyses"),
},
// the properties below are optional
AdditionalAnalyses: jsii.String("additionalAnalyses"),
AggregationThresholds: []interface{}{
&AggregationThresholdProperty{
AllowedAggregateExpressionType: jsii.String("allowedAggregateExpressionType"),
IdentityColumns: []*string{
jsii.String("identityColumns"),
},
MinimumIdentityCount: jsii.Number(123),
Type: jsii.String("type"),
// the properties below are optional
OutputColumnThresholds: []interface{}{
&OutputColumnThresholdProperty{
MinimumIdentityCount: jsii.Number(123),
OutputColumnName: jsii.String("outputColumnName"),
},
},
},
},
AllowedAnalysisProviders: []*string{
jsii.String("allowedAnalysisProviders"),
},
ComparisonControls: &ComparisonControlsProperty{
AllowedColumnComparisonColumns: []*string{
jsii.String("allowedColumnComparisonColumns"),
},
AllowedLiteralComparisonColumns: []*string{
jsii.String("allowedLiteralComparisonColumns"),
},
},
DifferentialPrivacy: &DifferentialPrivacyProperty{
Columns: []interface{}{
&DifferentialPrivacyColumnProperty{
Name: jsii.String("name"),
},
},
},
DisallowedOutputColumns: []*string{
jsii.String("disallowedOutputColumns"),
},
},
List: &AnalysisRuleListProperty{
JoinColumns: []*string{
jsii.String("joinColumns"),
},
ListColumns: []*string{
jsii.String("listColumns"),
},
// the properties below are optional
AdditionalAnalyses: jsii.String("additionalAnalyses"),
AllowedJoinOperators: []*string{
jsii.String("allowedJoinOperators"),
},
},
},
},
Type: jsii.String("type"),
},
},
Description: jsii.String("description"),
SelectedAnalysisMethods: []*string{
jsii.String("selectedAnalysisMethods"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
allowedColumnsstring[]allowed_columnstyping.List[str]allowedColumnsList<String>AllowedColumnsstring[]AllowedColumns*[]*string required #The columns within the underlying AWS Glue table that can be used within collaborations.
analysisMethodstringanalysis_methodstranalysisMethodStringAnalysisMethodstringAnalysisMethod*string required #The analysis method for the configured table.
DIRECT_QUERY allows SQL queries to be run directly on this table.
DIRECT_JOB allows PySpark jobs to be run directly on this table.
MULTIPLE allows both SQL queries and PySpark jobs to be run directly on this table.
analysisRulesoptionalIResolvable | IResolvable | CfnConfiguredTable.analysis_rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AnalysisRuleProperty]]]analysisRulesoptionalIResolvableAnalysisRulesoptionalIResolvableAnalysisRulesoptionalinterface{} #The analysis rule that was created for the configured table.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description for the configured table.
A name for the configured table.
selectedAnalysisMethodsoptionalstring[]selected_analysis_methodsoptionaltyping.List[str]selectedAnalysisMethodsoptionalList<String>SelectedAnalysisMethodsoptionalstring[]SelectedAnalysisMethodsoptional*[]*string #The selected analysis methods for the configured table.
tableReferenceIResolvable | CfnConfiguredTable.table_referencetyping.Union[IResolvable, TableReferenceProperty]tableReferenceIResolvableTableReferenceIResolvableTableReferenceinterface{} required #The table that this configured table represents.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #An optional label that you can assign to a resource when you create it.
Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.