ECS / Client / list_daemon_task_definitions
list_daemon_task_definitions¶
- ECS.Client.list_daemon_task_definitions(**kwargs)¶
Returns a list of daemon task definitions that are registered to your account. You can filter the results by family name, status, or both to find daemon task definitions that match your criteria.
See also: AWS API Documentation
Request Syntax
response = client.list_daemon_task_definitions( familyPrefix='string', family='string', revision='LAST_REGISTERED', status='ACTIVE'|'DELETE_IN_PROGRESS'|'ALL', sort='ASC'|'DESC', nextToken='string', maxResults=123 )
- Parameters:
familyPrefix (string) – The full family name to filter the
ListDaemonTaskDefinitionsresults with. Specifying afamilyPrefixlimits the listed daemon task definitions to daemon task definition families that start with thefamilyPrefixstring.family (string) – The exact name of the daemon task definition family to filter results with.
revision (string) – The revision filter to apply. Specify
LAST_REGISTEREDto return only the last registered revision for each daemon task definition family.status (string) – The daemon task definition status to filter the
ListDaemonTaskDefinitionsresults with. By default, onlyACTIVEdaemon task definitions are listed. If you set this parameter toDELETE_IN_PROGRESS, only daemon task definitions that are in the process of being deleted are listed. If you set this parameter toALL, all daemon task definitions are listed regardless of status.sort (string) – The order to sort the results. Valid values are
ASCandDESC. By default (ASC), daemon task definitions are listed in ascending order by family name and revision number.nextToken (string) –
The
nextTokenvalue returned from aListDaemonTaskDefinitionsrequest indicating that more results are available to fulfill the request and further calls will be needed. IfmaxResultswas provided, it’s possible for the number of results to be fewer thanmaxResults.Note
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
maxResults (integer) – The maximum number of daemon task definition results that
ListDaemonTaskDefinitionsreturned in paginated output. When this parameter is used,ListDaemonTaskDefinitionsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListDaemonTaskDefinitionsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter isn’t used, thenListDaemonTaskDefinitionsreturns up to 100 results and anextTokenvalue if applicable.
- Return type:
dict
- Returns:
Response Syntax
{ 'daemonTaskDefinitions': [ { 'arn': 'string', 'registeredAt': datetime(2015, 1, 1), 'registeredBy': 'string', 'deleteRequestedAt': datetime(2015, 1, 1), 'status': 'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETED' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
daemonTaskDefinitions (list) –
The list of daemon task definition summaries.
(dict) –
A summary of a daemon task definition.
arn (string) –
The Amazon Resource Name (ARN) of the daemon task definition.
registeredAt (datetime) –
The Unix timestamp for the time when the daemon task definition was registered.
registeredBy (string) –
The principal that registered the daemon task definition.
deleteRequestedAt (datetime) –
The Unix timestamp for the time when the daemon task definition delete was requested.
status (string) –
The status of the daemon task definition.
nextToken (string) –
The
nextTokenvalue to include in a futureListDaemonTaskDefinitionsrequest. When the results of aListDaemonTaskDefinitionsrequest exceedmaxResults, this value can be used to retrieve the next page of results.
Exceptions
ECS.Client.exceptions.AccessDeniedExceptionECS.Client.exceptions.ServerExceptionECS.Client.exceptions.InvalidParameterExceptionECS.Client.exceptions.ClientException