UNPKG

@pulumi/aws

Version:

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

74 lines 2.41 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.getOpenZfsSnapshotOutput = exports.getOpenZfsSnapshot = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get information about an Amazon FSx for OpenZFS Snapshot for use when provisioning new Volumes. * * ## Example Usage * * ### Root volume Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.fsx.getOpenZfsSnapshot({ * mostRecent: true, * filters: [{ * name: "volume-id", * values: ["fsvol-073a32b6098a73feb"], * }], * }); * ``` */ function getOpenZfsSnapshot(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:fsx/getOpenZfsSnapshot:getOpenZfsSnapshot", { "filters": args.filters, "mostRecent": args.mostRecent, "name": args.name, "region": args.region, "snapshotIds": args.snapshotIds, "tags": args.tags, }, opts); } exports.getOpenZfsSnapshot = getOpenZfsSnapshot; /** * Use this data source to get information about an Amazon FSx for OpenZFS Snapshot for use when provisioning new Volumes. * * ## Example Usage * * ### Root volume Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.fsx.getOpenZfsSnapshot({ * mostRecent: true, * filters: [{ * name: "volume-id", * values: ["fsvol-073a32b6098a73feb"], * }], * }); * ``` */ function getOpenZfsSnapshotOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:fsx/getOpenZfsSnapshot:getOpenZfsSnapshot", { "filters": args.filters, "mostRecent": args.mostRecent, "name": args.name, "region": args.region, "snapshotIds": args.snapshotIds, "tags": args.tags, }, opts); } exports.getOpenZfsSnapshotOutput = getOpenZfsSnapshotOutput; //# sourceMappingURL=getOpenZfsSnapshot.js.map