batchGetVariable method
Gets a batch of variables.
May throw ValidationException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.
Parameter names
:
The list of variable names to get.
Implementation
Future<BatchGetVariableResult> batchGetVariable({
required List<String> names,
}) async {
ArgumentError.checkNotNull(names, 'names');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.BatchGetVariable'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'names': names,
},
);
return BatchGetVariableResult.fromJson(jsonResponse.body);
}