docstr: stop Unified CloudWatch Agent
docstr_tok: ["stop","Unified","CloudWatch","Agent"]
code: def _stop_cloudwatch_agent(self) -> None:
      """stop Unified CloudWatch Agent"""
      logger.info(
          "Stopping Unified CloudWatch Agent package on node {}.".format(
              self.node_id
          )
      )
      parameters_stop_cwa = {
          "action": ["stop"],
          "mode": ["ec2"],
      }
      # don't retry failed stop commands
      # (there's not always an agent to stop)
      self._ssm_command_waiter(
          "AmazonCloudWatch-ManageAgent",
          parameters_stop_cwa,
          self.node_id,
          False,
      )
      logger.info(
          "Unified CloudWatch Agent stopped on node {}.".format(
              self.node_id
          )
      )
  
imports: import copy
  import hashlib
  import json
  import logging
  import os
  import time
  from enum import Enum
  from typing import Any, Callable, Dict, List, Union
  import botocore
  from ray.autoscaler._private.aws.utils import client_cache, resource_cache
  from ray.autoscaler.tags import NODE_KIND_HEAD, TAG_RAY_CLUSTER_NAME, TAG_RAY_NODE_KIND
label_desc: Use image node_id 27 for calling the CloudwatchHelper obj's underlying member method code with example usage: obj._stop_cloudwatch_agent() without return types