batchGetOnPremisesInstances method
Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.
May throw InstanceNameRequiredException. May throw InvalidInstanceNameException. May throw BatchLimitExceededException.
Parameter instanceNames
:
The names of the on-premises instances about which to get information. The
maximum number of instance names you can specify is 25.
Implementation
Future<BatchGetOnPremisesInstancesOutput> batchGetOnPremisesInstances({
required List<String> instanceNames,
}) async {
ArgumentError.checkNotNull(instanceNames, 'instanceNames');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.BatchGetOnPremisesInstances'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'instanceNames': instanceNames,
},
);
return BatchGetOnPremisesInstancesOutput.fromJson(jsonResponse.body);
}