getDeploymentInstance method

  1. @Deprecated('Deprecated')
Future<GetDeploymentInstanceOutput> getDeploymentInstance({
  1. required String deploymentId,
  2. required String instanceId,
})

Gets information about an instance as part of a deployment.

May throw DeploymentIdRequiredException. May throw DeploymentDoesNotExistException. May throw InstanceIdRequiredException. May throw InvalidDeploymentIdException. May throw InstanceDoesNotExistException. May throw InvalidInstanceNameException. May throw InvalidComputePlatformException.

Parameter deploymentId : The unique ID of a deployment.

Parameter instanceId : The unique ID of an instance in the deployment group.

Implementation

@Deprecated('Deprecated')
Future<GetDeploymentInstanceOutput> getDeploymentInstance({
  required String deploymentId,
  required String instanceId,
}) async {
  ArgumentError.checkNotNull(deploymentId, 'deploymentId');
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  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);
}