Upload Buffer Args
data class UploadBufferArgs(val diskId: Output<String>? = null, val diskPath: Output<String>? = null, val gatewayArn: Output<String>? = null) : ConvertibleToJava<UploadBufferArgs>
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());
}
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard