aws-cdk-lib.aws_batch.CfnJobDefinition.EksVolumeProperty

interface EksVolumeProperty

LanguageType name
.NETAmazon.CDK.AWS.Batch.CfnJobDefinition.EksVolumeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobDefinition_EksVolumeProperty
Javasoftware.amazon.awscdk.services.batch.CfnJobDefinition.EksVolumeProperty
Pythonaws_cdk.aws_batch.CfnJobDefinition.EksVolumeProperty
TypeScript aws-cdk-lib » aws_batch » CfnJobDefinition » EksVolumeProperty

Specifies an Amazon EKS volume for a job definition.

Example

// 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',
  },
  secret: {
    secretName: 'secretName',

    // the properties below are optional
    optional: false,
  },
};

Properties

NameTypeDescription
namestringThe name of the volume.
emptyDir?IResolvable | EmptyDirPropertySpecifies the configuration of a Kubernetes emptyDir volume.
hostPath?IResolvable | HostPathPropertySpecifies the configuration of a Kubernetes hostPath volume.
secret?IResolvable | EksSecretPropertySpecifies the configuration of a Kubernetes secret volume.

name

Type: string

The name of the volume.

The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .


emptyDir?

Type: IResolvable | EmptyDirProperty (optional)

Specifies the configuration of a Kubernetes emptyDir volume.

For more information, see emptyDir in the Kubernetes documentation .


hostPath?

Type: IResolvable | HostPathProperty (optional)

Specifies the configuration of a Kubernetes hostPath volume.

For more information, see hostPath in the Kubernetes documentation .


secret?

Type: IResolvable | EksSecretProperty (optional)

Specifies the configuration of a Kubernetes secret volume.

For more information, see secret in the Kubernetes documentation .