aws-cdk-lib.aws_batch.CfnJobDefinition.EksPropertiesProperty

interface EksPropertiesProperty

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

An object that contains the properties for the Kubernetes resources of a job.

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';

declare const labels: any;
declare const limits: any;
declare const requests: any;
const eksPropertiesProperty: batch.CfnJobDefinition.EksPropertiesProperty = {
  podProperties: {
    containers: [{
      image: 'image',

      // the properties below are optional
      args: ['args'],
      command: ['command'],
      env: [{
        name: 'name',

        // the properties below are optional
        value: 'value',
      }],
      imagePullPolicy: 'imagePullPolicy',
      name: 'name',
      resources: {
        limits: limits,
        requests: requests,
      },
      securityContext: {
        privileged: false,
        readOnlyRootFilesystem: false,
        runAsGroup: 123,
        runAsNonRoot: false,
        runAsUser: 123,
      },
      volumeMounts: [{
        mountPath: 'mountPath',
        name: 'name',
        readOnly: false,
      }],
    }],
    dnsPolicy: 'dnsPolicy',
    hostNetwork: false,
    metadata: {
      labels: labels,
    },
    serviceAccountName: 'serviceAccountName',
    volumes: [{
      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
podProperties?IResolvable | PodPropertiesPropertyThe properties for the Kubernetes pod resources of a job.

podProperties?

Type: IResolvable | PodPropertiesProperty (optional)

The properties for the Kubernetes pod resources of a job.