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
8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 | |