BatchJob
Bases: DuploTenantResourceV3
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
apply
Apply a BatchJob
Create or Update a BatchJob resource with Duplocloud cli.
CLI Usage
Contents of thebatchjob.yaml
file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
BODY
|
The resource to apply. |
required |
wait
|
WAIT
|
Wait for the resource to be created. |
False
|
patches
|
PATCHES
|
The patches to apply to the resource. |
None
|
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
Success message. |
create
Create a Batch Job resource.
CLI Usage
Contents of thebatchjob.yaml
file
One liner example
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
BODY
|
The resource to create. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
Success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the resource could not be created. |
delete
Delete a BatchJob resource by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the BatchJob resource to delete. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the {{kind}} resource could not be found or deleted. |
find
Find a Single Batch Job by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the Batch Job Definition to find. |
None
|
queue_name
|
The name of the Batch Queue for this job. |
required | |
to_revision
|
The specific revision of the Batch Job Definition to find. If negative it will walk back that number of revisions from whatever number is the highest revision. |
required |
Returns:
Name | Type | Description |
---|---|---|
resource |
dict
|
The Batch Job Definition object. |
list
update
Update a V3 resource by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the resource to update. |
None
|
body
|
BODY
|
The resource to update. |
None
|
patches
|
PATCHES
|
The patches to apply to the resource. |
None
|
Returns:
Name | Type | Description |
---|---|---|
message |
Success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the resource could not be created. |