yggdrasil.aws.batch¶
batch ¶
AWS Batch runtime resource + service (folder module: resource in
resource.py, service in service.py).
AWSBatch ¶
Bases: AWSResource
The AWS Batch runtime context this process is running under.
>>> AWSClient.current().batch.is_batch
True
>>> AWSClient.current().batch
AWSBatch(URL('https://eu-west-1.console.aws.amazon.com/batch/home?region=eu-west-1#jobs/detail/abc'))
Off-Batch every field is None and :attr:is_batch is False; the
captured env is snapshotted at construction so the resource is stable and
picklable.
BatchService ¶
Bases: AWSService
AWS Batch service binding (the boto batch client lives on
:attr:boto_client for future control-plane calls).
in_aws_environment ¶
True when running inside AWS-managed compute (Batch / ECS / Fargate / Lambda). Pure env-var probe — no IMDS round trip.