EbsVolumeConfigurationProperty Struct
Configuration for an EBS-backed persistent volume.
| 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_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
# 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
// 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();
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"
};
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
encryptedoptionalboolean | IResolvableencryptedoptionaltyping.Union[bool, IResolvable]encryptedoptionalBooleanEncryptedoptionalboolEncryptedoptionalinterface{} #Whether to encrypt the volume.
Defaults to true.
The number of IOPS to provision.
Only valid for gp3, io1, and io2 volumes.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #Identifier of the KMS key to use for encryption.
The logical name of the volume, used to reference it when mounting.
The size of the volume in GiB.
snapshotIdoptionalstringsnapshot_idoptionalstrsnapshotIdoptionalStringSnapshotIdoptionalstringSnapshotIdoptional*string #Optional EBS snapshot ID to initialize the volume from.
throughputoptionalnumberthroughputoptionalint | floatthroughputoptionalNumberThroughputoptionaldoubleThroughputoptional*float64 #The throughput in MiB/s.
Only valid for gp3 volumes.
volumeTypeoptionalstringvolume_typeoptionalstrvolumeTypeoptionalStringVolumeTypeoptionalstringVolumeTypeoptional*string #The EBS volume type.
Defaults to gp3 if not specified.