class_docstr: Stop AWS EC2 instance using boto3.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:EC2StopInstanceOperator`
  
  :param instance_id: id of the AWS EC2 instance
  :param aws_conn_id: aws connection to use
  :param region_name: (optional) aws region name associated with the client
  :param check_interval: time in seconds that the job should wait in
      between each instance state checks until operation is completed
code: def __init__(
      self,
      *,
      instance_id: str,
      aws_conn_id: str = "aws_default",
      region_name: str | None = None,
      check_interval: float = 15,
      **kwargs,
  ):
      super().__init__(**kwargs)
      self.instance_id = instance_id
      self.aws_conn_id = aws_conn_id
      self.region_name = region_name
      self.check_interval = check_interval
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.amazon.aws.hooks.ec2 import EC2Hook
label_desc: Use image node_id 1 to create a new EC2StopInstanceOperator object from inherited base classes: BaseOperator with example: obj = EC2StopInstanceOperator()