list_application_revisions
¶
list_application_revisions(
application_name: ApplicationName,
*,
config_overrides: Optional[CodeDeployClientConfig] = 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/code_deploy.py
2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 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 | |