:doc:`DataZone <../../datazone>` / Client / put_data_export_configuration

*****************************
put_data_export_configuration
*****************************



.. py:method:: DataZone.Client.put_data_export_configuration(**kwargs)

  

  Creates data export configuration details.

   

  If you want to temporarily disable export and later re-enable it for the same domain, use the ``--no-enable-export`` flag to disable and the ``--enable-export`` flag to re-enable. This preserves the configuration and allows you to re-enable export without deleting S3 table.

   

  .. note::

    

    You can enable asset metadata export for only one domain per account per Region. To enable export for a different domain, complete the following steps:

     

    
    * Delete the export configuration for the currently enabled domain using the DeleteDataExportConfiguration operation.
     
    * Delete the asset S3 table under the aws-sagemaker-catalog S3 table bucket. We recommend backing up the S3 table before deletion.
     
    * Call the PutDataExportConfiguration API to enable export for the new domain.
    

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/PutDataExportConfiguration>`_  


  **Request Syntax**
  ::

    response = client.put_data_export_configuration(
        domainIdentifier='string',
        enableExport=True|False,
        encryptionConfiguration={
            'kmsKeyArn': 'string',
            'sseAlgorithm': 'string'
        },
        clientToken='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The domain ID for which you want to create data export configuration details.

    

  
  :type enableExport: boolean
  :param enableExport: **[REQUIRED]** 

    Specifies that the export is to be enabled as part of creating data export configuration details.

    

  
  :type encryptionConfiguration: dict
  :param encryptionConfiguration: 

    The encryption configuration as part of creating data export configuration details.

     

    The KMS key provided here as part of encryptionConfiguration must have the required permissions as described in `KMS permissions for exporting asset metadata in Amazon SageMaker Unified Studio <https://docs.aws.amazon.com/sagemaker-unified-studio/latest/adminguide/sagemaker-unified-studio-export-asset-metadata-kms-permissions.html>`__.

    

  
    - **kmsKeyArn** *(string) --* 

      The Amazon Resource Name (ARN) of the KMS key to use for encryption. This field is required only when ``sseAlgorithm`` is set to ``aws:kms``.

      

    
    - **sseAlgorithm** *(string) --* 

      The server-side encryption algorithm to use. Valid values are AES256 for S3-managed encryption keys, or aws:kms for Amazon Web Services KMS-managed encryption keys. If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see `Permissions requirements for S3 Tables SSE-KMS encryption <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-kms-permissions.html>`__.

      

    
  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

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

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

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

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

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

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  