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
8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 | |