list_application_revisions
async
¶
list_application_revisions(
application_name: ApplicationName,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
sort_by: Optional[ApplicationRevisionSortBy] = None,
sort_order: Optional[SortOrder] = None,
s3_bucket: Optional[S3Bucket] = None,
s3_key_prefix: Optional[S3Key] = None,
deployed: Optional[ListStateFilterAction] = None,
next_token: Optional[NextToken] = None,
) -> ListApplicationRevisionsOutput
Lists information about revisions for an application.
Parameters:
-
application_name(ApplicationName) –The name of an CodeDeploy application associated with the user or Amazon Web Services account.
-
sort_by(Optional[ApplicationRevisionSortBy], default:None) –The column name to use to sort the list results:
-
registerTime: Sort by the time the revisions were registered with CodeDeploy. -
firstUsedTime: Sort by the time the revisions were first used in a deployment. -
lastUsedTime: Sort by the time the revisions were last used in a deployment.
If not specified or set to null, the results are returned in an arbitrary order.
-
-
sort_order(Optional[SortOrder], default:None) –The order in which to sort the list results:
-
ascending: ascending order. -
descending: descending order.
If not specified, the results are sorted in ascending order.
If set to null, the results are sorted in an arbitrary order.
-
-
s3_bucket(Optional[S3Bucket], default:None) –An Amazon S3 bucket name to limit the search for revisions.
If set to null, all of the user's buckets are searched.
-
s3_key_prefix(Optional[S3Key], default:None) –A key prefix for the set of Amazon S3 objects to limit the search for revisions.
-
deployed(Optional[ListStateFilterAction], default:None) –Whether to list revisions based on whether the revision is the target revision of a deployment group:
-
include: List revisions that are target revisions of a deployment group. -
exclude: Do not list revisions that are target revisions of a deployment group. -
ignore: List all revisions.
-
-
next_token(Optional[NextToken], default:None) –An identifier returned from the previous
ListApplicationRevisionscall. It can be used to return the next set of applications in the list.
Raises:
-
ApplicationDoesNotExistException–The application does not exist with the user or Amazon Web Services account.
-
ApplicationNameRequiredException–The minimum number of required application names was not specified.
-
BucketNameFilterRequiredException–A bucket name is required, but was not provided.
-
InvalidApplicationNameException–The application name was specified in an invalid format.
-
InvalidBucketNameFilterException–The bucket name either doesn't exist or was specified in an invalid format.
-
InvalidDeployedStateFilterException–The deployed state filter was specified in an invalid format.
-
InvalidKeyPrefixFilterException–The specified key prefix filter was specified in an invalid format.
-
InvalidNextTokenException–The next token was specified in an invalid format.
-
InvalidSortByException–The column name to sort by is either not present or was specified in an invalid format.
-
InvalidSortOrderException–The sort order was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 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 2374 2375 2376 | |