list_daemon_deployments
¶
list_daemon_deployments(
daemon_arn: String,
*,
config_overrides: Optional[ECSClientConfig] = 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.
>>> 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/ecs.py
3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 | |