@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
128 lines • 5.07 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfiguredTable = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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
*
* ```typescript
* 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
*
* ### Identity Schema
*
* #### Required
*
* * `id` - (String) ID of the cleanrooms configured table.
*
* #### Optional
*
* * `account_id` (String) AWS Account where this resource is managed.
*
* * `region` (String) Region where this resource is managed.
*
* Using `pulumi import`, import `aws_cleanrooms_configured_table` using the `id`. For example:
*
* console
*
* % pulumi import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab
*/
class ConfiguredTable extends pulumi.CustomResource {
/**
* Get an existing ConfiguredTable resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new ConfiguredTable(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of ConfiguredTable. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === ConfiguredTable.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["allowedColumns"] = state?.allowedColumns;
resourceInputs["analysisMethod"] = state?.analysisMethod;
resourceInputs["arn"] = state?.arn;
resourceInputs["createTime"] = state?.createTime;
resourceInputs["description"] = state?.description;
resourceInputs["name"] = state?.name;
resourceInputs["region"] = state?.region;
resourceInputs["tableReference"] = state?.tableReference;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
resourceInputs["updateTime"] = state?.updateTime;
}
else {
const args = argsOrState;
if (args?.allowedColumns === undefined && !opts.urn) {
throw new Error("Missing required property 'allowedColumns'");
}
if (args?.analysisMethod === undefined && !opts.urn) {
throw new Error("Missing required property 'analysisMethod'");
}
if (args?.tableReference === undefined && !opts.urn) {
throw new Error("Missing required property 'tableReference'");
}
resourceInputs["allowedColumns"] = args?.allowedColumns;
resourceInputs["analysisMethod"] = args?.analysisMethod;
resourceInputs["description"] = args?.description;
resourceInputs["name"] = args?.name;
resourceInputs["region"] = args?.region;
resourceInputs["tableReference"] = args?.tableReference;
resourceInputs["tags"] = args?.tags;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["createTime"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
resourceInputs["updateTime"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ConfiguredTable.__pulumiType, name, resourceInputs, opts);
}
}
exports.ConfiguredTable = ConfiguredTable;
/** @internal */
ConfiguredTable.__pulumiType = 'aws:cleanrooms/configuredTable:ConfiguredTable';
//# sourceMappingURL=configuredTable.js.map