# EbsBlockDeviceProperty

- Source: Generated at build time
- Type last changed: v2.203.0 · 1 Jul 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesinstances as workspacesinstances } from 'aws-cdk-lib';
const ebsBlockDeviceProperty: workspacesinstances.CfnWorkspaceInstance.EbsBlockDeviceProperty = {
  encrypted: false,
  iops: 123,
  kmsKeyId: 'kmsKeyId',
  throughput: 123,
  volumeSize: 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_workspacesinstances as workspacesinstances

ebs_block_device_property = workspacesinstances.CfnWorkspaceInstance.EbsBlockDeviceProperty(
    encrypted=False,
    iops=123,
    kms_key_id="kmsKeyId",
    throughput=123,
    volume_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.workspacesinstances.*;

EbsBlockDeviceProperty ebsBlockDeviceProperty = EbsBlockDeviceProperty.builder()
        .encrypted(false)
        .iops(123)
        .kmsKeyId("kmsKeyId")
        .throughput(123)
        .volumeSize(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.WorkspacesInstances;

var ebsBlockDeviceProperty = new EbsBlockDeviceProperty {
    Encrypted = false,
    Iops = 123,
    KmsKeyId = "kmsKeyId",
    Throughput = 123,
    VolumeSize = 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"

ebsBlockDeviceProperty := &EbsBlockDeviceProperty{
	Encrypted: jsii.Boolean(false),
	Iops: jsii.Number(123),
	KmsKeyId: jsii.String("kmsKeyId"),
	Throughput: jsii.Number(123),
	VolumeSize: 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)

- `iops`: number

- `kmsKeyId`: string

- `throughput`: number

- `volumeSize`: number

- `volumeType`: string
