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
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 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 | |