interface CfnVolumeProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.StorageGateway.CfnVolumeProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstoragegateway#CfnVolumeProps |
Java | software.amazon.awscdk.services.storagegateway.CfnVolumeProps |
Python | aws_cdk.aws_storagegateway.CfnVolumeProps |
TypeScript | aws-cdk-lib » aws_storagegateway » CfnVolumeProps |
Properties for defining a CfnVolume.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_storagegateway as storagegateway } from 'aws-cdk-lib';
const cfnVolumeProps: storagegateway.CfnVolumeProps = {
gatewayArn: 'gatewayArn',
networkInterfaceId: 'networkInterfaceId',
targetName: 'targetName',
volumeSizeInBytes: 123,
// the properties below are optional
kmsEncrypted: false,
kmsKey: 'kmsKey',
snapshotId: 'snapshotId',
sourceVolumeArn: 'sourceVolumeArn',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| gateway | string | The Amazon Resource Name (ARN) of the gateway on which to create the volume. |
| network | string | The network interface of the gateway on which to expose the iSCSI target. |
| target | 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 | number | The size of the volume in bytes. |
| kms | boolean | IResolvable | 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 | string | The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. |
| snapshot | string | The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb). |
| source | string | The ARN of an existing volume from which to create the new volume. |
| tags? | Cfn[] | A list of up to 50 tags to assign to the volume. |
gatewayArn
Type:
string
The Amazon Resource Name (ARN) of the gateway on which to create the volume.
networkInterfaceId
Type:
string
The network interface of the gateway on which to expose the iSCSI target.
Only IPv4 addresses are accepted.
targetName
Type:
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.
volumeSizeInBytes
Type:
number
The size of the volume in bytes.
kmsEncrypted?
Type:
boolean | IResolvable
(optional)
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.
kmsKey?
Type:
string
(optional)
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.
snapshotId?
Type:
string
(optional)
The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).
sourceVolumeArn?
Type:
string
(optional)
The ARN of an existing volume from which to create the new volume.
tags?
Type:
Cfn[]
(optional)
A list of up to 50 tags to assign to the volume.

.NET
Go
Java
Python
TypeScript