updateKxDatabase method

Future<UpdateKxDatabaseResponse> updateKxDatabase({
  1. required String databaseName,
  2. required String environmentId,
  3. String? clientToken,
  4. String? description,
})

Updates information for the given kdb database.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter databaseName : The name of the kdb database.

Parameter environmentId : A unique identifier for the kdb environment.

Parameter clientToken : A token that ensures idempotency. This token expires in 10 minutes.

Parameter description : A description of the database.

Implementation

Future<UpdateKxDatabaseResponse> updateKxDatabase({
  required String databaseName,
  required String environmentId,
  String? clientToken,
  String? description,
}) async {
  final $payload = <String, dynamic>{
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
    if (description != null) 'description': description,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/kx/environments/${Uri.encodeComponent(environmentId)}/databases/${Uri.encodeComponent(databaseName)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateKxDatabaseResponse.fromJson(response);
}