list_data_lake_namespaces
async
¶
list_data_lake_namespaces(
instance_id: UUID,
*,
config_overrides: Optional[AsyncSupplyChainClientConfig] = 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
>>> await client.list_data_lake_namespaces(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5')
List AWS Supply Chain namespaces using pagination
>>> await 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/async_supply_chain.py
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 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 | |