UploadBuffer

class UploadBuffer : KotlinCustomResource

Manages an AWS Storage Gateway upload buffer.

NOTE: The Storage Gateway API provides no method to remove an upload buffer disk. Destroying this resource does not perform any Storage Gateway actions.

Example Usage

Cached and VTL Gateway Type

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.StoragegatewayFunctions;
import com.pulumi.aws.storagegateway.inputs.GetLocalDiskArgs;
import com.pulumi.aws.storagegateway.UploadBuffer;
import com.pulumi.aws.storagegateway.UploadBufferArgs;
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) {
final var testLocalDisk = StoragegatewayFunctions.getLocalDisk(GetLocalDiskArgs.builder()
.diskNode(aws_volume_attachment.test().device_name())
.gatewayArn(aws_storagegateway_gateway.test().arn())
.build());
var testUploadBuffer = new UploadBuffer("testUploadBuffer", UploadBufferArgs.builder()
.diskPath(testLocalDisk.applyValue(getLocalDiskResult -> getLocalDiskResult.diskPath()))
.gatewayArn(aws_storagegateway_gateway.test().arn())
.build());
}
}

Stored Gateway Type

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.StoragegatewayFunctions;
import com.pulumi.aws.storagegateway.inputs.GetLocalDiskArgs;
import com.pulumi.aws.storagegateway.UploadBuffer;
import com.pulumi.aws.storagegateway.UploadBufferArgs;
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) {
final var test = StoragegatewayFunctions.getLocalDisk(GetLocalDiskArgs.builder()
.diskNode(aws_volume_attachment.test().device_name())
.gatewayArn(aws_storagegateway_gateway.test().arn())
.build());
var example = new UploadBuffer("example", UploadBufferArgs.builder()
.diskId(data.aws_storagegateway_local_disk().example().id())
.gatewayArn(aws_storagegateway_gateway.example().arn())
.build());
}
}

Import

aws_storagegateway_upload_buffer 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/uploadBuffer:UploadBuffer example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678:pci-0000:03:00.0-scsi-0:0:0:0

Properties

Link copied to clipboard
val diskId: Output<String>

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

Link copied to clipboard
val diskPath: Output<String>

Local disk path. For example, /dev/nvme1n1.

Link copied to clipboard
val gatewayArn: Output<String>

The Amazon Resource Name (ARN) of the gateway.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>