We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
Creates a cached iSCSI volume on a Storage Gateway. A cached volume stores data in Amazon S3 and retains a copy of frequently accessed data subsets locally.
Create Volume Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Volume(name: string, args: VolumeArgs, opts?: CustomResourceOptions);@overload
def Volume(resource_name: str,
args: VolumeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Volume(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[float] = None,
kms_encrypted: Optional[bool] = None,
kms_key: Optional[str] = None,
snapshot_id: Optional[str] = None,
source_volume_arn: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewVolume(ctx *Context, name string, args VolumeArgs, opts ...ResourceOption) (*Volume, error)public Volume(string name, VolumeArgs args, CustomResourceOptions? opts = null)
public Volume(String name, VolumeArgs args)
public Volume(String name, VolumeArgs args, CustomResourceOptions options)
type: aws-native:storagegateway:Volume
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_storagegateway_volume" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VolumeArgs
- 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 VolumeArgs
- 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 VolumeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VolumeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VolumeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Volume Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Volume resource accepts the following input properties:
- Gateway
Arn string - The Amazon Resource Name (ARN) of the gateway on which to create the volume.
- 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 an initiator to connect to a volume and used as a suffix for the target ARN.
- Volume
Size doubleIn Bytes - The size of the volume in bytes.
- Kms
Encrypted bool - Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.
- Kms
Key string - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
- Snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
- Source
Volume stringArn - The ARN of an existing volume from which to create the new volume.
-
List<Pulumi.
Aws Native. Inputs. Tag> - A list of up to 50 tags to assign to the volume.
- Gateway
Arn string - The Amazon Resource Name (ARN) of the gateway on which to create the volume.
- 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 an initiator to connect to a volume and used as a suffix for the target ARN.
- Volume
Size float64In Bytes - The size of the volume in bytes.
- Kms
Encrypted bool - Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.
- Kms
Key string - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
- Snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
- Source
Volume stringArn - The ARN of an existing volume from which to create the new volume.
-
Tag
Args - A list of up to 50 tags to assign to the volume.
- gateway_
arn string - The Amazon Resource Name (ARN) of the gateway on which to create the volume.
- 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 an initiator to connect to a volume and used as a suffix for the target ARN.
- volume_
size_ numberin_ bytes - The size of the volume in bytes.
- kms_
encrypted bool - Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.
- kms_
key string - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
- snapshot_
id string - The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
- source_
volume_ stringarn - The ARN of an existing volume from which to create the new volume.
- list(object)
- A list of up to 50 tags to assign to the volume.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway on which to create the volume.
- 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 an initiator to connect to a volume and used as a suffix for the target ARN.
- volume
Size DoubleIn Bytes - The size of the volume in bytes.
- kms
Encrypted Boolean - Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.
- kms
Key String - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
- snapshot
Id String - The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
- source
Volume StringArn - The ARN of an existing volume from which to create the new volume.
- List<Tag>
- A list of up to 50 tags to assign to the volume.
- gateway
Arn string - The Amazon Resource Name (ARN) of the gateway on which to create the volume.
- 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 an initiator to connect to a volume and used as a suffix for the target ARN.
- 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 KMS key, or false to use a key managed by Amazon S3.
- kms
Key string - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
- snapshot
Id string - The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
- source
Volume stringArn - The ARN of an existing volume from which to create the new volume.
- Tag[]
- A list of up to 50 tags to assign to the volume.
- gateway_
arn str - The Amazon Resource Name (ARN) of the gateway on which to create the volume.
- 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 an initiator to connect to a volume and used as a suffix for the target ARN.
- volume_
size_ floatin_ bytes - The size of the volume in bytes.
- kms_
encrypted bool - Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.
- kms_
key str - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
- snapshot_
id str - The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
- source_
volume_ strarn - The ARN of an existing volume from which to create the new volume.
-
Sequence[Tag
Args] - A list of up to 50 tags to assign to the volume.
- gateway
Arn String - The Amazon Resource Name (ARN) of the gateway on which to create the volume.
- 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 an initiator to connect to a volume and used as a suffix for the target ARN.
- 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 KMS key, or false to use a key managed by Amazon S3.
- kms
Key String - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
- snapshot
Id String - The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
- source
Volume StringArn - The ARN of an existing volume from which to create the new volume.
- List<Property Map>
- A list of up to 50 tags to assign to the volume.
Outputs
All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:
- Created
Date string - The date the volume was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Target
Arn string - The Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
- Volume
Arn string - The Amazon Resource Name (ARN) of the storage volume.
- Volume
Attachment stringStatus - Indicates whether the storage volume is attached to or detached from the gateway.
- Volume
Id string - The unique identifier of the volume, extracted from the ARN.
- Volume
Status string - The status of the storage volume.
- Volume
Type string - The type of the volume (CACHED iSCSI).
- Volume
Used doubleIn Bytes - The size of the data stored on the volume in bytes.
- Created
Date string - The date the volume was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Target
Arn string - The Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
- Volume
Arn string - The Amazon Resource Name (ARN) of the storage volume.
- Volume
Attachment stringStatus - Indicates whether the storage volume is attached to or detached from the gateway.
- Volume
Id string - The unique identifier of the volume, extracted from the ARN.
- Volume
Status string - The status of the storage volume.
- Volume
Type string - The type of the volume (CACHED iSCSI).
- Volume
Used float64In Bytes - The size of the data stored on the volume in bytes.
- created_
date string - The date the volume was created.
- id string
- The provider-assigned unique ID for this managed resource.
- target_
arn string - The Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
- volume_
arn string - The Amazon Resource Name (ARN) of the storage volume.
- volume_
attachment_ stringstatus - Indicates whether the storage volume is attached to or detached from the gateway.
- volume_
id string - The unique identifier of the volume, extracted from the ARN.
- volume_
status string - The status of the storage volume.
- volume_
type string - The type of the volume (CACHED iSCSI).
- volume_
used_ numberin_ bytes - The size of the data stored on the volume in bytes.
- created
Date String - The date the volume was created.
- id String
- The provider-assigned unique ID for this managed resource.
- target
Arn String - The Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
- volume
Arn String - The Amazon Resource Name (ARN) of the storage volume.
- volume
Attachment StringStatus - Indicates whether the storage volume is attached to or detached from the gateway.
- volume
Id String - The unique identifier of the volume, extracted from the ARN.
- volume
Status String - The status of the storage volume.
- volume
Type String - The type of the volume (CACHED iSCSI).
- volume
Used DoubleIn Bytes - The size of the data stored on the volume in bytes.
- created
Date string - The date the volume was created.
- id string
- The provider-assigned unique ID for this managed resource.
- target
Arn string - The Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
- volume
Arn string - The Amazon Resource Name (ARN) of the storage volume.
- volume
Attachment stringStatus - Indicates whether the storage volume is attached to or detached from the gateway.
- volume
Id string - The unique identifier of the volume, extracted from the ARN.
- volume
Status string - The status of the storage volume.
- volume
Type string - The type of the volume (CACHED iSCSI).
- volume
Used numberIn Bytes - The size of the data stored on the volume in bytes.
- created_
date str - The date the volume was created.
- id str
- The provider-assigned unique ID for this managed resource.
- target_
arn str - The Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
- volume_
arn str - The Amazon Resource Name (ARN) of the storage volume.
- volume_
attachment_ strstatus - Indicates whether the storage volume is attached to or detached from the gateway.
- volume_
id str - The unique identifier of the volume, extracted from the ARN.
- volume_
status str - The status of the storage volume.
- volume_
type str - The type of the volume (CACHED iSCSI).
- volume_
used_ floatin_ bytes - The size of the data stored on the volume in bytes.
- created
Date String - The date the volume was created.
- id String
- The provider-assigned unique ID for this managed resource.
- target
Arn String - The Amazon Resource Name (ARN) of the volume target, which includes the iSCSI target name.
- volume
Arn String - The Amazon Resource Name (ARN) of the storage volume.
- volume
Attachment StringStatus - Indicates whether the storage volume is attached to or detached from the gateway.
- volume
Id String - The unique identifier of the volume, extracted from the ARN.
- volume
Status String - The status of the storage volume.
- volume
Type String - The type of the volume (CACHED iSCSI).
- volume
Used NumberIn Bytes - The size of the data stored on the volume in bytes.
Supporting Types
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi