list_data_lake_datasets
async
¶
list_data_lake_datasets(
instance_id: UUID,
namespace: DataLakeNamespaceName,
*,
config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
next_token: Optional[DataLakeDatasetNextToken] = None,
max_results: Optional[DataLakeDatasetMaxResults] = None,
) -> ListDataLakeDatasetsResponse
Enables you to programmatically view the list of Amazon Web Services Supply Chain data lake datasets. Developers can view the datasets and the corresponding information such as namespace, schema, and so on for a given instance ID and namespace.
Parameters:
-
instance_id(UUID) –The Amazon Web Services Supply 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.
-
-
next_token(Optional[DataLakeDatasetNextToken], default:None) –The pagination token to fetch next page of datasets.
-
max_results(Optional[DataLakeDatasetMaxResults], default:None) –The max number of datasets to fetch in this paginated request.
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:
List AWS Supply Chain datasets
>>> await client.list_data_lake_datasets(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', namespace='asc')
List custom datasets using pagination
>>> await client.list_data_lake_datasets(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', namespace='default', max_results=2, next_token='next_token_returned_from_previous_list_request')
Source code in docs_src/capo_supplychain/_services/async_supply_chain.py
1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 | |