Implementation: ECS Task Sets (#3152)
* initial implementation of taskSets. Fixed a bug with ECS Service where task_definition was a required parameter. * Added update_task_set and tests. DRYed up ClusterNotFoundException. General cleanup. * Added support for filtering tags on include parameter to describe_task_sets. Added additional tests. * Fix copy/pasta in ClusterNotFoundException * styling updates * Added TODO for delete_task_set force parameter * Updated multiple function and constructor calls to use named variables. Updated tests to reference variables instead of hardcoded strings. * Run black for formatting * Updated create_service function call to use named variables
This commit is contained in:
parent
fdeee07762
commit
1e5b8acac6
5 changed files with 683 additions and 34 deletions
|
|
@ -21,3 +21,22 @@ class TaskDefinitionNotFoundException(JsonRESTError):
|
|||
error_type="ClientException",
|
||||
message="The specified task definition does not exist.",
|
||||
)
|
||||
|
||||
|
||||
class TaskSetNotFoundException(JsonRESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self):
|
||||
super(TaskSetNotFoundException, self).__init__(
|
||||
error_type="ClientException",
|
||||
message="The specified task set does not exist.",
|
||||
)
|
||||
|
||||
|
||||
class ClusterNotFoundException(JsonRESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self):
|
||||
super(ClusterNotFoundException, self).__init__(
|
||||
error_type="ClientException", message="Cluster not found",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue