createDbParameterGroup method
Creates a new Timestream for InfluxDB DB parameter group to associate with DB instances.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter name :
The name of the DB parameter group. The name must be unique per customer
and per region.
Parameter description :
A description of the DB parameter group.
Parameter parameters :
A list of the parameters that comprise the DB parameter group.
Parameter tags :
A list of key-value pairs to associate with the DB parameter group.
Implementation
Future<CreateDbParameterGroupOutput> createDbParameterGroup({
required String name,
String? description,
Parameters? parameters,
Map<String, String>? tags,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AmazonTimestreamInfluxDB.CreateDbParameterGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'name': name,
if (description != null) 'description': description,
if (parameters != null) 'parameters': parameters,
if (tags != null) 'tags': tags,
},
);
return CreateDbParameterGroupOutput.fromJson(jsonResponse.body);
}