# EbsInstanceBlockDeviceSpecificationProperty

Amazon EBS-specific block device mapping specifications.

- 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_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const ebsInstanceBlockDeviceSpecificationProperty: imagebuilder.CfnContainerRecipe.EbsInstanceBlockDeviceSpecificationProperty = {
  deleteOnTermination: false,
  encrypted: false,
  iops: 123,
  kmsKeyId: 'kmsKeyId',
  snapshotId: 'snapshotId',
  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_imagebuilder as imagebuilder

ebs_instance_block_device_specification_property = imagebuilder.CfnContainerRecipe.EbsInstanceBlockDeviceSpecificationProperty(
    delete_on_termination=False,
    encrypted=False,
    iops=123,
    kms_key_id="kmsKeyId",
    snapshot_id="snapshotId",
    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.imagebuilder.*;

EbsInstanceBlockDeviceSpecificationProperty ebsInstanceBlockDeviceSpecificationProperty = EbsInstanceBlockDeviceSpecificationProperty.builder()
        .deleteOnTermination(false)
        .encrypted(false)
        .iops(123)
        .kmsKeyId("kmsKeyId")
        .snapshotId("snapshotId")
        .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.ImageBuilder;

var ebsInstanceBlockDeviceSpecificationProperty = new EbsInstanceBlockDeviceSpecificationProperty {
    DeleteOnTermination = false,
    Encrypted = false,
    Iops = 123,
    KmsKeyId = "kmsKeyId",
    SnapshotId = "snapshotId",
    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"

ebsInstanceBlockDeviceSpecificationProperty := &EbsInstanceBlockDeviceSpecificationProperty{
	DeleteOnTermination: jsii.Boolean(false),
	Encrypted: jsii.Boolean(false),
	Iops: jsii.Number(123),
	KmsKeyId: jsii.String("kmsKeyId"),
	SnapshotId: jsii.String("snapshotId"),
	Throughput: jsii.Number(123),
	VolumeSize: jsii.Number(123),
	VolumeType: jsii.String("volumeType"),
}
```

## Properties

- `deleteOnTermination`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Use to configure delete on termination of the associated device.

- `encrypted`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Use to configure device encryption.

- `iops`: number — Use to configure device IOPS.

- `kmsKeyId`: string — The Amazon Resource Name (ARN) that uniquely identifies the KMS key to use when encrypting the device.

  This can be either the Key ARN or the Alias ARN. For more information, see [Key identifiers (KeyId)](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN) in the *AWS Key Management Service Developer Guide* .

- `snapshotId`: string — The snapshot that defines the device contents.

- `throughput`: number — *For GP3 volumes only* – The throughput in MiB/s that the volume supports.

- `volumeSize`: number — Use to override the device's volume size.

- `volumeType`: string — Use to override the device's volume type.
