getDeployment method
Gets information about a deployment.
May throw DeploymentDoesNotExistException.
May throw DeploymentIdRequiredException.
May throw InvalidDeploymentIdException.
Parameter deploymentId :
The unique ID of a deployment associated with the user or Amazon Web
Services account.
Implementation
Future<GetDeploymentOutput> getDeployment({
required String deploymentId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.GetDeployment'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'deploymentId': deploymentId,
},
);
return GetDeploymentOutput.fromJson(jsonResponse.body);
}