getDeployment method
Gets information about a deployment.
May throw DeploymentIdRequiredException. May throw InvalidDeploymentIdException. May throw DeploymentDoesNotExistException.
Parameter deploymentId
:
The unique ID of a deployment associated with the IAM user or AWS account.
Implementation
Future<GetDeploymentOutput> getDeployment({
required String deploymentId,
}) async {
ArgumentError.checkNotNull(deploymentId, 'deploymentId');
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);
}