ConfiguredTableArgs

data class ConfiguredTableArgs(val allowedColumns: Output<List<String>>? = null, val analysisMethod: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val tableReference: Output<ConfiguredTableTableReferenceArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ConfiguredTableArgs>

Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog.

Example Usage

Configured table with tags

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const testConfiguredTable = new aws.cleanrooms.ConfiguredTable("test_configured_table", {
name: "pulumi-example-table",
description: "I made this table with Pulumi!",
analysisMethod: "DIRECT_QUERY",
allowedColumns: [
"column1",
"column2",
"column3",
],
tableReference: {
databaseName: "example_database",
tableName: "example_table",
},
tags: {
Project: "Pulumi",
},
});
import pulumi
import pulumi_aws as aws
test_configured_table = aws.cleanrooms.ConfiguredTable("test_configured_table",
name="pulumi-example-table",
description="I made this table with Pulumi!",
analysis_method="DIRECT_QUERY",
allowed_columns=[
"column1",
"column2",
"column3",
],
table_reference={
"database_name": "example_database",
"table_name": "example_table",
},
tags={
"Project": "Pulumi",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var testConfiguredTable = new Aws.CleanRooms.ConfiguredTable("test_configured_table", new()
{
Name = "pulumi-example-table",
Description = "I made this table with Pulumi!",
AnalysisMethod = "DIRECT_QUERY",
AllowedColumns = new[]
{
"column1",
"column2",
"column3",
},
TableReference = new Aws.CleanRooms.Inputs.ConfiguredTableTableReferenceArgs
{
DatabaseName = "example_database",
TableName = "example_table",
},
Tags =
{
{ "Project", "Pulumi" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cleanrooms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cleanrooms.NewConfiguredTable(ctx, "test_configured_table", &cleanrooms.ConfiguredTableArgs{
Name: pulumi.String("pulumi-example-table"),
Description: pulumi.String("I made this table with Pulumi!"),
AnalysisMethod: pulumi.String("DIRECT_QUERY"),
AllowedColumns: pulumi.StringArray{
pulumi.String("column1"),
pulumi.String("column2"),
pulumi.String("column3"),
},
TableReference: &cleanrooms.ConfiguredTableTableReferenceArgs{
DatabaseName: pulumi.String("example_database"),
TableName: pulumi.String("example_table"),
},
Tags: pulumi.StringMap{
"Project": pulumi.String("Pulumi"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cleanrooms.ConfiguredTable;
import com.pulumi.aws.cleanrooms.ConfiguredTableArgs;
import com.pulumi.aws.cleanrooms.inputs.ConfiguredTableTableReferenceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testConfiguredTable = new ConfiguredTable("testConfiguredTable", ConfiguredTableArgs.builder()
.name("pulumi-example-table")
.description("I made this table with Pulumi!")
.analysisMethod("DIRECT_QUERY")
.allowedColumns(
"column1",
"column2",
"column3")
.tableReference(ConfiguredTableTableReferenceArgs.builder()
.databaseName("example_database")
.tableName("example_table")
.build())
.tags(Map.of("Project", "Pulumi"))
.build());
}
}
resources:
testConfiguredTable:
type: aws:cleanrooms:ConfiguredTable
name: test_configured_table
properties:
name: pulumi-example-table
description: I made this table with Pulumi!
analysisMethod: DIRECT_QUERY
allowedColumns:
- column1
- column2
- column3
tableReference:
databaseName: example_database
tableName: example_table
tags:
Project: Pulumi

Import

Using pulumi import, import aws_cleanrooms_configured_table using the id. For example:

$ pulumi import aws:cleanrooms/configuredTable:ConfiguredTable table 1234abcd-12ab-34cd-56ef-1234567890ab

Constructors

Link copied to clipboard
constructor(allowedColumns: Output<List<String>>? = null, analysisMethod: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, tableReference: Output<ConfiguredTableTableReferenceArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val allowedColumns: Output<List<String>>? = null

The columns of the references table which will be included in the configured table.

Link copied to clipboard
val analysisMethod: Output<String>? = null

The analysis method for the configured table. The only valid value is currently DIRECT_QUERY.

Link copied to clipboard
val description: Output<String>? = null

A description for the configured table.

Link copied to clipboard
val name: Output<String>? = null

The name of the configured table.

Link copied to clipboard

A reference to the AWS Glue table which will be used to create the configured table.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key value pairs which tag the configured table.

Functions

Link copied to clipboard
open override fun toJava(): ConfiguredTableArgs