# VolumeConfigurationProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `encrypted`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether an Amazon EBS volume is encrypted.

  For more information, see [Amazon EBS Encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) .

- `iops`: number — 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.

- `mountPoint`: string — The volume mount point.

  For example "/dev/sdh".

- `numberOfDisks`: number — The number of disks in the volume.

- `raidLevel`: number — The volume [RAID level](https://docs.aws.amazon.com/http://en.wikipedia.org/wiki/Standard_RAID_levels) .

- `size`: number — The volume size.

- `volumeType`: string — The volume type. For more information, see [Amazon EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) .

  - `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.
