code: def __init__(self, config: RouteConfig):
      super().__init__(config)
  
      if config.model.config is None or not isinstance(
          config.model.config, AWSBedrockConfig
      ):
          raise TypeError(f"Invalid config type {config.model.config}")
      self.bedrock_config: AWSBedrockConfig = config.model.config
      self._client = None
      self._client_created = 0
  
imports: import json
  import time
  from enum import Enum
  import boto3
  import botocore.config
  import botocore.exceptions
  from fastapi import HTTPException
  from fastapi.encoders import jsonable_encoder
  from mlflow.gateway.config import AWSBedrockConfig, AWSIdAndKey, AWSRole, RouteConfig
  from mlflow.gateway.constants import MLFLOW_AI_GATEWAY_ANTHROPIC_DEFAULT_MAX_TOKENS
  from mlflow.gateway.exceptions import AIGatewayConfigException
  from mlflow.gateway.providers.anthropic import AnthropicAdapter
  from mlflow.gateway.providers.base import BaseProvider, ProviderAdapter
  from mlflow.gateway.providers.cohere import CohereAdapter
  from mlflow.gateway.providers.utils import rename_payload_keys
  from mlflow.gateway.schemas import chat, completions, embeddings
label_desc: Use image node_id 1 to create a new AWSBedrockProvider object from inherited base classes: BaseProvider with example: obj = AWSBedrockProvider(config)