put_data_export_configuration
¶
put_data_export_configuration(
domain_identifier: DomainId,
enable_export: bool,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
client_token: Optional[ClientToken] = None,
) -> PutDataExportConfigurationOutput
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.
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.
Parameters:
-
domain_identifier(DomainId) –The domain ID for which you want to create data export configuration details.
-
enable_export(bool) –Specifies that the export is to be enabled as part of creating data export configuration details.
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –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.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ServiceQuotaExceededException–The request has exceeded the specified service quota.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/data_zone.py
8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 | |