@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
58 lines • 1.88 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.getBackupRunOutput = exports.getBackupRun = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about a Cloud SQL instance backup run.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const backup = gcp.sql.getBackupRun({
* instance: main.name,
* mostRecent: true,
* });
* ```
*/
function getBackupRun(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:sql/getBackupRun:getBackupRun", {
"backupId": args.backupId,
"instance": args.instance,
"mostRecent": args.mostRecent,
"project": args.project,
}, opts);
}
exports.getBackupRun = getBackupRun;
/**
* Use this data source to get information about a Cloud SQL instance backup run.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const backup = gcp.sql.getBackupRun({
* instance: main.name,
* mostRecent: true,
* });
* ```
*/
function getBackupRunOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:sql/getBackupRun:getBackupRun", {
"backupId": args.backupId,
"instance": args.instance,
"mostRecent": args.mostRecent,
"project": args.project,
}, opts);
}
exports.getBackupRunOutput = getBackupRunOutput;
//# sourceMappingURL=getBackupRun.js.map