  def ec2(self) -> ec2.EC2:
    """Get an AWS ec2 object for the account.

    Returns:
      AWSEC2: Object that represents AWS EC2 services.
    """

    if self._ec2:
      return self._ec2
    self._ec2 = ec2.EC2(self)
    return self._ec2
Get an AWS ec2 object for the account.

Returns:
AWSEC2: Object that represents AWS EC2 services.
libcloudforensics/providers/aws/internal/account.py