Try AWS Native preview for resources not in the classic version.
aws.storagegateway.StoredIscsiVolume
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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 asWORKING STORAGE NOT CONFIGURED
.
Example Usage
Create Empty Stored iSCSI Volume
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.storagegateway.StoredIscsiVolume("example", {
gatewayArn: exampleAwsStoragegatewayCache.gatewayArn,
networkInterfaceId: exampleAwsInstance.privateIp,
targetName: "example",
preserveExistingData: false,
diskId: test.id,
});
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.StoredIscsiVolume("example",
gateway_arn=example_aws_storagegateway_cache["gatewayArn"],
network_interface_id=example_aws_instance["privateIp"],
target_name="example",
preserve_existing_data=False,
disk_id=test["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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(exampleAwsStoragegatewayCache.GatewayArn),
NetworkInterfaceId: pulumi.Any(exampleAwsInstance.PrivateIp),
TargetName: pulumi.String("example"),
PreserveExistingData: pulumi.Bool(false),
DiskId: pulumi.Any(test.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.StorageGateway.StoredIscsiVolume("example", new()
{
GatewayArn = exampleAwsStoragegatewayCache.GatewayArn,
NetworkInterfaceId = exampleAwsInstance.PrivateIp,
TargetName = "example",
PreserveExistingData = false,
DiskId = test.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.StoredIscsiVolume;
import com.pulumi.aws.storagegateway.StoredIscsiVolumeArgs;
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 StoredIscsiVolume("example", StoredIscsiVolumeArgs.builder()
.gatewayArn(exampleAwsStoragegatewayCache.gatewayArn())
.networkInterfaceId(exampleAwsInstance.privateIp())
.targetName("example")
.preserveExistingData(false)
.diskId(test.id())
.build());
}
}
resources:
example:
type: aws:storagegateway:StoredIscsiVolume
properties:
gatewayArn: ${exampleAwsStoragegatewayCache.gatewayArn}
networkInterfaceId: ${exampleAwsInstance.privateIp}
targetName: example
preserveExistingData: false
diskId: ${test.id}
Create Stored iSCSI Volume From Snapshot
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.storagegateway.StoredIscsiVolume("example", {
gatewayArn: exampleAwsStoragegatewayCache.gatewayArn,
networkInterfaceId: exampleAwsInstance.privateIp,
snapshotId: exampleAwsEbsSnapshot.id,
targetName: "example",
preserveExistingData: false,
diskId: test.id,
});
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.StoredIscsiVolume("example",
gateway_arn=example_aws_storagegateway_cache["gatewayArn"],
network_interface_id=example_aws_instance["privateIp"],
snapshot_id=example_aws_ebs_snapshot["id"],
target_name="example",
preserve_existing_data=False,
disk_id=test["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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(exampleAwsStoragegatewayCache.GatewayArn),
NetworkInterfaceId: pulumi.Any(exampleAwsInstance.PrivateIp),
SnapshotId: pulumi.Any(exampleAwsEbsSnapshot.Id),
TargetName: pulumi.String("example"),
PreserveExistingData: pulumi.Bool(false),
DiskId: pulumi.Any(test.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.StorageGateway.StoredIscsiVolume("example", new()
{
GatewayArn = exampleAwsStoragegatewayCache.GatewayArn,
NetworkInterfaceId = exampleAwsInstance.PrivateIp,
SnapshotId = exampleAwsEbsSnapshot.Id,
TargetName = "example",
PreserveExistingData = false,
DiskId = test.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.StoredIscsiVolume;
import com.pulumi.aws.storagegateway.StoredIscsiVolumeArgs;
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 StoredIscsiVolume("example", StoredIscsiVolumeArgs.builder()
.gatewayArn(exampleAwsStoragegatewayCache.gatewayArn())
.networkInterfaceId(exampleAwsInstance.privateIp())
.snapshotId(exampleAwsEbsSnapshot.id())
.targetName("example")
.preserveExistingData(false)
.diskId(test.id())
.build());
}
}
resources:
example:
type: aws:storagegateway:StoredIscsiVolume
properties:
gatewayArn: ${exampleAwsStoragegatewayCache.gatewayArn}
networkInterfaceId: ${exampleAwsInstance.privateIp}
snapshotId: ${exampleAwsEbsSnapshot.id}
targetName: example
preserveExistingData: false
diskId: ${test.id}
Create StoredIscsiVolume Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StoredIscsiVolume(name: string, args: StoredIscsiVolumeArgs, opts?: CustomResourceOptions);
@overload
def StoredIscsiVolume(resource_name: str,
args: StoredIscsiVolumeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StoredIscsiVolume(resource_name: str,
opts: Optional[ResourceOptions] = None,
disk_id: Optional[str] = None,
gateway_arn: Optional[str] = None,
network_interface_id: Optional[str] = None,
preserve_existing_data: Optional[bool] = None,
target_name: Optional[str] = None,
kms_encrypted: Optional[bool] = None,
kms_key: Optional[str] = None,
snapshot_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var storedIscsiVolumeResource = new Aws.StorageGateway.StoredIscsiVolume("storedIscsiVolumeResource", new()
{
DiskId = "string",
GatewayArn = "string",
NetworkInterfaceId = "string",
PreserveExistingData = false,
TargetName = "string",
KmsEncrypted = false,
KmsKey = "string",
SnapshotId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := storagegateway.NewStoredIscsiVolume(ctx, "storedIscsiVolumeResource", &storagegateway.StoredIscsiVolumeArgs{
DiskId: pulumi.String("string"),
GatewayArn: pulumi.String("string"),
NetworkInterfaceId: pulumi.String("string"),
PreserveExistingData: pulumi.Bool(false),
TargetName: pulumi.String("string"),
KmsEncrypted: pulumi.Bool(false),
KmsKey: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var storedIscsiVolumeResource = new StoredIscsiVolume("storedIscsiVolumeResource", StoredIscsiVolumeArgs.builder()
.diskId("string")
.gatewayArn("string")
.networkInterfaceId("string")
.preserveExistingData(false)
.targetName("string")
.kmsEncrypted(false)
.kmsKey("string")
.snapshotId("string")
.tags(Map.of("string", "string"))
.build());
stored_iscsi_volume_resource = aws.storagegateway.StoredIscsiVolume("storedIscsiVolumeResource",
disk_id="string",
gateway_arn="string",
network_interface_id="string",
preserve_existing_data=False,
target_name="string",
kms_encrypted=False,
kms_key="string",
snapshot_id="string",
tags={
"string": "string",
})
const storedIscsiVolumeResource = new aws.storagegateway.StoredIscsiVolume("storedIscsiVolumeResource", {
diskId: "string",
gatewayArn: "string",
networkInterfaceId: "string",
preserveExistingData: false,
targetName: "string",
kmsEncrypted: false,
kmsKey: "string",
snapshotId: "string",
tags: {
string: "string",
},
});
type: aws:storagegateway:StoredIscsiVolume
properties:
diskId: string
gatewayArn: string
kmsEncrypted: false
kmsKey: string
networkInterfaceId: string
preserveExistingData: false
snapshotId: string
tags:
string: string
targetName: string
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:
- Disk
Id string - The unique identifier for the gateway local disk that is configured as a stored volume.
- Gateway
Arn string - The Amazon Resource Name (ARN) of the gateway.
- Network
Interface stringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- Preserve
Existing boolData - 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 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.
- Kms
Encrypted bool true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- Kms
Key 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
istrue
. - Snapshot
Id string - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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.
- Disk
Id string - The unique identifier for the gateway local disk that is configured as a stored volume.
- Gateway
Arn string - The Amazon Resource Name (ARN) of the gateway.
- Network
Interface stringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- Preserve
Existing boolData - 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 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.
- Kms
Encrypted bool true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- Kms
Key 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
istrue
. - Snapshot
Id string - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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.
- disk
Id String - The unique identifier for the gateway local disk that is configured as a stored volume.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway.
- network
Interface StringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- preserve
Existing BooleanData - 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 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.
- kms
Encrypted Boolean true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- kms
Key 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
istrue
. - snapshot
Id String - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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.
- disk
Id string - The unique identifier for the gateway local disk that is configured as a stored volume.
- gateway
Arn string - The Amazon Resource Name (ARN) of the gateway.
- network
Interface stringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- preserve
Existing booleanData - 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 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.
- kms
Encrypted boolean true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- kms
Key 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
istrue
. - snapshot
Id string - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - {[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_ strid - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- preserve_
existing_ booldata - 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, orfalse
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
istrue
. - snapshot_
id str - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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.
- disk
Id String - The unique identifier for the gateway local disk that is configured as a stored volume.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway.
- network
Interface StringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- preserve
Existing BooleanData - 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 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.
- kms
Encrypted Boolean true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- kms
Key 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
istrue
. - snapshot
Id String - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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
. - Chap
Enabled bool - Whether mutual CHAP is enabled for the iSCSI target.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lun
Number int - Logical disk number.
- Network
Interface intPort - The port used to communicate with iSCSI targets.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Arn 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
. - Volume
Attachment stringStatus - 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 string - Volume ID, e.g.,
vol-12345678
. - Volume
Size intIn Bytes - The size of the data stored on the volume in bytes.
- Volume
Status string - indicates the state of the storage volume.
- Volume
Type 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
. - Chap
Enabled bool - Whether mutual CHAP is enabled for the iSCSI target.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lun
Number int - Logical disk number.
- Network
Interface intPort - The port used to communicate with iSCSI targets.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Arn 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
. - Volume
Attachment stringStatus - 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 string - Volume ID, e.g.,
vol-12345678
. - Volume
Size intIn Bytes - The size of the data stored on the volume in bytes.
- Volume
Status string - indicates the state of the storage volume.
- Volume
Type 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
. - chap
Enabled Boolean - Whether mutual CHAP is enabled for the iSCSI target.
- id String
- The provider-assigned unique ID for this managed resource.
- lun
Number Integer - Logical disk number.
- network
Interface IntegerPort - The port used to communicate with iSCSI targets.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Arn 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
. - volume
Attachment StringStatus - 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 String - Volume ID, e.g.,
vol-12345678
. - volume
Size IntegerIn Bytes - The size of the data stored on the volume in bytes.
- volume
Status String - indicates the state of the storage volume.
- volume
Type 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
. - chap
Enabled boolean - Whether mutual CHAP is enabled for the iSCSI target.
- id string
- The provider-assigned unique ID for this managed resource.
- lun
Number number - Logical disk number.
- network
Interface numberPort - The port used to communicate with iSCSI targets.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Arn 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
. - volume
Attachment stringStatus - 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 string - Volume ID, e.g.,
vol-12345678
. - volume
Size numberIn Bytes - The size of the data stored on the volume in bytes.
- volume
Status string - indicates the state of the storage volume.
- volume
Type 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_ intport - The port used to communicate with iSCSI targets.
- 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_ strstatus - 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_ intin_ bytes - 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
. - chap
Enabled Boolean - Whether mutual CHAP is enabled for the iSCSI target.
- id String
- The provider-assigned unique ID for this managed resource.
- lun
Number Number - Logical disk number.
- network
Interface NumberPort - The port used to communicate with iSCSI targets.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Arn 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
. - volume
Attachment StringStatus - 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 String - Volume ID, e.g.,
vol-12345678
. - volume
Size NumberIn Bytes - The size of the data stored on the volume in bytes.
- volume
Status String - indicates the state of the storage volume.
- volume
Type String - indicates the type of the volume.
Look up 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.
- Arn string
- 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 string - The unique identifier for the gateway local disk that is configured as a stored volume.
- Gateway
Arn string - 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, orfalse
to use a key managed by Amazon S3. Optional.- Kms
Key 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
istrue
. - Lun
Number int - Logical disk number.
- Network
Interface stringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- Network
Interface intPort - The port used to communicate with iSCSI targets.
- Preserve
Existing boolData - 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 string - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Arn 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
. - Target
Name 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.
- Volume
Attachment stringStatus - 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 string - Volume ID, e.g.,
vol-12345678
. - Volume
Size intIn Bytes - The size of the data stored on the volume in bytes.
- Volume
Status string - indicates the state of the storage volume.
- Volume
Type 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
. - Chap
Enabled bool - Whether mutual CHAP is enabled for the iSCSI target.
- Disk
Id string - The unique identifier for the gateway local disk that is configured as a stored volume.
- Gateway
Arn string - 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, orfalse
to use a key managed by Amazon S3. Optional.- Kms
Key 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
istrue
. - Lun
Number int - Logical disk number.
- Network
Interface stringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- Network
Interface intPort - The port used to communicate with iSCSI targets.
- Preserve
Existing boolData - 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 string - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Arn 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
. - Target
Name 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.
- Volume
Attachment stringStatus - 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 string - Volume ID, e.g.,
vol-12345678
. - Volume
Size intIn Bytes - The size of the data stored on the volume in bytes.
- Volume
Status string - indicates the state of the storage volume.
- Volume
Type 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
. - chap
Enabled Boolean - Whether mutual CHAP is enabled for the iSCSI target.
- disk
Id String - The unique identifier for the gateway local disk that is configured as a stored volume.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway.
- kms
Encrypted Boolean true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- kms
Key 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
istrue
. - lun
Number Integer - Logical disk number.
- network
Interface StringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- network
Interface IntegerPort - The port used to communicate with iSCSI targets.
- preserve
Existing BooleanData - 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 String - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Arn 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
. - target
Name 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.
- volume
Attachment StringStatus - 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 String - Volume ID, e.g.,
vol-12345678
. - volume
Size IntegerIn Bytes - The size of the data stored on the volume in bytes.
- volume
Status String - indicates the state of the storage volume.
- volume
Type 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
. - chap
Enabled boolean - Whether mutual CHAP is enabled for the iSCSI target.
- disk
Id string - The unique identifier for the gateway local disk that is configured as a stored volume.
- gateway
Arn string - The Amazon Resource Name (ARN) of the gateway.
- kms
Encrypted boolean true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- kms
Key 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
istrue
. - lun
Number number - Logical disk number.
- network
Interface stringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- network
Interface numberPort - The port used to communicate with iSCSI targets.
- preserve
Existing booleanData - 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 string - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - {[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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Arn 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
. - target
Name 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.
- volume
Attachment stringStatus - 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 string - Volume ID, e.g.,
vol-12345678
. - volume
Size numberIn Bytes - The size of the data stored on the volume in bytes.
- volume
Status string - indicates the state of the storage volume.
- volume
Type 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, orfalse
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
istrue
. - lun_
number int - Logical disk number.
- network_
interface_ strid - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- network_
interface_ intport - The port used to communicate with iSCSI targets.
- preserve_
existing_ booldata - 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
. - 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. - 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_ strstatus - 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_ intin_ bytes - 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
. - chap
Enabled Boolean - Whether mutual CHAP is enabled for the iSCSI target.
- disk
Id String - The unique identifier for the gateway local disk that is configured as a stored volume.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway.
- kms
Encrypted Boolean true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. Optional.- kms
Key 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
istrue
. - lun
Number Number - Logical disk number.
- network
Interface StringId - The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.
- network
Interface NumberPort - The port used to communicate with iSCSI targets.
- preserve
Existing BooleanData - 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 String - The snapshot ID of the snapshot to restore as the new stored volumeE.g.,
snap-1122aabb
. - 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Arn 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
. - target
Name 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.
- volume
Attachment StringStatus - 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 String - Volume ID, e.g.,
vol-12345678
. - volume
Size NumberIn Bytes - The size of the data stored on the volume in bytes.
- volume
Status String - indicates the state of the storage volume.
- volume
Type String - indicates the type of the volume.
Import
Using pulumi import
, import aws_storagegateway_stored_iscsi_volume
using the volume Amazon Resource Name (ARN). For example:
$ pulumi import aws:storagegateway/storedIscsiVolume:StoredIscsiVolume example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.