batchCreateVariable method
Future<BatchCreateVariableResult>
batchCreateVariable({
- required List<
VariableEntry> variableEntries, - List<
Tag> ? tags,
Creates a batch of variables.
May throw ValidationException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.
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 {
ArgumentError.checkNotNull(variableEntries, 'variableEntries');
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);
}