# EbsVolumeConfigurationProperty

Configuration for an EBS-backed persistent volume.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const ebsVolumeConfigurationProperty: bedrockagentcore.CfnCapacityProvider.EbsVolumeConfigurationProperty = {
  name: 'name',
  sizeGiB: 123,

  // the properties below are optional
  encrypted: false,
  iops: 123,
  kmsKeyId: 'kmsKeyId',
  snapshotId: 'snapshotId',
  throughput: 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_bedrockagentcore as bedrockagentcore

ebs_volume_configuration_property = bedrockagentcore.CfnCapacityProvider.EbsVolumeConfigurationProperty(
    name="name",
    size_gi_b=123,

    # the properties below are optional
    encrypted=False,
    iops=123,
    kms_key_id="kmsKeyId",
    snapshot_id="snapshotId",
    throughput=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.bedrockagentcore.*;

EbsVolumeConfigurationProperty ebsVolumeConfigurationProperty = EbsVolumeConfigurationProperty.builder()
        .name("name")
        .sizeGiB(123)

        // the properties below are optional
        .encrypted(false)
        .iops(123)
        .kmsKeyId("kmsKeyId")
        .snapshotId("snapshotId")
        .throughput(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.BedrockAgentCore;

var ebsVolumeConfigurationProperty = new EbsVolumeConfigurationProperty {
    Name = "name",
    SizeGiB = 123,

    // the properties below are optional
    Encrypted = false,
    Iops = 123,
    KmsKeyId = "kmsKeyId",
    SnapshotId = "snapshotId",
    Throughput = 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"

ebsVolumeConfigurationProperty := &EbsVolumeConfigurationProperty{
	Name: jsii.String("name"),
	SizeGiB: jsii.Number(123),

	// the properties below are optional
	Encrypted: jsii.Boolean(false),
	Iops: jsii.Number(123),
	KmsKeyId: jsii.String("kmsKeyId"),
	SnapshotId: jsii.String("snapshotId"),
	Throughput: 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) — Whether to encrypt the volume.

  Defaults to true.

- `iops`: number — The number of IOPS to provision.

  Only valid for gp3, io1, and io2 volumes.

- `kmsKeyId`: string — Identifier of the KMS key to use for encryption.

- `name`: string (required) — The logical name of the volume, used to reference it when mounting.

- `sizeGiB`: number (required) — The size of the volume in GiB.

- `snapshotId`: string — Optional EBS snapshot ID to initialize the volume from.

- `throughput`: number — The throughput in MiB/s.

  Only valid for gp3 volumes.

- `volumeType`: string — The EBS volume type.

  Defaults to gp3 if not specified.
