list_daemon_task_definitions
async
¶
list_daemon_task_definitions(
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
family_prefix: Optional[String] = None,
family: Optional[String] = None,
revision: Optional[DaemonTaskDefinitionRevisionFilter] = None,
status: Optional[DaemonTaskDefinitionStatusFilter] = None,
sort: Optional[SortOrder] = None,
next_token: Optional[String] = None,
max_results: Optional[BoxedInteger] = None,
) -> ListDaemonTaskDefinitionsResponse
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.
Parameters:
-
family_prefix(Optional[String], default:None) –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(Optional[String], default:None) –The exact name of the daemon task definition family to filter results with.
-
revision(Optional[DaemonTaskDefinitionRevisionFilter], default:None) –The revision filter to apply. Specify
LAST_REGISTEREDto return only the last registered revision for each daemon task definition family. -
status(Optional[DaemonTaskDefinitionStatusFilter], default:None) –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(Optional[SortOrder], default:None) –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. -
next_token(Optional[String], default:None) –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.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.
-
max_results(Optional[BoxedInteger], default:None) –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.
Raises:
-
AccessDeniedException–You don't have authorization to perform the requested action.
-
ClientException–These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.
-
InvalidParameterException–The specified parameter isn't valid. Review the available parameters for the API request.
For more information about service event errors, see Amazon ECS service event messages.
-
ServerException–These errors are usually caused by a server issue.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list daemon task definitions This example lists all daemon task definitions in your account that start with the monitoring prefix.
Source code in docs_src/capo_ecs/_services/async_ecs.py
4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 | |