@mapped/pulumi-astra
Version:
A Pulumi package for creating and managing astra cloud resources.
38 lines • 1.38 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getKeyspaceOutput = exports.getKeyspace = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* `astra.Keyspace` provides a datasource for a particular keyspace. See `astra.getKeyspaces` if you're looking to fetch all the keyspaces for a particular database.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as astra from "@pulumi/astra";
*
* const dev = pulumi.output(astra.getKeyspace({
* databaseId: "f9f4b1e0-4c05-451e-9bba-d631295a7f73",
* name: "puppies",
* }));
* ```
*/
function getKeyspace(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("astra:index/getKeyspace:getKeyspace", {
"databaseId": args.databaseId,
"name": args.name,
}, opts);
}
exports.getKeyspace = getKeyspace;
function getKeyspaceOutput(args, opts) {
return pulumi.output(args).apply(a => getKeyspace(a, opts));
}
exports.getKeyspaceOutput = getKeyspaceOutput;
//# sourceMappingURL=getKeyspace.js.map