AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

StoredIscsiVolume

Manages an AWS Storage Gateway stored iSCSI volume.

NOTE: The gateway must have a working storage added (e.g. via the aws.storagegateway.WorkingStorage resource) before the volume is operational to clients, however the Storage Gateway API will allow volume creation without error in that case and return volume status as WORKING STORAGE NOT CONFIGURED.

Example Usage

Create Empty Stored iSCSI Volume

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.StorageGateway.StoredIscsiVolume("example", new Aws.StorageGateway.StoredIscsiVolumeArgs
        {
            GatewayArn = aws_storagegateway_cache.Example.Gateway_arn,
            NetworkInterfaceId = aws_instance.Example.Private_ip,
            TargetName = "example",
            PreserveExistingData = false,
            DiskId = data.Aws_storagegateway_local_disk.Test.Id,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storagegateway.NewStoredIscsiVolume(ctx, "example", &storagegateway.StoredIscsiVolumeArgs{
			GatewayArn:           pulumi.Any(aws_storagegateway_cache.Example.Gateway_arn),
			NetworkInterfaceId:   pulumi.Any(aws_instance.Example.Private_ip),
			TargetName:           pulumi.String("example"),
			PreserveExistingData: pulumi.Bool(false),
			DiskId:               pulumi.Any(data.Aws_storagegateway_local_disk.Test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new StoredIscsiVolume("example", StoredIscsiVolumeArgs.builder()        
            .gatewayArn(aws_storagegateway_cache.example().gateway_arn())
            .networkInterfaceId(aws_instance.example().private_ip())
            .targetName("example")
            .preserveExistingData(false)
            .diskId(data.aws_storagegateway_local_disk().test().id())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.storagegateway.StoredIscsiVolume("example",
    gateway_arn=aws_storagegateway_cache["example"]["gateway_arn"],
    network_interface_id=aws_instance["example"]["private_ip"],
    target_name="example",
    preserve_existing_data=False,
    disk_id=data["aws_storagegateway_local_disk"]["test"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.storagegateway.StoredIscsiVolume("example", {
    gatewayArn: aws_storagegateway_cache.example.gateway_arn,
    networkInterfaceId: aws_instance.example.private_ip,
    targetName: "example",
    preserveExistingData: false,
    diskId: data.aws_storagegateway_local_disk.test.id,
});
resources:
  example:
    type: aws:storagegateway:StoredIscsiVolume
    properties:
      gatewayArn: ${aws_storagegateway_cache.example.gateway_arn}
      networkInterfaceId: ${aws_instance.example.private_ip}
      targetName: example
      preserveExistingData: false
      diskId: ${data.aws_storagegateway_local_disk.test.id}

Create Stored iSCSI Volume From Snapshot

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.StorageGateway.StoredIscsiVolume("example", new Aws.StorageGateway.StoredIscsiVolumeArgs
        {
            GatewayArn = aws_storagegateway_cache.Example.Gateway_arn,
            NetworkInterfaceId = aws_instance.Example.Private_ip,
            SnapshotId = aws_ebs_snapshot.Example.Id,
            TargetName = "example",
            PreserveExistingData = false,
            DiskId = data.Aws_storagegateway_local_disk.Test.Id,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storagegateway.NewStoredIscsiVolume(ctx, "example", &storagegateway.StoredIscsiVolumeArgs{
			GatewayArn:           pulumi.Any(aws_storagegateway_cache.Example.Gateway_arn),
			NetworkInterfaceId:   pulumi.Any(aws_instance.Example.Private_ip),
			SnapshotId:           pulumi.Any(aws_ebs_snapshot.Example.Id),
			TargetName:           pulumi.String("example"),
			PreserveExistingData: pulumi.Bool(false),
			DiskId:               pulumi.Any(data.Aws_storagegateway_local_disk.Test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new StoredIscsiVolume("example", StoredIscsiVolumeArgs.builder()        
            .gatewayArn(aws_storagegateway_cache.example().gateway_arn())
            .networkInterfaceId(aws_instance.example().private_ip())
            .snapshotId(aws_ebs_snapshot.example().id())
            .targetName("example")
            .preserveExistingData(false)
            .diskId(data.aws_storagegateway_local_disk().test().id())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.storagegateway.StoredIscsiVolume("example",
    gateway_arn=aws_storagegateway_cache["example"]["gateway_arn"],
    network_interface_id=aws_instance["example"]["private_ip"],
    snapshot_id=aws_ebs_snapshot["example"]["id"],
    target_name="example",
    preserve_existing_data=False,
    disk_id=data["aws_storagegateway_local_disk"]["test"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.storagegateway.StoredIscsiVolume("example", {
    gatewayArn: aws_storagegateway_cache.example.gateway_arn,
    networkInterfaceId: aws_instance.example.private_ip,
    snapshotId: aws_ebs_snapshot.example.id,
    targetName: "example",
    preserveExistingData: false,
    diskId: data.aws_storagegateway_local_disk.test.id,
});
resources:
  example:
    type: aws:storagegateway:StoredIscsiVolume
    properties:
      gatewayArn: ${aws_storagegateway_cache.example.gateway_arn}
      networkInterfaceId: ${aws_instance.example.private_ip}
      snapshotId: ${aws_ebs_snapshot.example.id}
      targetName: example
      preserveExistingData: false
      diskId: ${data.aws_storagegateway_local_disk.test.id}

Create a StoredIscsiVolume Resource

new StoredIscsiVolume(name: string, args: StoredIscsiVolumeArgs, opts?: CustomResourceOptions);
@overload
def StoredIscsiVolume(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      disk_id: Optional[str] = None,
                      gateway_arn: Optional[str] = None,
                      kms_encrypted: Optional[bool] = None,
                      kms_key: Optional[str] = None,
                      network_interface_id: Optional[str] = None,
                      preserve_existing_data: Optional[bool] = None,
                      snapshot_id: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      target_name: Optional[str] = None)
@overload
def StoredIscsiVolume(resource_name: str,
                      args: StoredIscsiVolumeArgs,
                      opts: Optional[ResourceOptions] = None)
func NewStoredIscsiVolume(ctx *Context, name string, args StoredIscsiVolumeArgs, opts ...ResourceOption) (*StoredIscsiVolume, error)
public StoredIscsiVolume(string name, StoredIscsiVolumeArgs args, CustomResourceOptions? opts = null)
public StoredIscsiVolume(String name, StoredIscsiVolumeArgs args)
public StoredIscsiVolume(String name, StoredIscsiVolumeArgs args, CustomResourceOptions options)
type: aws:storagegateway:StoredIscsiVolume
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args StoredIscsiVolumeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args StoredIscsiVolumeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args StoredIscsiVolumeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args StoredIscsiVolumeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args StoredIscsiVolumeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

StoredIscsiVolume Resource Properties

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

Inputs

The StoredIscsiVolume resource accepts the following input properties:

DiskId string

The unique identifier for the gateway local disk that is configured as a stored volume.

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

NetworkInterfaceId string

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

PreserveExistingData bool

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

TargetName string

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

KmsEncrypted bool

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

KmsKey string

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

SnapshotId string

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

Tags Dictionary<string, string>

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

DiskId string

The unique identifier for the gateway local disk that is configured as a stored volume.

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

NetworkInterfaceId string

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

PreserveExistingData bool

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

TargetName string

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

KmsEncrypted bool

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

KmsKey string

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

SnapshotId string

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

Tags map[string]string

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

diskId String

The unique identifier for the gateway local disk that is configured as a stored volume.

gatewayArn String

The Amazon Resource Name (ARN) of the gateway.

networkInterfaceId String

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

preserveExistingData Boolean

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

targetName String

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

kmsEncrypted Boolean

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kmsKey String

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

snapshotId String

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags Map<String,String>

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

diskId string

The unique identifier for the gateway local disk that is configured as a stored volume.

gatewayArn string

The Amazon Resource Name (ARN) of the gateway.

networkInterfaceId string

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

preserveExistingData boolean

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

targetName string

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

kmsEncrypted boolean

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kmsKey string

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

snapshotId string

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags {[key: string]: string}

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

disk_id str

The unique identifier for the gateway local disk that is configured as a stored volume.

gateway_arn str

The Amazon Resource Name (ARN) of the gateway.

network_interface_id str

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

preserve_existing_data bool

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

target_name str

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

kms_encrypted bool

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kms_key str

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

snapshot_id str

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags Mapping[str, str]

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

diskId String

The unique identifier for the gateway local disk that is configured as a stored volume.

gatewayArn String

The Amazon Resource Name (ARN) of the gateway.

networkInterfaceId String

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

preserveExistingData Boolean

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

targetName String

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

kmsEncrypted Boolean

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kmsKey String

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

snapshotId String

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags Map<String>

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

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

Arn string

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

ChapEnabled bool

Whether mutual CHAP is enabled for the iSCSI target.

Id string

The provider-assigned unique ID for this managed resource.

LunNumber int

Logical disk number.

NetworkInterfacePort int

The port used to communicate with iSCSI targets.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TargetArn string

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

VolumeAttachmentStatus string

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

VolumeId string

Volume ID, e.g. vol-12345678.

VolumeSizeInBytes int

The size of the data stored on the volume in bytes.

VolumeStatus string

indicates the state of the storage volume.

VolumeType string

indicates the type of the volume.

Arn string

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

ChapEnabled bool

Whether mutual CHAP is enabled for the iSCSI target.

Id string

The provider-assigned unique ID for this managed resource.

LunNumber int

Logical disk number.

NetworkInterfacePort int

The port used to communicate with iSCSI targets.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TargetArn string

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

VolumeAttachmentStatus string

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

VolumeId string

Volume ID, e.g. vol-12345678.

VolumeSizeInBytes int

The size of the data stored on the volume in bytes.

VolumeStatus string

indicates the state of the storage volume.

VolumeType string

indicates the type of the volume.

arn String

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chapEnabled Boolean

Whether mutual CHAP is enabled for the iSCSI target.

id String

The provider-assigned unique ID for this managed resource.

lunNumber Integer

Logical disk number.

networkInterfacePort Integer

The port used to communicate with iSCSI targets.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetArn String

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

volumeAttachmentStatus String

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volumeId String

Volume ID, e.g. vol-12345678.

volumeSizeInBytes Integer

The size of the data stored on the volume in bytes.

volumeStatus String

indicates the state of the storage volume.

volumeType String

indicates the type of the volume.

arn string

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chapEnabled boolean

Whether mutual CHAP is enabled for the iSCSI target.

id string

The provider-assigned unique ID for this managed resource.

lunNumber number

Logical disk number.

networkInterfacePort number

The port used to communicate with iSCSI targets.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetArn string

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

volumeAttachmentStatus string

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volumeId string

Volume ID, e.g. vol-12345678.

volumeSizeInBytes number

The size of the data stored on the volume in bytes.

volumeStatus string

indicates the state of the storage volume.

volumeType string

indicates the type of the volume.

arn str

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chap_enabled bool

Whether mutual CHAP is enabled for the iSCSI target.

id str

The provider-assigned unique ID for this managed resource.

lun_number int

Logical disk number.

network_interface_port int

The port used to communicate with iSCSI targets.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

target_arn str

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

volume_attachment_status str

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volume_id str

Volume ID, e.g. vol-12345678.

volume_size_in_bytes int

The size of the data stored on the volume in bytes.

volume_status str

indicates the state of the storage volume.

volume_type str

indicates the type of the volume.

arn String

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chapEnabled Boolean

Whether mutual CHAP is enabled for the iSCSI target.

id String

The provider-assigned unique ID for this managed resource.

lunNumber Number

Logical disk number.

networkInterfacePort Number

The port used to communicate with iSCSI targets.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetArn String

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

volumeAttachmentStatus String

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volumeId String

Volume ID, e.g. vol-12345678.

volumeSizeInBytes Number

The size of the data stored on the volume in bytes.

volumeStatus String

indicates the state of the storage volume.

volumeType String

indicates the type of the volume.

Look up an Existing StoredIscsiVolume Resource

Get an existing StoredIscsiVolume 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?: StoredIscsiVolumeState, opts?: CustomResourceOptions): StoredIscsiVolume
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        chap_enabled: Optional[bool] = None,
        disk_id: Optional[str] = None,
        gateway_arn: Optional[str] = None,
        kms_encrypted: Optional[bool] = None,
        kms_key: Optional[str] = None,
        lun_number: Optional[int] = None,
        network_interface_id: Optional[str] = None,
        network_interface_port: Optional[int] = None,
        preserve_existing_data: Optional[bool] = None,
        snapshot_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        target_arn: Optional[str] = None,
        target_name: Optional[str] = None,
        volume_attachment_status: Optional[str] = None,
        volume_id: Optional[str] = None,
        volume_size_in_bytes: Optional[int] = None,
        volume_status: Optional[str] = None,
        volume_type: Optional[str] = None) -> StoredIscsiVolume
func GetStoredIscsiVolume(ctx *Context, name string, id IDInput, state *StoredIscsiVolumeState, opts ...ResourceOption) (*StoredIscsiVolume, error)
public static StoredIscsiVolume Get(string name, Input<string> id, StoredIscsiVolumeState? state, CustomResourceOptions? opts = null)
public static StoredIscsiVolume get(String name, Output<String> id, StoredIscsiVolumeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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:
Arn string

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

ChapEnabled bool

Whether mutual CHAP is enabled for the iSCSI target.

DiskId string

The unique identifier for the gateway local disk that is configured as a stored volume.

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

KmsEncrypted bool

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

KmsKey string

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

LunNumber int

Logical disk number.

NetworkInterfaceId string

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

NetworkInterfacePort int

The port used to communicate with iSCSI targets.

PreserveExistingData bool

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

SnapshotId string

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

Tags Dictionary<string, string>

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TargetArn string

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

TargetName string

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

VolumeAttachmentStatus string

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

VolumeId string

Volume ID, e.g. vol-12345678.

VolumeSizeInBytes int

The size of the data stored on the volume in bytes.

VolumeStatus string

indicates the state of the storage volume.

VolumeType string

indicates the type of the volume.

Arn string

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

ChapEnabled bool

Whether mutual CHAP is enabled for the iSCSI target.

DiskId string

The unique identifier for the gateway local disk that is configured as a stored volume.

GatewayArn string

The Amazon Resource Name (ARN) of the gateway.

KmsEncrypted bool

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

KmsKey string

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

LunNumber int

Logical disk number.

NetworkInterfaceId string

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

NetworkInterfacePort int

The port used to communicate with iSCSI targets.

PreserveExistingData bool

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

SnapshotId string

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

Tags map[string]string

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TargetArn string

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

TargetName string

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

VolumeAttachmentStatus string

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

VolumeId string

Volume ID, e.g. vol-12345678.

VolumeSizeInBytes int

The size of the data stored on the volume in bytes.

VolumeStatus string

indicates the state of the storage volume.

VolumeType string

indicates the type of the volume.

arn String

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chapEnabled Boolean

Whether mutual CHAP is enabled for the iSCSI target.

diskId String

The unique identifier for the gateway local disk that is configured as a stored volume.

gatewayArn String

The Amazon Resource Name (ARN) of the gateway.

kmsEncrypted Boolean

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kmsKey String

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

lunNumber Integer

Logical disk number.

networkInterfaceId String

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

networkInterfacePort Integer

The port used to communicate with iSCSI targets.

preserveExistingData Boolean

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

snapshotId String

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags Map<String,String>

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetArn String

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

targetName String

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

volumeAttachmentStatus String

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volumeId String

Volume ID, e.g. vol-12345678.

volumeSizeInBytes Integer

The size of the data stored on the volume in bytes.

volumeStatus String

indicates the state of the storage volume.

volumeType String

indicates the type of the volume.

arn string

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chapEnabled boolean

Whether mutual CHAP is enabled for the iSCSI target.

diskId string

The unique identifier for the gateway local disk that is configured as a stored volume.

gatewayArn string

The Amazon Resource Name (ARN) of the gateway.

kmsEncrypted boolean

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kmsKey string

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

lunNumber number

Logical disk number.

networkInterfaceId string

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

networkInterfacePort number

The port used to communicate with iSCSI targets.

preserveExistingData boolean

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

snapshotId string

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags {[key: string]: string}

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetArn string

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

targetName string

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

volumeAttachmentStatus string

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volumeId string

Volume ID, e.g. vol-12345678.

volumeSizeInBytes number

The size of the data stored on the volume in bytes.

volumeStatus string

indicates the state of the storage volume.

volumeType string

indicates the type of the volume.

arn str

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chap_enabled bool

Whether mutual CHAP is enabled for the iSCSI target.

disk_id str

The unique identifier for the gateway local disk that is configured as a stored volume.

gateway_arn str

The Amazon Resource Name (ARN) of the gateway.

kms_encrypted bool

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kms_key str

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

lun_number int

Logical disk number.

network_interface_id str

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

network_interface_port int

The port used to communicate with iSCSI targets.

preserve_existing_data bool

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

snapshot_id str

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags Mapping[str, str]

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

target_arn str

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

target_name str

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

volume_attachment_status str

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volume_id str

Volume ID, e.g. vol-12345678.

volume_size_in_bytes int

The size of the data stored on the volume in bytes.

volume_status str

indicates the state of the storage volume.

volume_type str

indicates the type of the volume.

arn String

Volume Amazon Resource Name (ARN), e.g., arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678.

chapEnabled Boolean

Whether mutual CHAP is enabled for the iSCSI target.

diskId String

The unique identifier for the gateway local disk that is configured as a stored volume.

gatewayArn String

The Amazon Resource Name (ARN) of the gateway.

kmsEncrypted Boolean

true to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

kmsKey String

The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. This value can only be set when kms_encrypted is true.

lunNumber Number

Logical disk number.

networkInterfaceId String

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.

networkInterfacePort Number

The port used to communicate with iSCSI targets.

preserveExistingData Boolean

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

snapshotId String

The snapshot ID of the snapshot to restore as the new stored volumeE.g., snap-1122aabb.

tags Map<String>

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetArn String

Target Amazon Resource Name (ARN), e.g. arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/target/iqn.1997-05.com.amazon:TargetName.

targetName String

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. The target name must be unique across all volumes of a gateway.

volumeAttachmentStatus String

A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway.

volumeId String

Volume ID, e.g. vol-12345678.

volumeSizeInBytes Number

The size of the data stored on the volume in bytes.

volumeStatus String

indicates the state of the storage volume.

volumeType String

indicates the type of the volume.

Import

aws_storagegateway_stored_iscsi_volume can be imported by using the volume Amazon Resource Name (ARN), e.g.,

 $ pulumi import aws:storagegateway/storedIscsiVolume:StoredIscsiVolume example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.