BatchJob
Bases: DuploResourceV3
Manage AWS Batch Job Resources
Run batch jobs as a managed service on AWS infrastructure.
Read more docs here: https://docs.duplocloud.com/docs/overview/aws-services/batch
Commands
apply
Apply a BatchJob
Create or Update a BatchJob resource with Duplocloud cli.
CLI Usage
Contents of thebatchjob.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
Parameters:
--file, -f, --cli-input
A file to read the input from
--patches, --add, --remove, --copy, --replace, --test, --move
The json patch to apply
create
Create a Batch Job resource.
CLI Usage
Contents of thebatchjob.yaml file
One liner example
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the resource could not be created. |
Parameters:
--file, -f, --cli-input
A file to read the input from
delete
find
list
List all Batch Job Definitions.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
A list of Batch Job Definitions. |
Parameters:
--queue, -BQ, -bq, --batch-queue
The name of a Batch Queue
--all, --all
Boolean flag to select all. Defaults to False.
update
Update a V3 resource by name.
Returns:
| Name | Type | Description |
|---|---|---|
message |
Success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the resource could not be created. |
Parameters:
name
positional
The resource name
--file, -f, --cli-input
A file to read the input from
--patches, --add, --remove, --copy, --replace, --test, --move
The json patch to apply