EcsService
Bases: DuploTenantResourceV2
apply
Apply a service.
find
Find a ECS service by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the ECS service to find. |
required |
Returns: The ECS service object. Raises: DuploError: If the ECS service could not be found.
find_def
Find a ECS task definition by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the ECS task definition to find. |
required |
Returns: The ECS task definition object. Raises: DuploError: If the ECS task definition could not be found.
find_def_by_arn
Find a ECS task definition by ARN.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
arn
|
str
|
The ARN of the ECS task definition to find. |
required |
Returns: The ECS task definition object. Raises: DuploError: If the ECS task definition could not be found.
find_task_def_family
Find a ECS task definition by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the ECS task definition to find. |
required |
Returns: The ECS task definition object. Raises: DuploError: If the ECS task definition could not be found.
list
Retrieve a list of all ECS services in a tenant.
list_task_def_family
update
Update an ECS service.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
dict
|
The updated ECS service object. |
required |
Returns: The updated ECS object. Raises: DuploError: If the ECS service could not be updated.
update_image
update_taskdef
Update an ECS task definition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
dict
|
The updated ECS task definition object. |
required |
Returns: The updated ECS object. Raises: DuploError: If the ECS task definition could not be updated.