updateVpcLink method

Future<VpcLink> updateVpcLink({
  1. required String vpcLinkId,
  2. List<PatchOperation>? patchOperations,
})

Updates an existing VpcLink of a specified identifier.

May throw UnauthorizedException. May throw NotFoundException. May throw BadRequestException. May throw ConflictException. May throw TooManyRequestsException.

Parameter vpcLinkId : Required The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

Parameter patchOperations : A list of update operations to be applied to the specified resource and in the order specified in this list.

Implementation

Future<VpcLink> updateVpcLink({
  required String vpcLinkId,
  List<PatchOperation>? patchOperations,
}) async {
  ArgumentError.checkNotNull(vpcLinkId, 'vpcLinkId');
  final $payload = <String, dynamic>{
    if (patchOperations != null) 'patchOperations': patchOperations,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/vpclinks/${Uri.encodeComponent(vpcLinkId)}',
    exceptionFnMap: _exceptionFns,
  );
  return VpcLink.fromJson(response);
}