aws.storagegateway.CachesIscsiVolume
Explore with Pulumi AI
Manages an AWS Storage Gateway cached iSCSI volume.
NOTE: The gateway must have cache added (e.g., via the
aws.storagegateway.Cache
resource) before creating volumes otherwise the Storage Gateway API will return an error.
NOTE: The gateway must have an upload buffer added (e.g., via the
aws.storagegateway.UploadBuffer
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 asUPLOAD BUFFER NOT CONFIGURED
.
Example Usage
NOTE: These examples are referencing the
aws.storagegateway.Cache
resourcegateway_arn
attribute to ensure this provider properly adds cache before creating the volume. If you are not using this method, you may need to declare an expicit dependency (e.g. viadepends_on = [aws_storagegateway_cache.example]
) to ensure proper ordering.
Create Empty Cached iSCSI Volume
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.storagegateway.CachesIscsiVolume("example", {
gatewayArn: exampleAwsStoragegatewayCache.gatewayArn,
networkInterfaceId: exampleAwsInstance.privateIp,
targetName: "example",
volumeSizeInBytes: 5368709120,
});
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.CachesIscsiVolume("example",
gateway_arn=example_aws_storagegateway_cache["gatewayArn"],
network_interface_id=example_aws_instance["privateIp"],
target_name="example",
volume_size_in_bytes=5368709120)
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.NewCachesIscsiVolume(ctx, "example", &storagegateway.CachesIscsiVolumeArgs{
GatewayArn: pulumi.Any(exampleAwsStoragegatewayCache.GatewayArn),
NetworkInterfaceId: pulumi.Any(exampleAwsInstance.PrivateIp),
TargetName: pulumi.String("example"),
VolumeSizeInBytes: pulumi.Int(5368709120),
})
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.CachesIscsiVolume("example", new()
{
GatewayArn = exampleAwsStoragegatewayCache.GatewayArn,
NetworkInterfaceId = exampleAwsInstance.PrivateIp,
TargetName = "example",
VolumeSizeInBytes = 5368709120,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.CachesIscsiVolume;
import com.pulumi.aws.storagegateway.CachesIscsiVolumeArgs;
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 CachesIscsiVolume("example", CachesIscsiVolumeArgs.builder()
.gatewayArn(exampleAwsStoragegatewayCache.gatewayArn())
.networkInterfaceId(exampleAwsInstance.privateIp())
.targetName("example")
.volumeSizeInBytes(5368709120)
.build());
}
}
resources:
example:
type: aws:storagegateway:CachesIscsiVolume
properties:
gatewayArn: ${exampleAwsStoragegatewayCache.gatewayArn}
networkInterfaceId: ${exampleAwsInstance.privateIp}
targetName: example
volumeSizeInBytes: 5.36870912e+09 # 5 GB
Create Cached iSCSI Volume From Snapshot
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.storagegateway.CachesIscsiVolume("example", {
gatewayArn: exampleAwsStoragegatewayCache.gatewayArn,
networkInterfaceId: exampleAwsInstance.privateIp,
snapshotId: exampleAwsEbsSnapshot.id,
targetName: "example",
volumeSizeInBytes: exampleAwsEbsSnapshot.volumeSize * 1024 * 1024 * 1024,
});
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.CachesIscsiVolume("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",
volume_size_in_bytes=example_aws_ebs_snapshot["volumeSize"] * 1024 * 1024 * 1024)
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.NewCachesIscsiVolume(ctx, "example", &storagegateway.CachesIscsiVolumeArgs{
GatewayArn: pulumi.Any(exampleAwsStoragegatewayCache.GatewayArn),
NetworkInterfaceId: pulumi.Any(exampleAwsInstance.PrivateIp),
SnapshotId: pulumi.Any(exampleAwsEbsSnapshot.Id),
TargetName: pulumi.String("example"),
VolumeSizeInBytes: int(exampleAwsEbsSnapshot.VolumeSize * 1024 * 1024 * 1024),
})
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.CachesIscsiVolume("example", new()
{
GatewayArn = exampleAwsStoragegatewayCache.GatewayArn,
NetworkInterfaceId = exampleAwsInstance.PrivateIp,
SnapshotId = exampleAwsEbsSnapshot.Id,
TargetName = "example",
VolumeSizeInBytes = exampleAwsEbsSnapshot.VolumeSize * 1024 * 1024 * 1024,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.CachesIscsiVolume;
import com.pulumi.aws.storagegateway.CachesIscsiVolumeArgs;
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 CachesIscsiVolume("example", CachesIscsiVolumeArgs.builder()
.gatewayArn(exampleAwsStoragegatewayCache.gatewayArn())
.networkInterfaceId(exampleAwsInstance.privateIp())
.snapshotId(exampleAwsEbsSnapshot.id())
.targetName("example")
.volumeSizeInBytes(exampleAwsEbsSnapshot.volumeSize() * 1024 * 1024 * 1024)
.build());
}
}
Coming soon!
Create Cached iSCSI Volume From Source Volume
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.storagegateway.CachesIscsiVolume("example", {
gatewayArn: exampleAwsStoragegatewayCache.gatewayArn,
networkInterfaceId: exampleAwsInstance.privateIp,
sourceVolumeArn: existing.arn,
targetName: "example",
volumeSizeInBytes: existing.volumeSizeInBytes,
});
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.CachesIscsiVolume("example",
gateway_arn=example_aws_storagegateway_cache["gatewayArn"],
network_interface_id=example_aws_instance["privateIp"],
source_volume_arn=existing["arn"],
target_name="example",
volume_size_in_bytes=existing["volumeSizeInBytes"])
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.NewCachesIscsiVolume(ctx, "example", &storagegateway.CachesIscsiVolumeArgs{
GatewayArn: pulumi.Any(exampleAwsStoragegatewayCache.GatewayArn),
NetworkInterfaceId: pulumi.Any(exampleAwsInstance.PrivateIp),
SourceVolumeArn: pulumi.Any(existing.Arn),
TargetName: pulumi.String("example"),
VolumeSizeInBytes: pulumi.Any(existing.VolumeSizeInBytes),
})
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.CachesIscsiVolume("example", new()
{
GatewayArn = exampleAwsStoragegatewayCache.GatewayArn,
NetworkInterfaceId = exampleAwsInstance.PrivateIp,
SourceVolumeArn = existing.Arn,
TargetName = "example",
VolumeSizeInBytes = existing.VolumeSizeInBytes,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.CachesIscsiVolume;
import com.pulumi.aws.storagegateway.CachesIscsiVolumeArgs;
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 CachesIscsiVolume("example", CachesIscsiVolumeArgs.builder()
.gatewayArn(exampleAwsStoragegatewayCache.gatewayArn())
.networkInterfaceId(exampleAwsInstance.privateIp())
.sourceVolumeArn(existing.arn())
.targetName("example")
.volumeSizeInBytes(existing.volumeSizeInBytes())
.build());
}
}
resources:
example:
type: aws:storagegateway:CachesIscsiVolume
properties:
gatewayArn: ${exampleAwsStoragegatewayCache.gatewayArn}
networkInterfaceId: ${exampleAwsInstance.privateIp}
sourceVolumeArn: ${existing.arn}
targetName: example
volumeSizeInBytes: ${existing.volumeSizeInBytes}
Create CachesIscsiVolume Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CachesIscsiVolume(name: string, args: CachesIscsiVolumeArgs, opts?: CustomResourceOptions);
@overload
def CachesIscsiVolume(resource_name: str,
args: CachesIscsiVolumeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CachesIscsiVolume(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_arn: Optional[str] = None,
network_interface_id: Optional[str] = None,
target_name: Optional[str] = None,
volume_size_in_bytes: Optional[int] = None,
kms_encrypted: Optional[bool] = None,
kms_key: Optional[str] = None,
snapshot_id: Optional[str] = None,
source_volume_arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCachesIscsiVolume(ctx *Context, name string, args CachesIscsiVolumeArgs, opts ...ResourceOption) (*CachesIscsiVolume, error)
public CachesIscsiVolume(string name, CachesIscsiVolumeArgs args, CustomResourceOptions? opts = null)
public CachesIscsiVolume(String name, CachesIscsiVolumeArgs args)
public CachesIscsiVolume(String name, CachesIscsiVolumeArgs args, CustomResourceOptions options)
type: aws:storagegateway:CachesIscsiVolume
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 CachesIscsiVolumeArgs
- 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 CachesIscsiVolumeArgs
- 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 CachesIscsiVolumeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CachesIscsiVolumeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CachesIscsiVolumeArgs
- 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 cachesIscsiVolumeResource = new Aws.StorageGateway.CachesIscsiVolume("cachesIscsiVolumeResource", new()
{
GatewayArn = "string",
NetworkInterfaceId = "string",
TargetName = "string",
VolumeSizeInBytes = 0,
KmsEncrypted = false,
KmsKey = "string",
SnapshotId = "string",
SourceVolumeArn = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := storagegateway.NewCachesIscsiVolume(ctx, "cachesIscsiVolumeResource", &storagegateway.CachesIscsiVolumeArgs{
GatewayArn: pulumi.String("string"),
NetworkInterfaceId: pulumi.String("string"),
TargetName: pulumi.String("string"),
VolumeSizeInBytes: pulumi.Int(0),
KmsEncrypted: pulumi.Bool(false),
KmsKey: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
SourceVolumeArn: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var cachesIscsiVolumeResource = new CachesIscsiVolume("cachesIscsiVolumeResource", CachesIscsiVolumeArgs.builder()
.gatewayArn("string")
.networkInterfaceId("string")
.targetName("string")
.volumeSizeInBytes(0)
.kmsEncrypted(false)
.kmsKey("string")
.snapshotId("string")
.sourceVolumeArn("string")
.tags(Map.of("string", "string"))
.build());
caches_iscsi_volume_resource = aws.storagegateway.CachesIscsiVolume("cachesIscsiVolumeResource",
gateway_arn="string",
network_interface_id="string",
target_name="string",
volume_size_in_bytes=0,
kms_encrypted=False,
kms_key="string",
snapshot_id="string",
source_volume_arn="string",
tags={
"string": "string",
})
const cachesIscsiVolumeResource = new aws.storagegateway.CachesIscsiVolume("cachesIscsiVolumeResource", {
gatewayArn: "string",
networkInterfaceId: "string",
targetName: "string",
volumeSizeInBytes: 0,
kmsEncrypted: false,
kmsKey: "string",
snapshotId: "string",
sourceVolumeArn: "string",
tags: {
string: "string",
},
});
type: aws:storagegateway:CachesIscsiVolume
properties:
gatewayArn: string
kmsEncrypted: false
kmsKey: string
networkInterfaceId: string
snapshotId: string
sourceVolumeArn: string
tags:
string: string
targetName: string
volumeSizeInBytes: 0
CachesIscsiVolume 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 CachesIscsiVolume resource accepts the following input properties:
- 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.
- 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
Size intIn Bytes - The size of the volume in bytes.
- Kms
Encrypted bool - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - Kms
Key string - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - Snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - Source
Volume stringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Dictionary<string, string>
- Key-value map 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.
- 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.
- 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
Size intIn Bytes - The size of the volume in bytes.
- Kms
Encrypted bool - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - Kms
Key string - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - Snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - Source
Volume stringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - map[string]string
- Key-value map 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.
- 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.
- 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
Size IntegerIn Bytes - The size of the volume in bytes.
- kms
Encrypted Boolean - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms
Key String - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - snapshot
Id String - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source
Volume StringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Map<String,String>
- Key-value map 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.
- 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.
- 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
Size numberIn Bytes - The size of the volume in bytes.
- kms
Encrypted boolean - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms
Key string - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source
Volume stringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - {[key: string]: string}
- Key-value map 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.
- 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.
- 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_
size_ intin_ bytes - The size of the volume in bytes.
- kms_
encrypted bool - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms_
key str - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - snapshot_
id str - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source_
volume_ strarn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Mapping[str, str]
- Key-value map 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.
- 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.
- 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
Size NumberIn Bytes - The size of the volume in bytes.
- kms
Encrypted Boolean - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms
Key String - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - snapshot
Id String - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source
Volume StringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Map<String>
- Key-value map 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 CachesIscsiVolume 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
Arn string - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - Volume
Id string - Volume ID, e.g.,
vol-12345678
.
- 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
Arn string - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - Volume
Id string - Volume ID, e.g.,
vol-12345678
.
- 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
Arn String - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume
Id String - Volume ID, e.g.,
vol-12345678
.
- 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
Arn string - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume
Id string - Volume ID, e.g.,
vol-12345678
.
- 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_
arn str - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume_
id str - Volume ID, e.g.,
vol-12345678
.
- 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
Arn String - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume
Id String - Volume ID, e.g.,
vol-12345678
.
Look up Existing CachesIscsiVolume Resource
Get an existing CachesIscsiVolume 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?: CachesIscsiVolumeState, opts?: CustomResourceOptions): CachesIscsiVolume
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
chap_enabled: Optional[bool] = 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,
snapshot_id: Optional[str] = None,
source_volume_arn: 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_arn: Optional[str] = None,
volume_id: Optional[str] = None,
volume_size_in_bytes: Optional[int] = None) -> CachesIscsiVolume
func GetCachesIscsiVolume(ctx *Context, name string, id IDInput, state *CachesIscsiVolumeState, opts ...ResourceOption) (*CachesIscsiVolume, error)
public static CachesIscsiVolume Get(string name, Input<string> id, CachesIscsiVolumeState? state, CustomResourceOptions? opts = null)
public static CachesIscsiVolume get(String name, Output<String> id, CachesIscsiVolumeState 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.
- Gateway
Arn string - The Amazon Resource Name (ARN) of the gateway.
- Kms
Encrypted bool - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - Kms
Key string - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - 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.
- Snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - Source
Volume stringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Dictionary<string, string>
- Key-value map 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
Arn string - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - Volume
Id string - Volume ID, e.g.,
vol-12345678
. - Volume
Size intIn Bytes - The size of the volume in bytes.
- 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.
- Gateway
Arn string - The Amazon Resource Name (ARN) of the gateway.
- Kms
Encrypted bool - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - Kms
Key string - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - 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.
- Snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - Source
Volume stringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - map[string]string
- Key-value map 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
Arn string - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - Volume
Id string - Volume ID, e.g.,
vol-12345678
. - Volume
Size intIn Bytes - The size of the volume in bytes.
- 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.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway.
- kms
Encrypted Boolean - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms
Key String - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - 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.
- snapshot
Id String - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source
Volume StringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Map<String,String>
- Key-value map 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
Arn String - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume
Id String - Volume ID, e.g.,
vol-12345678
. - volume
Size IntegerIn Bytes - The size of the volume in bytes.
- 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.
- gateway
Arn string - The Amazon Resource Name (ARN) of the gateway.
- kms
Encrypted boolean - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms
Key string - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - 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.
- snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source
Volume stringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - {[key: string]: string}
- Key-value map 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
Arn string - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume
Id string - Volume ID, e.g.,
vol-12345678
. - volume
Size numberIn Bytes - The size of the volume in bytes.
- 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.
- gateway_
arn str - The Amazon Resource Name (ARN) of the gateway.
- kms_
encrypted bool - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms_
key str - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - 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.
- snapshot_
id str - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source_
volume_ strarn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Mapping[str, str]
- Key-value map 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_
arn str - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume_
id str - Volume ID, e.g.,
vol-12345678
. - volume_
size_ intin_ bytes - The size of the volume in bytes.
- 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.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway.
- kms
Encrypted Boolean - Set to
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to use a key managed by Amazon S3. - kms
Key String - The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encryption. Is required when
kms_encrypted
is set. - 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.
- snapshot
Id String - The snapshot ID of the snapshot to restore as the new cached volumeE.g.,
snap-1122aabb
. - source
Volume StringArn - The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The
volume_size_in_bytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes. - Map<String>
- Key-value map 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
Arn String - Volume Amazon Resource Name (ARN), e.g.,
arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678/volume/vol-12345678
. - volume
Id String - Volume ID, e.g.,
vol-12345678
. - volume
Size NumberIn Bytes - The size of the volume in bytes.
Import
Using pulumi import
, import aws_storagegateway_cached_iscsi_volume
using the volume Amazon Resource Name (ARN). For example:
$ pulumi import aws:storagegateway/cachesIscsiVolume:CachesIscsiVolume 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.