:doc:`HealthImaging <../../medical-imaging>` / Client / create_datastore

****************
create_datastore
****************



.. py:method:: HealthImaging.Client.create_datastore(**kwargs)

  

  Create a data store.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/medical-imaging-2023-07-19/CreateDatastore>`_  


  **Request Syntax**
  ::

    response = client.create_datastore(
        datastoreName='string',
        clientToken='string',
        tags={
            'string': 'string'
        },
        kmsKeyArn='string',
        lambdaAuthorizerArn='string',
        losslessStorageFormat='HTJ2K'|'JPEG_2000_LOSSLESS'
    )
    
  :type datastoreName: string
  :param datastoreName: 

    The data store name.

    

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

    A unique identifier for API idempotency.

    This field is autopopulated if not provided.

  
  :type tags: dict
  :param tags: 

    The tags provided when creating a data store.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type kmsKeyArn: string
  :param kmsKeyArn: 

    The Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.

    

  
  :type lambdaAuthorizerArn: string
  :param lambdaAuthorizerArn: 

    The ARN of the authorizer's Lambda function.

    

  
  :type losslessStorageFormat: string
  :param losslessStorageFormat: 

    The lossless storage format for the datastore.

    

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

    
    ::

      {
          'datastoreId': 'string',
          'datastoreStatus': 'CREATING'|'CREATE_FAILED'|'ACTIVE'|'DELETING'|'DELETED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **datastoreId** *(string) --* 

        The data store identifier.

        
      

      - **datastoreStatus** *(string) --* 

        The data store status.

        
  
  **Exceptions**
  
  *   :py:class:`HealthImaging.Client.exceptions.ThrottlingException`

  
  *   :py:class:`HealthImaging.Client.exceptions.ConflictException`

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

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

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

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

  
  *   :py:class:`HealthImaging.Client.exceptions.ServiceQuotaExceededException`

  