class_docstr: AWS environment.
docstr: Initialize the AWS environment.
  
  Arguments:
      region (str): The AWS region.
  
  Raises:
      LaunchError: If the AWS environment is not configured correctly.
docstr_tok: ["Initialize","the","AWS","environment",".","Arguments",":","region","(","str",")",":","The","AWS","region",".","Raises",":","LaunchError",":","If","the","AWS","environment","is","not","configured","correctly","."]
code: def __init__(
      self,
      region: str,
      access_key: str,
      secret_key: str,
      session_token: str,
  ) -> None:
      """Initialize the AWS environment.
  
      Arguments:
          region (str): The AWS region.
  
      Raises:
          LaunchError: If the AWS environment is not configured correctly.
      """
      super().__init__()
      _logger.info(f"Initializing AWS environment in region {region}.")
      self._region = region
      self._access_key = access_key
      self._secret_key = secret_key
      self._session_token = session_token
      self._account = None
  
file_path: wandb/wandb/sdk/launch/environment/aws_environment.py
imports: import logging
  import os
  from typing import Dict, Optional
  from wandb.sdk.launch.errors import LaunchError
  from wandb.util import get_module
  from ..utils import S3_URI_RE, event_loop_thread_exec
  from .abstract import AbstractEnvironment
label_desc: Use image node_id 1 to create a new AwsEnvironment object from inherited base classes: AbstractEnvironment with example: obj = AwsEnvironment(region, access_key, secret_key, session_token)