batchGetDeploymentGroups method
Gets information about one or more deployment groups.
May throw ApplicationDoesNotExistException.
May throw ApplicationNameRequiredException.
May throw BatchLimitExceededException.
May throw DeploymentConfigDoesNotExistException.
May throw DeploymentGroupNameRequiredException.
May throw InvalidApplicationNameException.
May throw InvalidDeploymentGroupNameException.
Parameter applicationName :
The name of an CodeDeploy application associated with the applicable user
or Amazon Web Services account.
Parameter deploymentGroupNames :
The names of the deployment groups.
Implementation
Future<BatchGetDeploymentGroupsOutput> batchGetDeploymentGroups({
required String applicationName,
required List<String> deploymentGroupNames,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.BatchGetDeploymentGroups'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'applicationName': applicationName,
'deploymentGroupNames': deploymentGroupNames,
},
);
return BatchGetDeploymentGroupsOutput.fromJson(jsonResponse.body);
}