UNPKG

@pulumi/aws

Version:

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

72 lines 2.27 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.getFileSystemOutput = exports.getFileSystem = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides information about an Elastic File System (EFS) File System. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const fileSystemId = config.get("fileSystemId") || ""; * const byId = aws.efs.getFileSystem({ * fileSystemId: fileSystemId, * }); * const byTag = aws.efs.getFileSystem({ * tags: { * Environment: "dev", * }, * }); * ``` */ function getFileSystem(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:efs/getFileSystem:getFileSystem", { "creationToken": args.creationToken, "fileSystemId": args.fileSystemId, "region": args.region, "tags": args.tags, }, opts); } exports.getFileSystem = getFileSystem; /** * Provides information about an Elastic File System (EFS) File System. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const fileSystemId = config.get("fileSystemId") || ""; * const byId = aws.efs.getFileSystem({ * fileSystemId: fileSystemId, * }); * const byTag = aws.efs.getFileSystem({ * tags: { * Environment: "dev", * }, * }); * ``` */ function getFileSystemOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:efs/getFileSystem:getFileSystem", { "creationToken": args.creationToken, "fileSystemId": args.fileSystemId, "region": args.region, "tags": args.tags, }, opts); } exports.getFileSystemOutput = getFileSystemOutput; //# sourceMappingURL=getFileSystem.js.map