UploadBuffer

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

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.StorageGateway.UploadBuffer("example", new Aws.StorageGateway.UploadBufferArgs
        {
            DiskId = data.Aws_storagegateway_local_disk.Example.Id,
            GatewayArn = aws_storagegateway_gateway.Example.Arn,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/storagegateway"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := storagegateway.NewUploadBuffer(ctx, "example", &storagegateway.UploadBufferArgs{
            DiskId:     pulumi.String(data.Aws_storagegateway_local_disk.Example.Id),
            GatewayArn: pulumi.String(aws_storagegateway_gateway.Example.Arn),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.storagegateway.UploadBuffer("example",
    disk_id=data["aws_storagegateway_local_disk"]["example"]["id"],
    gateway_arn=aws_storagegateway_gateway["example"]["arn"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.storagegateway.UploadBuffer("example", {
    diskId: aws_storagegateway_local_disk_example.id,
    gatewayArn: aws_storagegateway_gateway_example.arn,
});

Create a UploadBuffer Resource

def UploadBuffer(resource_name, opts=None, disk_id=None, gateway_arn=None, __props__=None);
func NewUploadBuffer(ctx *Context, name string, args UploadBufferArgs, opts ...ResourceOption) (*UploadBuffer, error)
name string
The unique name of the resource.
args UploadBufferArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args UploadBufferArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args UploadBufferArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

UploadBuffer Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The UploadBuffer resource accepts the following input properties:

DiskId string

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

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

DiskId string

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

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

diskId string

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

gatewayArn string

The Amazon Resource Name (ARN) of the gateway.

disk_id str

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

gateway_arn str

The Amazon Resource Name (ARN) of the gateway.

Outputs

All input properties are implicitly available as output properties. Additionally, the UploadBuffer resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing UploadBuffer Resource

Get an existing UploadBuffer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: UploadBufferState, opts?: CustomResourceOptions): UploadBuffer
static get(resource_name, id, opts=None, disk_id=None, gateway_arn=None, __props__=None);
func GetUploadBuffer(ctx *Context, name string, id IDInput, state *UploadBufferState, opts ...ResourceOption) (*UploadBuffer, error)
public static UploadBuffer Get(string name, Input<string> id, UploadBufferState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

DiskId string

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

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

DiskId string

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

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

diskId string

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

gatewayArn string

The Amazon Resource Name (ARN) of the gateway.

disk_id str

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

gateway_arn str

The Amazon Resource Name (ARN) of the gateway.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.