BatchSchedulingPolicy
Bases: DuploResourceV3
Manage AWS Batch Scheduling Policies
Run batch jobs as a managed service on AWS infrastructure.
Read more docs here: https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/batch
Commands
apply
Apply a BatchSchedulingPolicy
Create or Update a BatchSchedulingPolicy resource with Duplocloud cli.
CLI Usage
Contents of thebatchschedulingpolicy.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
Parameters:
--file, -f, --cli-input
--patches, --add, --remove, --copy, --replace, --test, --move
create
Create a BatchSchedulingPolicy resource.
CLI Usage
Contents of thebatchschedulingpolicy.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
delete
Delete a BatchSchedulingPolicy resource by name.
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
A success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the {{kind}} resource could not be found or deleted. |
Parameters:
name
positional
find
list
Retrieve a List of BatchSchedulingPolicy resources
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
A list of BatchSchedulingPolicy. |
update
Update a Batch Scheduling Policy.
The DuploCloud backend expects PUT to the collection endpoint with the resource identified by the body, not by the URL path.
Returns:
| Name | Type | Description |
|---|---|---|
resource |
dict
|
The updated scheduling policy. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the scheduling policy could not be updated. |
Parameters:
name
positional
--file, -f, --cli-input
--patches, --add, --remove, --copy, --replace, --test, --move