update_data_lake_dataset
async
¶
update_data_lake_dataset(
instance_id: UUID,
namespace: DataLakeNamespaceName,
name: DataLakeDatasetName,
*,
config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
description: Optional[DataLakeDatasetDescription] = None,
) -> UpdateDataLakeDatasetResponse
Enables you to programmatically update an Amazon Web Services Supply Chain data lake dataset. Developers can update the description of a data lake dataset for a given instance ID, namespace, and dataset name.
Parameters:
-
instance_id(UUID) –The Amazon Web Services Chain instance identifier.
-
namespace(DataLakeNamespaceName) –The namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces:
-
asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
default - For datasets with custom user-defined schemas.
-
-
name(DataLakeDatasetName) –The name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
description(Optional[DataLakeDatasetDescription], default:None) –The updated description of the data lake dataset.
Raises:
-
AccessDeniedException–You do not have the required privileges to perform this action.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input does not satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update description of an existing AWS Supply Chain inbound order dataset
>>> await client.update_data_lake_dataset(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', namespace='asc', name='inbound_order', description='This is an updated AWS Supply Chain inbound order dataset')
Update description of an existing custom dataset
>>> await client.update_data_lake_dataset(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', namespace='default', name='my_dataset', description='This is an updated custom dataset')
Source code in docs_src/capo_supplychain/_services/async_supply_chain.py
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 | |