WorkingStorageArgs

data class WorkingStorageArgs(val diskId: Output<String>? = null, val gatewayArn: Output<String>? = null) : ConvertibleToJava<WorkingStorageArgs>

Manages an AWS Storage Gateway working storage.

NOTE: The Storage Gateway API provides no method to remove a working storage disk. Destroying this resource does not perform any Storage Gateway actions.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.WorkingStorage;
import com.pulumi.aws.storagegateway.WorkingStorageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new WorkingStorage("example", WorkingStorageArgs.builder()
.diskId(data.aws_storagegateway_local_disk().example().id())
.gatewayArn(aws_storagegateway_gateway.example().arn())
.build());
}
}

Import

aws_storagegateway_working_storage can be imported by using the gateway Amazon Resource Name (ARN) and local disk identifier separated with a colon (:), e.g.,

$ pulumi import aws:storagegateway/workingStorage:WorkingStorage example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678:pci-0000:03:00.0-scsi-0:0:0:0

Constructors

Link copied to clipboard
constructor(diskId: Output<String>? = null, gatewayArn: Output<String>? = null)

Properties

Link copied to clipboard
val diskId: Output<String>? = null

Local disk identifier. For example, pci-0000:03:00.0-scsi-0:0:0:0.

Link copied to clipboard
val gatewayArn: Output<String>? = null

The Amazon Resource Name (ARN) of the gateway.

Functions

Link copied to clipboard
open override fun toJava(): WorkingStorageArgs