@aws-cdk_aws-batch-alpha.ComputeEnvironmentProps

interface ComputeEnvironmentProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Batch.Alpha.ComputeEnvironmentProps
Gogithub.com/aws/aws-cdk-go/awscdkbatchalpha/v2#ComputeEnvironmentProps
Javasoftware.amazon.awscdk.services.batch.alpha.ComputeEnvironmentProps
Pythonaws_cdk.aws_batch_alpha.ComputeEnvironmentProps
TypeScript (source)@aws-cdk/aws-batch-alpha ยป ComputeEnvironmentProps

Props common to all ComputeEnvironments.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as batch_alpha from '@aws-cdk/aws-batch-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const computeEnvironmentProps: batch_alpha.ComputeEnvironmentProps = {
  computeEnvironmentName: 'computeEnvironmentName',
  enabled: false,
  serviceRole: role,
};

Properties

NameTypeDescription
computeEnvironmentName?๐Ÿ”นstringThe name of the ComputeEnvironment.
enabled?๐Ÿ”นbooleanWhether or not this ComputeEnvironment can accept jobs from a Queue.
serviceRole?๐Ÿ”นIRoleThe role Batch uses to perform actions on your behalf in your account, such as provision instances to run your jobs.

computeEnvironmentName?๐Ÿ”น

Type: string (optional, default: generated by CloudFormation)

The name of the ComputeEnvironment.


enabled?๐Ÿ”น

Type: boolean (optional, default: true)

Whether or not this ComputeEnvironment can accept jobs from a Queue.

Enabled ComputeEnvironments can accept jobs from a Queue and can scale instances up or down. Disabled ComputeEnvironments cannot accept jobs from a Queue or scale instances up or down.

If you change a ComputeEnvironment from enabled to disabled while it is executing jobs, Jobs in the STARTED or RUNNING states will not be interrupted. As jobs complete, the ComputeEnvironment will scale instances down to minvCpus.

To ensure you aren't billed for unused capacity, set minvCpus to 0.


serviceRole?๐Ÿ”น

Type: IRole (optional, default: a serviceRole will be created for managed CEs, none for unmanaged CEs)

The role Batch uses to perform actions on your behalf in your account, such as provision instances to run your jobs.