list_daemon_deployments
async
¶
list_daemon_deployments(
daemon_arn: String,
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
status: Optional[DaemonDeploymentStatusList] = None,
created_at: Optional[CreatedAt] = None,
max_results: Optional[BoxedInteger] = None,
next_token: Optional[String] = None,
) -> ListDaemonDeploymentsResponse
Returns a list of daemon deployments for a specified daemon. You can filter the results by status or creation time.
Parameters:
-
daemon_arn(String) –The Amazon Resource Name (ARN) of the daemon to list deployments for.
-
status(Optional[DaemonDeploymentStatusList], default:None) –An optional filter to narrow the
ListDaemonDeploymentsresults by deployment status. If you don't specify a status, all deployments are returned. -
created_at(Optional[CreatedAt], default:None) –An optional filter to narrow the
ListDaemonDeploymentsresults by creation time. If you don't specify a time range, all deployments are returned. -
max_results(Optional[BoxedInteger], default:None) –The maximum number of daemon deployment results that
ListDaemonDeploymentsreturned in paginated output. When this parameter is used,ListDaemonDeploymentsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListDaemonDeploymentsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter isn't used, thenListDaemonDeploymentsreturns up to 20 results and anextTokenvalue if applicable. -
next_token(Optional[String], default:None) –The
nextTokenvalue returned from aListDaemonDeploymentsrequest 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.
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.
-
ClusterNotFoundException–The specified cluster wasn't found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region specific.
-
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.
-
UnsupportedFeatureException–The specified task isn't supported in this Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list daemon deployments This example lists all successful daemon deployments for the my-monitoring-daemon daemon.
>>> await client.list_daemon_deployments(daemon_arn='arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon', status=['SUCCESSFUL'])
Source code in docs_src/capo_ecs/_services/async_ecs.py
3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 | |