@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
62 lines • 2.11 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.getTableOutput = exports.getTable = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get a specific table in a BigQuery dataset. For more information see
* the [official documentation](https://cloud.google.com/bigquery/docs)
* and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/get).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const table = gcp.bigquery.getTable({
* project: "my-project",
* datasetId: "my-bq-dataset",
* tableId: "my-table",
* });
* ```
*/
function getTable(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:bigquery/getTable:getTable", {
"datasetId": args.datasetId,
"project": args.project,
"tableId": args.tableId,
}, opts);
}
exports.getTable = getTable;
/**
* Get a specific table in a BigQuery dataset. For more information see
* the [official documentation](https://cloud.google.com/bigquery/docs)
* and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/get).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const table = gcp.bigquery.getTable({
* project: "my-project",
* datasetId: "my-bq-dataset",
* tableId: "my-table",
* });
* ```
*/
function getTableOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:bigquery/getTable:getTable", {
"datasetId": args.datasetId,
"project": args.project,
"tableId": args.tableId,
}, opts);
}
exports.getTableOutput = getTableOutput;
//# sourceMappingURL=getTable.js.map
;