updateLambda method

Future<ClientResponse<LambdaResponse, Errors>> updateLambda(
  1. String lambdaId,
  2. LambdaRequest request
)

Updates the lambda with the given Id.

@param {String} lambdaId The Id of the lambda to update. @param {LambdaRequest} request The request that contains all the new lambda information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<LambdaResponse, Errors>> updateLambda(
    String lambdaId, LambdaRequest request) {
  return _start<LambdaResponse, Errors>()
      .withUri('/api/lambda')
      .withUriSegment(lambdaId)
      .withJSONBody(request)
      .withMethod('PUT')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => LambdaResponse.fromJson(d)))
      .go();
}