list_daemon_task_definitions
¶
list_daemon_task_definitions(
*,
config_overrides: Optional[ECSClientConfig] = 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/ecs.py
3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 | |