:doc:`BedrockAgentCoreControl <../../bedrock-agentcore-control>` / Client / get_code_interpreter

********************
get_code_interpreter
********************



.. py:method:: BedrockAgentCoreControl.Client.get_code_interpreter(**kwargs)

  

  Gets information about a custom code interpreter.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-control-2023-06-05/GetCodeInterpreter>`_  


  **Request Syntax**
  ::

    response = client.get_code_interpreter(
        codeInterpreterId='string'
    )
    
  :type codeInterpreterId: string
  :param codeInterpreterId: **[REQUIRED]** 

    The unique identifier of the code interpreter to retrieve.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'codeInterpreterId': 'string',
          'codeInterpreterArn': 'string',
          'name': 'string',
          'description': 'string',
          'executionRoleArn': 'string',
          'networkConfiguration': {
              'networkMode': 'PUBLIC'|'SANDBOX'|'VPC',
              'vpcConfig': {
                  'securityGroups': [
                      'string',
                  ],
                  'subnets': [
                      'string',
                  ]
              }
          },
          'status': 'CREATING'|'CREATE_FAILED'|'READY'|'DELETING'|'DELETE_FAILED'|'DELETED',
          'failureReason': 'string',
          'createdAt': datetime(2015, 1, 1),
          'lastUpdatedAt': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **codeInterpreterId** *(string) --* 

        The unique identifier of the code interpreter.

        
      

      - **codeInterpreterArn** *(string) --* 

        The Amazon Resource Name (ARN) of the code interpreter.

        
      

      - **name** *(string) --* 

        The name of the code interpreter.

        
      

      - **description** *(string) --* 

        The description of the code interpreter.

        
      

      - **executionRoleArn** *(string) --* 

        The IAM role ARN that provides permissions for the code interpreter.

        
      

      - **networkConfiguration** *(dict) --* 

        The network configuration for a code interpreter. This structure defines how the code interpreter connects to the network.

        
        

        - **networkMode** *(string) --* 

          The network mode for the code interpreter. This field specifies how the code interpreter connects to the network.

          
        

        - **vpcConfig** *(dict) --* 

          VpcConfig for the Agent.

          
          

          - **securityGroups** *(list) --* 

            The security groups associated with the VPC configuration.

            
            

            - *(string) --* 
        
          

          - **subnets** *(list) --* 

            The subnets associated with the VPC configuration.

            
            

            - *(string) --* 
        
      
    
      

      - **status** *(string) --* 

        The current status of the code interpreter.

        
      

      - **failureReason** *(string) --* 

        The reason for failure if the code interpreter is in a failed state.

        
      

      - **createdAt** *(datetime) --* 

        The timestamp when the code interpreter was created.

        
      

      - **lastUpdatedAt** *(datetime) --* 

        The timestamp when the code interpreter was last updated.

        
  
  **Exceptions**
  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ThrottlingException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.InternalServerException`

  