class_docstr: Deregister a task definition on AWS ECS.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:EcsDeregisterTaskDefinitionOperator`
  
  :param task_definition: The family and revision (family:revision) or full Amazon Resource Name (ARN)
      of the task definition to deregister. If you use a family name, you must specify a revision.
class_docstr_tok: ["Deregister","a","task","definition","on","AWS","ECS",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","EcsDeregisterTaskDefinitionOperator","`",":","param","task_definition",":","The","family","and","revision","(","family",":","revision",")","or","full","Amazon","Resource","Name","(","ARN",")","of","the","task","definition","to","deregister",".","If","you","use","a","family","name",",","you","must","specify","a","revision","."]
code: def execute(self, context: Context):
      self.log.info(
          "Deregistering task definition %s.", self.task_definition
      )
      result = self.client.deregister_task_definition(
          taskDefinition=self.task_definition
      )
      task_definition_details = result["taskDefinition"]
      task_definition_arn = task_definition_details["taskDefinitionArn"]
      self.log.info(
          "Task Definition %r in state: %r.",
          task_definition_arn,
          task_definition_details.get("status"),
      )
      return task_definition_arn
  
imports: from __future__ import annotations
  import re
  import warnings
  from datetime import timedelta
  from functools import cached_property
  from typing import TYPE_CHECKING, Sequence
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.amazon.aws.exceptions import EcsOperatorError, EcsTaskFailToStart
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
  from airflow.providers.amazon.aws.hooks.ecs import EcsClusterStates, EcsHook, should_retry_eni
  from airflow.providers.amazon.aws.hooks.logs import AwsLogsHook
  from airflow.providers.amazon.aws.operators.base_aws import AwsBaseOperator
  from airflow.providers.amazon.aws.triggers.ecs import ClusterActiveTrigger, ClusterInactiveTrigger, TaskDoneTrigger
  from airflow.providers.amazon.aws.utils.identifiers import generate_uuid
  from airflow.providers.amazon.aws.utils.mixins import aws_template_fields
  from airflow.providers.amazon.aws.utils.task_log_fetcher import AwsTaskLogFetcher
  from airflow.utils.helpers import prune_dict
label_desc: Use image node_id 2 for calling the EcsDeregisterTaskDefinitionOperator obj's underlying member method code with example usage: obj.execute(context) and returns: task_definition_arn