updateRequesterGateway method

Future<UpdateRequesterGatewayResponse> updateRequesterGateway({
  1. required String gatewayId,
  2. String? clientToken,
  3. String? description,
})

Updates a requester gateway.

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

Parameter gatewayId : The unique identifier of the gateway.

Parameter clientToken : The unique client token.

Parameter description : An optional description for the requester gateway.

Implementation

Future<UpdateRequesterGatewayResponse> updateRequesterGateway({
  required String gatewayId,
  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: 'POST',
    requestUri: '/requester-gateway/${Uri.encodeComponent(gatewayId)}/update',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateRequesterGatewayResponse.fromJson(response);
}