Describes a daemon task definition. You can specify a family and revision to find information about a specific daemon task definition, or you can simply specify the family to find the latest ACTIVE revision in that family.
Parameters:
-
daemon_task_definition
(String)
–
The family for the latest ACTIVE revision, family and revision (family:revision) for a specific revision in the family, or full Amazon Resource Name (ARN) of the daemon task definition to describe.
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 describe a daemon task definition
This example describes the first revision of the monitoring-agent daemon task definition.
>>> await client.describe_daemon_task_definition(daemon_task_definition='monitoring-agent:1')
Source code in docs_src/capo_ecs/_services/async_ecs.py
| async def describe_daemon_task_definition(
self,
daemon_task_definition: "capo_ecs.types.string.String",
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
) -> "capo_ecs.types.describe_daemon_task_definition_response.DescribeDaemonTaskDefinitionResponse":
"""<p>Describes a daemon task definition. You can specify a <code>family</code> and <code>revision</code> to find information about a specific daemon task definition, or you can simply specify the family to find the latest <code>ACTIVE</code> revision in that family.</p>
Args:
daemon_task_definition: <p>The <code>family</code> for the latest <code>ACTIVE</code> revision, <code>family</code> and <code>revision</code> (<code>family:revision</code>) for a specific revision in the family, or full Amazon Resource Name (ARN) of the daemon task definition to describe.</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.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.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To describe a daemon task definition
This example describes the first revision of the monitoring-agent daemon task definition.
>>> await client.describe_daemon_task_definition(daemon_task_definition='monitoring-agent:1')
"""
async def _handler(
req: "AsyncOperationRequest[capo_ecs.types.describe_daemon_task_definition_request.DescribeDaemonTaskDefinitionRequest]",
) -> AsyncOperationResponse[
"capo_ecs.types.describe_daemon_task_definition_response.DescribeDaemonTaskDefinitionResponse"
]:
import capo_ecs._operations.amazon_ec2_container_service_v20141113.describe_daemon_task_definition
(
output,
http_response,
) = await capo_ecs._operations.amazon_ec2_container_service_v20141113.describe_daemon_task_definition.async_describe_daemon_task_definition(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_ecs.types.describe_daemon_task_definition_response.DescribeDaemonTaskDefinitionResponse",
) -> dict[str, Any]:
import capo_ecs.types.describe_daemon_task_definition_response
return capo_ecs.types.describe_daemon_task_definition_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging(
"DescribeDaemonTaskDefinition", redact_output=_redact_output
),
)
input_: capo_ecs.types.describe_daemon_task_definition_request.DescribeDaemonTaskDefinitionRequest = {
"daemon_task_definition": daemon_task_definition
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|