getDeploymentInstance method
Gets information about an instance as part of a deployment.
May throw DeploymentDoesNotExistException.
May throw DeploymentIdRequiredException.
May throw InstanceDoesNotExistException.
May throw InstanceIdRequiredException.
May throw InvalidComputePlatformException.
May throw InvalidDeploymentIdException.
May throw InvalidInstanceNameException.
Parameter deploymentId :
The unique ID of a deployment.
Parameter instanceId :
The unique ID of an instance in the deployment group.
Implementation
Future<GetDeploymentInstanceOutput> getDeploymentInstance({
required String deploymentId,
required String instanceId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.GetDeploymentInstance'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'deploymentId': deploymentId,
'instanceId': instanceId,
},
);
return GetDeploymentInstanceOutput.fromJson(jsonResponse.body);
}