list_package_groups
¶
list_package_groups(
domain: DomainName,
*,
config_overrides: Optional[codeartifactClientConfig] = None,
domain_owner: Optional[AccountId] = None,
max_results: Optional[ListPackageGroupsMaxResults] = None,
next_token: Optional[PaginationToken] = None,
prefix: Optional[PackageGroupPatternPrefix] = None,
) -> ListPackageGroupsResult
Returns a list of package groups in the requested domain.
Parameters:
-
domain(DomainName) –The domain for which you want to list package groups.
-
domain_owner(Optional[AccountId], default:None) –The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
-
max_results(Optional[ListPackageGroupsMaxResults], default:None) –The maximum number of results to return per page.
-
next_token(Optional[PaginationToken], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
prefix(Optional[PackageGroupPatternPrefix], default:None) –A prefix for which to search package groups. When included,
ListPackageGroupswill return only package groups with patterns that match the prefix.
Raises:
-
AccessDeniedException–The operation did not succeed because of an unauthorized access attempt.
-
InternalServerException–The operation did not succeed because of an error that occurred inside CodeArtifact.
-
ResourceNotFoundException–The operation did not succeed because the resource requested is not found in the service.
-
ThrottlingException–The operation did not succeed because too many requests are sent to the service.
-
ValidationException–The operation did not succeed because a parameter in the request was sent with an invalid value.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codeartifact/_services/codeartifact.py
2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 | |