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:
Aaron Hill 2020-07-20 23:17:37 -07:00 committed by GitHub
commit 1e5b8acac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 683 additions and 34 deletions

View file

@ -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",
)