Registry / aws / aws-cdk-aws-batch-alpha

aws-cdk-aws-batch-alpha

JSON →
library2.95.1a0pypypiunverified

The CDK Construct Library for AWS::Batch (Alpha). Current version: 2.95.1a0. This is an alpha module with no SLA or feature freeze; APIs are subject to breaking changes without major version bumps.

pip install aws-cdk-aws-batch-alpha
INSTALL
IMPORT
SIG · AWS-CDK-AWS-BATCH-
A
aws-cdk-aws-batch-alpha
awspythonv2.95.1a0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Batch
from aws_cdk.aws_batch_alpha import Batch
from aws_cdk.aws_batch import Batch
Alpha module has separate import path with '_alpha' suffix. Using non-alpha import will fail.
JobDefinition
from aws_cdk.aws_batch_alpha import JobDefinition
from aws_cdk.aws_batch import JobDefinition
Same as Batch: alpha constructs are in aws_batch_alpha.
ComputeEnvironment
from aws_cdk.aws_batch_alpha import ComputeEnvironment
Correct import path.
JobQueue
from aws_cdk.aws_batch_alpha import JobQueue
Correct import path.

Minimal CDK app that creates an AWS Batch compute environment, job queue, and job definition.

from aws_cdk import App, Stack from aws_cdk.aws_batch_alpha import Batch, ComputeEnvironment, JobDefinition, JobQueue from aws_cdk.aws_ec2 import Vpc from constructs import Construct app = App() stack = Stack(app, "MyBatchStack") vpc = Vpc(stack, "Vpc") compute_env = ComputeEnvironment( stack, "ComputeEnv", managed=True, vpc=vpc ) job_queue = JobQueue( stack, "JobQueue", priority=1, compute_environments=[compute_env] ) job_def = JobDefinition( stack, "JobDef", container={ "image": "public.ecr.aws/batch/job:latest", "command": ["echo", "hello"], "memory": 512, "vcpus": 1 } ) app.synth()
cdk --version
Debug
Known issues
breakingAlpha modules have no stability guarantee; minor version bumps can include breaking changes without warning. Pin to exact version in production.
fix
Pin version: pip install aws-cdk-aws-batch-alpha==2.95.1a0
affects: all alpha versions (pre-1.0.0 or with 'a' suffix)
gotchaImport paths require '_alpha' suffix; common mistake to import from aws_cdk.aws_batch instead of aws_cdk.aws_batch_alpha.
fix
Use correct import: from aws_cdk.aws_batch_alpha import ...
affects: all
deprecatedSome properties (e.g., 'environment' in JobDefinition) have been deprecated in favor of new constructs. Check CDK documentation for current patterns.
fix
Use the latest construct properties as per CDK API reference.
affects: >=2.0.0
Upgrade
Version history
2.95.1a0latest on PyPI · released Sep 9, 2023
Audit
Dependencies
aws-cdk-librequiredCDK core library; batch constructs depend on core resources.
constructsrequiredRequired by all CDK constructs.
Agent activity
32 hits · last 30 days
node
28
OpenAI (training)
2
Resources
aws-cdk-aws-batch-alpha — pip install aws-cdk-aws-batch-alpha · libregistry