list_deployment_targets
async
¶
list_deployment_targets(
deployment_id: DeploymentId,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
next_token: Optional[NextToken] = None,
target_filters: Optional[TargetFilters] = None,
) -> ListDeploymentTargetsOutput
Returns an array of target IDs that are associated a deployment.
Parameters:
-
deployment_id(DeploymentId) –The unique ID of a deployment.
-
next_token(Optional[NextToken], default:None) –A token identifier returned from the previous
ListDeploymentTargetscall. It can be used to return the next set of deployment targets in the list. -
target_filters(Optional[TargetFilters], default:None) –A key used to filter the returned targets. The two valid values are:
-
TargetStatus- ATargetStatusfilter string can beFailed,InProgress,Pending,Ready,Skipped,Succeeded, orUnknown. -
ServerInstanceLabel- AServerInstanceLabelfilter string can beBlueorGreen.
-
Raises:
-
ApplicationDoesNotExistException–The application does not exist with the user or Amazon Web Services account.
-
DeploymentDoesNotExistException–The deployment with the user or Amazon Web Services account does not exist.
-
DeploymentGroupDoesNotExistException–The named deployment group with the user or Amazon Web Services account does not exist.
-
DeploymentIdRequiredException–At least one deployment ID must be specified.
-
DeploymentNotStartedException–The specified deployment has not started.
-
InvalidDeploymentIdException–At least one of the deployment IDs was specified in an invalid format.
-
InvalidDeploymentInstanceTypeException–An instance type was specified for an in-place deployment. Instance types are supported for blue/green deployments only.
-
InvalidInstanceStatusException–The specified instance status does not exist.
-
InvalidInstanceTypeException–An invalid instance type was specified for instances in a blue/green deployment. Valid values include "Blue" for an original environment and "Green" for a replacement environment.
-
InvalidNextTokenException–The next token was specified in an invalid format.
-
InvalidTargetFilterNameException–The target filter name is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 | |