:doc:`BedrockAgentCore <../../bedrock-agentcore>` / Client / get_memory_record

*****************
get_memory_record
*****************



.. py:method:: BedrockAgentCore.Client.get_memory_record(**kwargs)

  

  Retrieves a specific memory record from an AgentCore Memory resource.

   

  To use this operation, you must have the ``bedrock-agentcore:GetMemoryRecord`` permission.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetMemoryRecord>`_  


  **Request Syntax**
  ::

    response = client.get_memory_record(
        memoryId='string',
        memoryRecordId='string'
    )
    
  :type memoryId: string
  :param memoryId: **[REQUIRED]** 

    The identifier of the AgentCore Memory resource containing the memory record.

    

  
  :type memoryRecordId: string
  :param memoryRecordId: **[REQUIRED]** 

    The identifier of the memory record to retrieve.

    

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

    
    ::

      {
          'memoryRecord': {
              'memoryRecordId': 'string',
              'content': {
                  'text': 'string'
              },
              'memoryStrategyId': 'string',
              'namespaces': [
                  'string',
              ],
              'createdAt': datetime(2015, 1, 1),
              'metadata': {
                  'string': {
                      'stringValue': 'string'
                  }
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **memoryRecord** *(dict) --* 

        The requested memory record.

        
        

        - **memoryRecordId** *(string) --* 

          The unique identifier of the memory record.

          
        

        - **content** *(dict) --* 

          The content of the memory record.

          .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``text``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


        
          

          - **text** *(string) --* 

            The text content of the memory record.

            
      
        

        - **memoryStrategyId** *(string) --* 

          The identifier of the memory strategy associated with this record.

          
        

        - **namespaces** *(list) --* 

          The namespaces associated with this memory record. Namespaces help organize and categorize memory records.

          
          

          - *(string) --* 
      
        

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

          The timestamp when the memory record was created.

          
        

        - **metadata** *(dict) --* 

          A map of metadata key-value pairs associated with a memory record.

          
          

          - *(string) --* 
            

            - *(dict) --* 

              Value associated with the ``eventMetadata`` key.

              .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``stringValue``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                            'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


            
              

              - **stringValue** *(string) --* 

                Value associated with the ``eventMetadata`` key.

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

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.ThrottledException`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.ServiceException`

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

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.ValidationException`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.InvalidInputException`

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

  