Describes one or more of your daemon deployments.
A daemon deployment orchestrates the progressive rollout of daemon task updates across container instances managed by the daemon's capacity providers. Each deployment includes circuit breaker and alarm-based rollback capabilities.
Parameters:
-
daemon_deployment_arns
(StringList)
–
The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.
Raises:
Examples:
To describe daemon deployments
This example describes a daemon deployment for the my-monitoring-daemon daemon.
>>> await client.describe_daemon_deployments(daemon_deployment_arns=['arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/aB1cD2eF3gH4iJ5k'])
Source code in docs_src/capo_ecs/_services/async_ecs.py
| async def describe_daemon_deployments(
self,
daemon_deployment_arns: "capo_ecs.types.string_list.StringList",
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
) -> "capo_ecs.types.describe_daemon_deployments_response.DescribeDaemonDeploymentsResponse":
"""<p>Describes one or more of your daemon deployments.</p> <p>A daemon deployment orchestrates the progressive rollout of daemon task updates across container instances managed by the daemon's capacity providers. Each deployment includes circuit breaker and alarm-based rollback capabilities.</p>
Args:
daemon_deployment_arns: <p>The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.</p>
Raises:
capo_ecs.errors.access_denied_exception.AccessDeniedException: <p>You don't have authorization to perform the requested action.</p>
capo_ecs.errors.client_exception.ClientException: <p>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.</p>
capo_ecs.errors.cluster_not_found_exception.ClusterNotFoundException: <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
capo_ecs.errors.invalid_parameter_exception.InvalidParameterException: <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
capo_ecs.errors.server_exception.ServerException: <p>These errors are usually caused by a server issue.</p>
capo_ecs.errors.unsupported_feature_exception.UnsupportedFeatureException: <p>The specified task isn't supported in this Region.</p>
capo_ecs.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To describe daemon deployments
This example describes a daemon deployment for the my-monitoring-daemon daemon.
>>> await client.describe_daemon_deployments(daemon_deployment_arns=['arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/aB1cD2eF3gH4iJ5k'])
"""
async def _handler(
req: "AsyncOperationRequest[capo_ecs.types.describe_daemon_deployments_request.DescribeDaemonDeploymentsRequest]",
) -> AsyncOperationResponse[
"capo_ecs.types.describe_daemon_deployments_response.DescribeDaemonDeploymentsResponse"
]:
import capo_ecs._operations.amazon_ec2_container_service_v20141113.describe_daemon_deployments
(
output,
http_response,
) = await capo_ecs._operations.amazon_ec2_container_service_v20141113.describe_daemon_deployments.async_describe_daemon_deployments(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeDaemonDeployments")
)
input_: capo_ecs.types.describe_daemon_deployments_request.DescribeDaemonDeploymentsRequest = {
"daemon_deployment_arns": daemon_deployment_arns
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|