VolumeConfigurationProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opsworks as opsworks } from 'aws-cdk-lib';
const volumeConfigurationProperty: opsworks.CfnLayer.VolumeConfigurationProperty = {
encrypted: false,
iops: 123,
mountPoint: 'mountPoint',
numberOfDisks: 123,
raidLevel: 123,
size: 123,
volumeType: 'volumeType',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opsworks as opsworks
volume_configuration_property = opsworks.CfnLayer.VolumeConfigurationProperty(
encrypted=False,
iops=123,
mount_point="mountPoint",
number_of_disks=123,
raid_level=123,
size=123,
volume_type="volumeType"
)
java
// 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.*;
VolumeConfigurationProperty volumeConfigurationProperty = VolumeConfigurationProperty.builder()
.encrypted(false)
.iops(123)
.mountPoint("mountPoint")
.numberOfDisks(123)
.raidLevel(123)
.size(123)
.volumeType("volumeType")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpsWorks;
var volumeConfigurationProperty = new VolumeConfigurationProperty {
Encrypted = false,
Iops = 123,
MountPoint = "mountPoint",
NumberOfDisks = 123,
RaidLevel = 123,
Size = 123,
VolumeType = "volumeType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
volumeConfigurationProperty := &VolumeConfigurationProperty{
Encrypted: jsii.Boolean(false),
Iops: jsii.Number(123),
MountPoint: jsii.String("mountPoint"),
NumberOfDisks: jsii.Number(123),
RaidLevel: jsii.Number(123),
Size: jsii.Number(123),
VolumeType: jsii.String("volumeType"),
}
Properties
encryptedoptionalboolean | IResolvableencryptedoptionaltyping.Union[bool, IResolvable]encryptedoptionalBooleanEncryptedoptionalboolEncryptedoptionalinterface{} #Specifies whether an Amazon EBS volume is encrypted.
For more information, see Amazon EBS Encryption .
The number of I/O operations per second (IOPS) to provision for the volume.
For PIOPS volumes, the IOPS per disk.
If you specify io1 for the volume type, you must specify this property.
mountPointoptionalstringmount_pointoptionalstrmountPointoptionalStringMountPointoptionalstringMountPointoptional*string #The volume mount point.
For example "/dev/sdh".
numberOfDisksoptionalnumbernumber_of_disksoptionalint | floatnumberOfDisksoptionalNumberNumberOfDisksoptionaldoubleNumberOfDisksoptional*float64 #The number of disks in the volume.
raidLeveloptionalnumberraid_leveloptionalint | floatraidLeveloptionalNumberRaidLeveloptionaldoubleRaidLeveloptional*float64 #The volume RAID level .
The volume size.
volumeTypeoptionalstringvolume_typeoptionalstrvolumeTypeoptionalStringVolumeTypeoptionalstringVolumeTypeoptional*string #The volume type. For more information, see Amazon EBS Volume Types .
notes
standard- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024 GiB.io1- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of 16384 GiB.gp2- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum size of 16384 GiB.st1- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a minimum size of 125 GiB and a maximum size of 16384 GiB.sc1- Cold HDD. Cold HDD volumes must have a minimum size of 125 GiB and a maximum size of 16384 GiB.