batchCreateVariable method
Creates a batch of variables.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter variableEntries :
The list of variables for the batch create variable request.
Parameter tags :
A collection of key and value pairs.
Implementation
Future<BatchCreateVariableResult> batchCreateVariable({
required List<VariableEntry> variableEntries,
List<Tag>? tags,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.BatchCreateVariable'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'variableEntries': variableEntries,
if (tags != null) 'tags': tags,
},
);
return BatchCreateVariableResult.fromJson(jsonResponse.body);
}