UNPKG

@pulumi/aws

Version:

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

54 lines 1.65 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.getVaultOutput = exports.getVault = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get information on an existing backup vault. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.backup.getVault({ * name: "example_backup_vault", * }); * ``` */ function getVault(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:backup/getVault:getVault", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getVault = getVault; /** * Use this data source to get information on an existing backup vault. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.backup.getVault({ * name: "example_backup_vault", * }); * ``` */ function getVaultOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:backup/getVault:getVault", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getVaultOutput = getVaultOutput; //# sourceMappingURL=getVault.js.map