list_deployments
async
¶
list_deployments(
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
application_name: Optional[ApplicationName] = None,
deployment_group_name: Optional[DeploymentGroupName] = None,
external_id: Optional[ExternalId] = None,
include_only_statuses: Optional[DeploymentStatusList] = None,
create_time_range: Optional[TimeRange] = None,
next_token: Optional[NextToken] = None,
) -> ListDeploymentsOutput
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
Parameters:
-
application_name(Optional[ApplicationName], default:None) –The name of an CodeDeploy application associated with the user or Amazon Web Services account.
If
applicationNameis specified, thendeploymentGroupNamemust be specified. If it is not specified, thendeploymentGroupNamemust not be specified. -
deployment_group_name(Optional[DeploymentGroupName], default:None) –The name of a deployment group for the specified application.
If
deploymentGroupNameis specified, thenapplicationNamemust be specified. If it is not specified, thenapplicationNamemust not be specified. -
external_id(Optional[ExternalId], default:None) –The unique ID of an external resource for returning deployments linked to the external resource.
-
include_only_statuses(Optional[DeploymentStatusList], default:None) –A subset of deployments to list by status:
-
Created: Include created deployments in the resulting list. -
Queued: Include queued deployments in the resulting list. -
In Progress: Include in-progress deployments in the resulting list. -
Succeeded: Include successful deployments in the resulting list. -
Failed: Include failed deployments in the resulting list. -
Stopped: Include stopped deployments in the resulting list.
-
-
create_time_range(Optional[TimeRange], default:None) –A time range (start and end) for returning a subset of the list of deployments.
-
next_token(Optional[NextToken], default:None) –An identifier returned from the previous list deployments call. It can be used to return the next set of deployments 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.
-
DeploymentGroupDoesNotExistException–The named deployment group with the user or Amazon Web Services account does not exist.
-
DeploymentGroupNameRequiredException–The deployment group name was not specified.
-
InvalidApplicationNameException–The application name was specified in an invalid format.
-
InvalidDeploymentGroupNameException–The deployment group name was specified in an invalid format.
-
InvalidDeploymentStatusException–The specified deployment status doesn't exist or cannot be determined.
-
InvalidExternalIdException–The external ID was specified in an invalid format.
-
InvalidInputException–The input was specified in an invalid format.
-
InvalidNextTokenException–The next token was specified in an invalid format.
-
InvalidTimeRangeException–The specified time range 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
2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 | |