UNPKG

@mapped/pulumi-astra

Version:

A Pulumi package for creating and managing astra cloud resources.

36 lines 1.69 kB
"use strict"; // *** 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.getSecureConnectBundleUrlOutput = exports.getSecureConnectBundleUrl = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `astra.getSecureConnectBundleUrl` provides a datasource that generates a temporary secure connect bundle URL. This URL lasts five minutes. Secure connect bundles are used to connect to Astra using cql cassandra drivers. See the [docs](https://docs.datastax.com/en/astra/docs/connecting-to-database.html) for more information on how to connect. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as astra from "@pulumi/astra"; * * const dev = pulumi.output(astra.getSecureConnectBundleUrl({ * databaseId: "f9f4b1e0-4c05-451e-9bba-d631295a7f73", * })); * ``` */ function getSecureConnectBundleUrl(args, opts) { if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("astra:index/getSecureConnectBundleUrl:getSecureConnectBundleUrl", { "databaseId": args.databaseId, }, opts); } exports.getSecureConnectBundleUrl = getSecureConnectBundleUrl; function getSecureConnectBundleUrlOutput(args, opts) { return pulumi.output(args).apply(a => getSecureConnectBundleUrl(a, opts)); } exports.getSecureConnectBundleUrlOutput = getSecureConnectBundleUrlOutput; //# sourceMappingURL=getSecureConnectBundleUrl.js.map