list_data_lake_namespaces
¶
list_data_lake_namespaces(
instance_id: UUID,
*,
config_overrides: Optional[SupplyChainClientConfig] = None,
next_token: Optional[DataLakeNamespaceNextToken] = None,
max_results: Optional[DataLakeNamespaceMaxResults] = None,
) -> ListDataLakeNamespacesResponse
Enables you to programmatically view the list of Amazon Web Services Supply Chain data lake namespaces. Developers can view the namespaces and the corresponding information such as description for a given instance ID. Note that this API only return custom namespaces, instance pre-defined namespaces are not included.
Parameters:
-
instance_id(UUID) –The Amazon Web Services Supply Chain instance identifier.
-
next_token(Optional[DataLakeNamespaceNextToken], default:None) –The pagination token to fetch next page of namespaces.
-
max_results(Optional[DataLakeNamespaceMaxResults], default:None) –The max number of namespaces 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 namespaces
>>> client.list_data_lake_namespaces(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5')
List AWS Supply Chain namespaces using pagination
>>> client.list_data_lake_namespaces(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', max_results=1, next_token='next_token_returned_from_previous_list_request')
Source code in docs_src/capo_supplychain/_services/supply_chain.py
2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 | |