Batch Model¶
Data models for AWS Batch operations.
AWS Batch job models.
Defines the request and response models for creating and managing AWS Batch job definitions and submissions.
CreateDefinitionAndPrepareArgsRequest ¶
Bases: PydanticBaseModel
Request for creating a batch job definition and preparing submission args.
Attributes:
| Name | Type | Description |
|---|---|---|
image |
str
|
Docker image URI for the job. |
job_definition_name |
str
|
Name for the job definition. |
job_queue_name |
str
|
Name of the job queue to submit to. |
job_role_arn |
str | None
|
Optional IAM role ARN for the job. |
job_name |
str | None
|
Optional name for the submitted job. |
command |
list[str]
|
Command to run in the container. |
environment |
dict[str, str]
|
Environment variables for the container. |
job_definition_tags |
dict[str, str]
|
Tags to apply to the job definition. |
resource_requirements |
list[ResourceRequirementTypeDef] | ResourceRequirements
|
CPU, memory, and GPU requirements. |
mount_points |
list[MountPointTypeDef]
|
EFS/volume mount points. |
volumes |
list[VolumeTypeDef]
|
Volume definitions. |
retry_strategy |
RetryStrategyTypeDef | None
|
Job retry configuration. |
privileged |
bool
|
Whether to run in privileged mode. |
CreateDefinitionAndPrepareArgsResponse ¶
Bases: PydanticBaseModel
Response from creating a batch job definition.
Contains the prepared arguments for submitting the batch job.
Attributes:
| Name | Type | Description |
|---|---|---|
job_name |
str
|
Name for the submitted job. |
job_definition_arn |
str | None
|
ARN of the created job definition. |
job_queue_arn |
str
|
ARN of the job queue. |
parameters |
dict[str, Any]
|
Job parameters for submission. |
container_overrides |
dict[str, Any]
|
Container override settings. |