put_data_export_configuration
async
¶
put_data_export_configuration(
domain_identifier: DomainId,
enable_export: bool,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = 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/async_data_zone.py
8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 | |