Interface CfnVolumeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolumeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:44.392Z")
@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.opsworks.*;
CfnVolumeProps cfnVolumeProps = CfnVolumeProps.builder()
.ec2VolumeId("ec2VolumeId")
.stackId("stackId")
// the properties below are optional
.mountPoint("mountPoint")
.name("name")
.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 EC2 volume ID.default StringThe volume mount point.default StringgetName()The volume name.The stack ID.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEc2VolumeId
The Amazon EC2 volume ID.- See Also:
-
getStackId
The stack ID.- See Also:
-
getMountPoint
The volume mount point.For example, "/mnt/disk1".
- See Also:
-
getName
The volume name.Volume names are a maximum of 128 characters.
- See Also:
-
builder
- Returns:
- a
CfnVolumeProps.BuilderofCfnVolumeProps
-