list_deployments
¶
list_deployments(
*,
config_overrides: Optional[CodeDeployClientConfig] = 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/code_deploy.py
2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 | |