@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
46 lines • 2.29 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.getDatabaseMetricsCredentialsOutput = exports.getDatabaseMetricsCredentials = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides access to the metrics credentials for DigitalOcean database clusters. These credentials are account-wide and can be used to access metrics for any database cluster in the account.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const example = digitalocean.getDatabaseMetricsCredentials({});
* export const metricsUsername = example.then(example => example.username);
* export const metricsPassword = example.then(example => example.password);
* ```
*/
function getDatabaseMetricsCredentials(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("digitalocean:index/getDatabaseMetricsCredentials:getDatabaseMetricsCredentials", {}, opts);
}
exports.getDatabaseMetricsCredentials = getDatabaseMetricsCredentials;
/**
* Provides access to the metrics credentials for DigitalOcean database clusters. These credentials are account-wide and can be used to access metrics for any database cluster in the account.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const example = digitalocean.getDatabaseMetricsCredentials({});
* export const metricsUsername = example.then(example => example.username);
* export const metricsPassword = example.then(example => example.password);
* ```
*/
function getDatabaseMetricsCredentialsOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("digitalocean:index/getDatabaseMetricsCredentials:getDatabaseMetricsCredentials", {}, opts);
}
exports.getDatabaseMetricsCredentialsOutput = getDatabaseMetricsCredentialsOutput;
//# sourceMappingURL=getDatabaseMetricsCredentials.js.map