EksPersistentVolumeClaimProperty Struct
A persistentVolumeClaim volume is used to mount a PersistentVolume into a Pod. PersistentVolumeClaims are a way for users to "claim" durable storage without knowing the details of the particular cloud environment. See the information about PersistentVolumes in the Kubernetes documentation .
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const eksPersistentVolumeClaimProperty: batch.CfnJobDefinition.EksPersistentVolumeClaimProperty = {
claimName: 'claimName',
// the properties below are optional
readOnly: false,
};
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_batch as batch
eks_persistent_volume_claim_property = batch.CfnJobDefinition.EksPersistentVolumeClaimProperty(
claim_name="claimName",
# the properties below are optional
read_only=False
)
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.batch.*;
EksPersistentVolumeClaimProperty eksPersistentVolumeClaimProperty = EksPersistentVolumeClaimProperty.builder()
.claimName("claimName")
// the properties below are optional
.readOnly(false)
.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.Batch;
var eksPersistentVolumeClaimProperty = new EksPersistentVolumeClaimProperty {
ClaimName = "claimName",
// the properties below are optional
ReadOnly = false
};
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"
eksPersistentVolumeClaimProperty := &EksPersistentVolumeClaimProperty{
ClaimName: jsii.String("claimName"),
// the properties below are optional
ReadOnly: jsii.Boolean(false),
}
Properties
The name of the `persistentVolumeClaim` bounded to a `persistentVolume` .
For more information, see Persistent Volume Claims in the Kubernetes documentation .
readOnlyoptionalboolean | IResolvableread_onlyoptionaltyping.Union[bool, IResolvable]readOnlyoptionalBooleanReadOnlyoptionalboolReadOnlyoptionalinterface{}#An optional boolean value indicating if the mount is read only.
Default is false. For more information, see Read Only Mounts in the Kubernetes documentation .