UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

56 lines 1.8 kB
"use strict"; // *** 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.getInstanceOutput = exports.getInstance = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get information about an RDS instance * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const database = aws.rds.getInstance({ * dbInstanceIdentifier: "my-test-database", * }); * ``` */ function getInstance(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:rds/getInstance:getInstance", { "dbInstanceIdentifier": args.dbInstanceIdentifier, "region": args.region, "tags": args.tags, }, opts); } exports.getInstance = getInstance; /** * Use this data source to get information about an RDS instance * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const database = aws.rds.getInstance({ * dbInstanceIdentifier: "my-test-database", * }); * ``` */ function getInstanceOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:rds/getInstance:getInstance", { "dbInstanceIdentifier": args.dbInstanceIdentifier, "region": args.region, "tags": args.tags, }, opts); } exports.getInstanceOutput = getInstanceOutput; //# sourceMappingURL=getInstance.js.map