@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
58 lines • 2.14 kB
JavaScript
// *** 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.getLocalDiskOutput = exports.getLocalDisk = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Retrieve information about a Storage Gateway local disk. The disk identifier is useful for adding the disk as a cache or upload buffer to a gateway.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.storagegateway.getLocalDisk({
* diskPath: testAwsVolumeAttachment.deviceName,
* gatewayArn: testAwsStoragegatewayGateway.arn,
* });
* ```
*/
function getLocalDisk(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:storagegateway/getLocalDisk:getLocalDisk", {
"diskNode": args.diskNode,
"diskPath": args.diskPath,
"gatewayArn": args.gatewayArn,
"region": args.region,
}, opts);
}
exports.getLocalDisk = getLocalDisk;
/**
* Retrieve information about a Storage Gateway local disk. The disk identifier is useful for adding the disk as a cache or upload buffer to a gateway.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.storagegateway.getLocalDisk({
* diskPath: testAwsVolumeAttachment.deviceName,
* gatewayArn: testAwsStoragegatewayGateway.arn,
* });
* ```
*/
function getLocalDiskOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:storagegateway/getLocalDisk:getLocalDisk", {
"diskNode": args.diskNode,
"diskPath": args.diskPath,
"gatewayArn": args.gatewayArn,
"region": args.region,
}, opts);
}
exports.getLocalDiskOutput = getLocalDiskOutput;
//# sourceMappingURL=getLocalDisk.js.map
;