Interface CfnVolumeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolumeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:05:02.745Z")
@Stability(Stable)
public interface CfnVolumeProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.storagegateway.*;
CfnVolumeProps cfnVolumeProps = CfnVolumeProps.builder()
.gatewayArn("gatewayArn")
.networkInterfaceId("networkInterfaceId")
.targetName("targetName")
.volumeSizeInBytes(123)
// the properties below are optional
.kmsEncrypted(false)
.kmsKey("kmsKey")
.snapshotId("snapshotId")
.sourceVolumeArn("sourceVolumeArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnVolumePropsstatic final classAn implementation forCfnVolumeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnVolumeProps.Builderbuilder()The Amazon Resource Name (ARN) of the gateway on which to create the volume.default ObjectSet to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.default StringThe Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.The network interface of the gateway on which to expose the iSCSI target.default StringThe snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).default StringThe ARN of an existing volume from which to create the new volume.getTags()A list of up to 50 tags to assign to the volume.The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.The size of the volume in bytes.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGatewayArn
The Amazon Resource Name (ARN) of the gateway on which to create the volume.- See Also:
-
getNetworkInterfaceId
The network interface of the gateway on which to expose the iSCSI target.Only IPv4 addresses are accepted.
- See Also:
-
getTargetName
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.- See Also:
-
getVolumeSizeInBytes
The size of the volume in bytes.- See Also:
-
getKmsEncrypted
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.Returns union: either
BooleanorIResolvable- See Also:
-
getKmsKey
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.- See Also:
-
getSnapshotId
The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).- See Also:
-
getSourceVolumeArn
The ARN of an existing volume from which to create the new volume.- See Also:
-
getTags
A list of up to 50 tags to assign to the volume.- See Also:
-
builder
- Returns:
- a
CfnVolumeProps.BuilderofCfnVolumeProps
-