@mapped/pulumi-astra
Version:
A Pulumi package for creating and managing astra cloud resources.
38 lines • 1.42 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.getPrivateLinksOutput = exports.getPrivateLinks = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* `astra.getPrivateLinks` provides a datasource that lists the private links in an Astra database.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as astra from "@pulumi/astra";
*
* const dev = pulumi.output(astra.getPrivateLinks({
* databaseId: "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
* datacenterId: "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
* }));
* ```
*/
function getPrivateLinks(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("astra:index/getPrivateLinks:getPrivateLinks", {
"databaseId": args.databaseId,
"datacenterId": args.datacenterId,
}, opts);
}
exports.getPrivateLinks = getPrivateLinks;
function getPrivateLinksOutput(args, opts) {
return pulumi.output(args).apply(a => getPrivateLinks(a, opts));
}
exports.getPrivateLinksOutput = getPrivateLinksOutput;
//# sourceMappingURL=getPrivateLinks.js.map