EksVolumeProperty Struct
Specifies an Amazon EKS volume for a job definition.
| 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_batch as batch } from 'aws-cdk-lib';
const eksVolumeProperty: batch.CfnJobDefinition.EksVolumeProperty = {
name: 'name',
// the properties below are optional
emptyDir: {
medium: 'medium',
sizeLimit: 'sizeLimit',
},
hostPath: {
path: 'path',
},
persistentVolumeClaim: {
claimName: 'claimName',
// the properties below are optional
readOnly: false,
},
secret: {
secretName: 'secretName',
// the properties below are optional
optional: 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_volume_property = batch.CfnJobDefinition.EksVolumeProperty(
name="name",
# the properties below are optional
empty_dir=batch.CfnJobDefinition.EmptyDirProperty(
medium="medium",
size_limit="sizeLimit"
),
host_path=batch.CfnJobDefinition.HostPathProperty(
path="path"
),
persistent_volume_claim=batch.CfnJobDefinition.EksPersistentVolumeClaimProperty(
claim_name="claimName",
# the properties below are optional
read_only=False
),
secret=batch.CfnJobDefinition.EksSecretProperty(
secret_name="secretName",
# the properties below are optional
optional=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.*;
EksVolumeProperty eksVolumeProperty = EksVolumeProperty.builder()
.name("name")
// the properties below are optional
.emptyDir(EmptyDirProperty.builder()
.medium("medium")
.sizeLimit("sizeLimit")
.build())
.hostPath(HostPathProperty.builder()
.path("path")
.build())
.persistentVolumeClaim(EksPersistentVolumeClaimProperty.builder()
.claimName("claimName")
// the properties below are optional
.readOnly(false)
.build())
.secret(EksSecretProperty.builder()
.secretName("secretName")
// the properties below are optional
.optional(false)
.build())
.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 eksVolumeProperty = new EksVolumeProperty {
Name = "name",
// the properties below are optional
EmptyDir = new EmptyDirProperty {
Medium = "medium",
SizeLimit = "sizeLimit"
},
HostPath = new HostPathProperty {
Path = "path"
},
PersistentVolumeClaim = new EksPersistentVolumeClaimProperty {
ClaimName = "claimName",
// the properties below are optional
ReadOnly = false
},
Secret = new EksSecretProperty {
SecretName = "secretName",
// the properties below are optional
Optional = 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"
eksVolumeProperty := &EksVolumeProperty{
Name: jsii.String("name"),
// the properties below are optional
EmptyDir: &EmptyDirProperty{
Medium: jsii.String("medium"),
SizeLimit: jsii.String("sizeLimit"),
},
HostPath: &HostPathProperty{
Path: jsii.String("path"),
},
PersistentVolumeClaim: &EksPersistentVolumeClaimProperty{
ClaimName: jsii.String("claimName"),
// the properties below are optional
ReadOnly: jsii.Boolean(false),
},
Secret: &EksSecretProperty{
SecretName: jsii.String("secretName"),
// the properties below are optional
Optional: jsii.Boolean(false),
},
}
Properties
emptyDiroptionalIResolvable | CfnJobDefinition.empty_diroptionaltyping.Union[IResolvable, EmptyDirProperty]emptyDiroptionalIResolvableEmptyDiroptionalIResolvableEmptyDiroptionalinterface{} #Specifies the configuration of a Kubernetes `emptyDir` volume.
For more information, see emptyDir in the Kubernetes documentation .
hostPathoptionalIResolvable | CfnJobDefinition.host_pathoptionaltyping.Union[IResolvable, HostPathProperty]hostPathoptionalIResolvableHostPathoptionalIResolvableHostPathoptionalinterface{} #Specifies the configuration of a Kubernetes `hostPath` volume.
For more information, see hostPath in the Kubernetes documentation .
The name of the volume.
notes
The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .
persistentVolumeClaimoptionalIResolvable | CfnJobDefinition.persistent_volume_claimoptionaltyping.Union[IResolvable, EksPersistentVolumeClaimProperty]persistentVolumeClaimoptionalIResolvablePersistentVolumeClaimoptionalIResolvablePersistentVolumeClaimoptionalinterface{} #Specifies the configuration of a Kubernetes `persistentVolumeClaim` bounded to a `persistentVolume` .
For more information, see Persistent Volume Claims in the Kubernetes documentation .
secretoptionalIResolvable | CfnJobDefinition.secretoptionaltyping.Union[IResolvable, EksSecretProperty]secretoptionalIResolvableSecretoptionalIResolvableSecretoptionalinterface{} #Specifies the configuration of a Kubernetes `secret` volume.
For more information, see secret in the Kubernetes documentation .