get_data_lake_dataset
async
¶
get_data_lake_dataset(
instance_id: UUID,
namespace: DataLakeNamespaceName,
name: DataLakeDatasetName,
*,
config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
) -> GetDataLakeDatasetResponse
Enables you to programmatically view an Amazon Web Services Supply Chain data lake dataset. Developers can view the data lake dataset information such as namespace, schema, and so on for a given instance ID, namespace, and dataset name.
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.
-
-
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.
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:
Get properties of an existing AWS Supply Chain inbound order dataset
>>> await client.get_data_lake_dataset(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', namespace='asc', name='inbound_order')
Get proporties of an existing custom dataset
>>> await client.get_data_lake_dataset(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', namespace='default', name='my_dataset')
Source code in docs_src/capo_supplychain/_services/async_supply_chain.py
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 | |