batchGetDeployments method

Future<BatchGetDeploymentsOutput> batchGetDeployments({
  1. required List<String> deploymentIds,
})

Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.

May throw DeploymentIdRequiredException. May throw InvalidDeploymentIdException. May throw BatchLimitExceededException.

Parameter deploymentIds : A list of deployment IDs, separated by spaces. The maximum number of deployment IDs you can specify is 25.

Implementation

Future<BatchGetDeploymentsOutput> batchGetDeployments({
  required List<String> deploymentIds,
}) async {
  ArgumentError.checkNotNull(deploymentIds, 'deploymentIds');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeDeploy_20141006.BatchGetDeployments'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'deploymentIds': deploymentIds,
    },
  );

  return BatchGetDeploymentsOutput.fromJson(jsonResponse.body);
}